Guest User

Untitled

a guest
Jan 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <p:commandButton value="Delete" update="testPlanetree" id="deleteBtn"
  2. disabled="#{projectTestManagementMB.disable}" oncomplete="deleteConfirmation.show()"
  3. action="#{projectTestManagementMB.testFn}"/>
  4.  
  5.  
  6. <p:confirmDialog id="confirmDialog" message="#
  7. {projectTestManagementMB.deleteConfirmationMsg}"
  8. header="Confirming Deleting Process" severity="alert"
  9. widgetVar="deleteConfirmation">
  10.  
  11. <p:commandButton id="confirm" value="Yes Sure" update="messages"
  12. oncomplete="deleteConfirmation.hide()" />
  13.  
  14. <p:commandButton id="decline" value="Not Yet"
  15. onclick="deleteConfirmation.hide()" type="button" />
  16.  
  17. </p:confirmDialog>
  18.  
  19. private String deleteConfirmationMsg;//with getters and setters
  20. public void testFn(){
  21. deleteConfirmationMsg="do you want to delete ...";
  22. }
  23.  
  24. <p:commandButton ... update="confirmDialog testPlanetree">
  25.  
  26. <p:commandButton value="Delete" update="testPlanetree" id="deleteBtn" actionListener="#
  27. {projectTestManagementMB.testFn}"
  28. disabled="# {projectTestManagementMB.disable}"
  29.  
  30. oncomplete="deleteConfirmation.show()" />
Add Comment
Please, Sign In to add comment