Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. <h:form>
  2. <p:commandButton value="open dialog" id="btncallWidget" process="@this" oncomplete="PF('editDlg').show()"/>
  3. </h:form>
  4.  
  5. <p:dialog id="editDialog" header="Dialog" widgetVar="editDlg" modal="true" appendToBody="true">
  6. <p:tooltip />
  7. <h:form>
  8. <p:growl id="growl" showDetail="true" sticky="false" />
  9. <h:panelGrid id="grid" cellpadding="5" columns="3" style="margin-bottom:10px">
  10. <f:facet name="header">
  11. <p:messages id="msgs" showDetail="true" autoUpdate="true"/>
  12. </f:facet>
  13.  
  14. <p:outputLabel for="firstname" value="Firstname:" />
  15. <p:inputText id="firstname" value="" />
  16. <p:spacer/>
  17.  
  18. <p:outputLabel for="surname" value="Surname:" />
  19. <p:inputText id="surname" value="" required="true" requiredMessage="Surname is required." />
  20. <p:spacer/>
  21.  
  22. <p:outputLabel for="tt" value="Tooltip:" />
  23. <p:inputText id="tt" required="true" />
  24. <p:message for="tt" display="tooltip" />
  25.  
  26. <p:outputLabel for="txt" value="Text:" />
  27. <p:inputText id="txt" required="true" />
  28. <p:message for="txt" display="text" />
  29. </h:panelGrid>
  30. <h:panelGrid columns="6" cellpadding="5">
  31. <p:commandButton value="Form" id="btnForm" process="@form" update="grid growl" />
  32. </h:panelGrid>
  33. </h:form>
  34. </p:dialog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement