Guest User

Untitled

a guest
Jan 16th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <p:selectOneMenu id="selectOneMenu" scrollHeight="100"
  2. value="#{viewEventStatusController.operationId}" autoWidth="false" style="#{componentUnit.style}" styleClass="selectOperationOneMenu" rendered="#{componentUnit.type == 'selectOneMenu'}">
  3.  
  4. <!-- I have to set an index, therefore I tried to use forEach -->
  5. <f:selectItems value="#{viewEventStatusController.convertJsonToList(chat.operations)}" var="opration" itemValue="1" itemLabel="#{operation}" />
  6.  
  7. <!-- Here the convertJsonToList is not being called I think because it is parametrized!-->
  8. <c:forEach items="#{viewEventStatusController.convertJsonToList(chat.operations)}" var="operation" varStatus="count">
  9. <f:selectItem itemLabel="#{operation}" itemValue="#{count.index}" />
  10. </c:forEach>
  11.  
  12. <!-- the convertJsonToList method is not being called! -->
  13. <ui:repeat value="#{viewEventStatusController.convertJsonToList(chat.operations)}">
  14. </ui:repeat>
  15.  
  16. </p:selectOneMenu>
Add Comment
Please, Sign In to add comment