Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. 1) I load the application
  2.  
  3. 2) There is one user in the database with role 'admin'
  4.  
  5. 3) I try to edit this user and the dialog opens up, 'admin' checkbox is selected.
  6.  
  7. 4) I click the 'user' role checkbox and click submit
  8.  
  9. 5) The selectedRoles array is still only just 'admin' instead of 'admin' and 'user'
  10.  
  11. <p:dialog header="Editing User ID: #{usersView.viewUser}" id="editUserDialog" widgetVar="editUserDialog" modal="true" appendTo="@(body)"
  12. <h:form id="editUserForm">
  13. <p:selectManyCheckbox id="roleSelect" value="#{usersView.selectedRoles}" layout="grid" columns="3">
  14. <f:selectItems value="#{rolesView.roles} var="role" itemLabel="#{role.name}" itemValue="#{role.name}" />
  15. </p:selectManyCheckbox>
  16. <p:separator />
  17. <p:commandButton process="@this" update=":form:tabs:adminView:userTable:userRoleOutput" value="Submit" id="EditUserSubmitButton" actionListener="#{usersView.editUserRole}" oncomplete="PF('editUserDialog').hide();" />
  18. </h:form>
  19. </p:dialog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement