Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:p="http://primefaces.org/ui"
- xmlns:pm="http://primefaces.org/mobile">
- <f:view renderKitId="PRIMEFACES_MOBILE"/>
- <h:head>
- </h:head>
- <h:body>
- <pm:page id="welcomePage">
- <pm:header title="Welcome Page"/>
- <pm:content>
- <h:form id="welcomeForm">
- <p:commandButton value="Next page" onclick="PF('confirmDialog').show()"/>
- </h:form>
- <p:dialog id="dialog" widgetVar="confirmDialog" header="Confirmation">
- <h:form>
- <p>Do you really want to go to the next page?</p>
- <p:commandButton value="Proceed" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" onsuccess="PF('confirmDialog').hide()" action="pm:nextPage"/>
- </h:form>
- </p:dialog>
- </pm:content>
- </pm:page>
- <pm:page id="nextPage">
- <pm:header title="Next Page">
- <p:button styleClass="ui-btn-left ui-btn-inline" value="Back" icon="ui-icon-arrow-l" outcome="pm:welcomePage"/>
- </pm:header>
- <pm:content>
- <h:form id="nextForm">
- <p>This is the next page. Glad you made it.</p>
- <p:commandButton value="Another page" onclick="PF('confirm2Dialog').show()"/>
- </h:form>
- <p:dialog id="dialog2" widgetVar="confirm2Dialog" header="Confirmation">
- <h:form>
- <p>Do you really want to go to another page?</p>
- <p:commandButton value="Proceed" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" onsuccess="PF('confirm2Dialog').hide()" action="pm:anotherPage"/>
- </h:form>
- </p:dialog>
- </pm:content>
- </pm:page>
- <pm:page id="anotherPage">
- <pm:header title="Another Page">
- <p:button styleClass="ui-btn-left ui-btn-inline" value="Back" icon="ui-icon-arrow-l" outcome="pm:nextPage"/>
- </pm:header>
- <pm:content>
- <p>This is another page. There is nowhere to go from here.</p>
- </pm:content>
- </pm:page>
- </h:body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment