kwrobel

PrimeFaces Mobile Multi-Page Dialogs Broken Styling

Oct 22nd, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml"
  3. xmlns:h="http://java.sun.com/jsf/html"
  4. xmlns:f="http://java.sun.com/jsf/core"
  5. xmlns:ui="http://java.sun.com/jsf/facelets"
  6. xmlns:p="http://primefaces.org/ui"
  7. xmlns:pm="http://primefaces.org/mobile">
  8.  
  9. <f:view renderKitId="PRIMEFACES_MOBILE"/>
  10.  
  11. <h:head>
  12. </h:head>
  13.  
  14. <h:body>
  15. <pm:page id="welcomePage">
  16. <pm:header title="Welcome Page"/>
  17. <pm:content>
  18. <h:form id="welcomeForm">
  19. <p:commandButton value="Next page" onclick="PF('confirmDialog').show()"/>
  20. </h:form>
  21. <p:dialog id="dialog" widgetVar="confirmDialog" header="Confirmation">
  22. <h:form>
  23. <p>Do you really want to go to the next page?</p>
  24. <p:commandButton value="Proceed" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" onsuccess="PF('confirmDialog').hide()" action="pm:nextPage"/>
  25. </h:form>
  26. </p:dialog>
  27.  
  28. </pm:content>
  29. </pm:page>
  30.  
  31. <pm:page id="nextPage">
  32. <pm:header title="Next Page">
  33. <p:button styleClass="ui-btn-left ui-btn-inline" value="Back" icon="ui-icon-arrow-l" outcome="pm:welcomePage"/>
  34. </pm:header>
  35. <pm:content>
  36. <h:form id="nextForm">
  37. <p>This is the next page. Glad you made it.</p>
  38. <p:commandButton value="Another page" onclick="PF('confirm2Dialog').show()"/>
  39. </h:form>
  40. <p:dialog id="dialog2" widgetVar="confirm2Dialog" header="Confirmation">
  41. <h:form>
  42. <p>Do you really want to go to another page?</p>
  43. <p:commandButton value="Proceed" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" onsuccess="PF('confirm2Dialog').hide()" action="pm:anotherPage"/>
  44. </h:form>
  45. </p:dialog>
  46. </pm:content>
  47. </pm:page>
  48.  
  49. <pm:page id="anotherPage">
  50. <pm:header title="Another Page">
  51. <p:button styleClass="ui-btn-left ui-btn-inline" value="Back" icon="ui-icon-arrow-l" outcome="pm:nextPage"/>
  52. </pm:header>
  53. <pm:content>
  54. <p>This is another page. There is nowhere to go from here.</p>
  55. </pm:content>
  56. </pm:page>
  57.  
  58.  
  59. </h:body>
  60.  
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment