Skip to content

Instantly share code, notes, and snippets.

@bleathem
Created April 13, 2012 15:04
Show Gist options
  • Select an option

  • Save bleathem/2377510 to your computer and use it in GitHub Desktop.

Select an option

Save bleathem/2377510 to your computer and use it in GitHub Desktop.
slidfast component enabled mobile page
<!DOCTYPE html>
<html lang="en">
<ui:composition template="/WEB-INF/templates/mobile.xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:slidfast="http://richfaces.org/slidfast">
<ui:define name="content">
<h:outputStylesheet name="app.css" library="css"/>
<h:outputStylesheet name="mobile.css" library="css"/>
<div id="browser">
<header>
<div>
<div id="back-button" class="hide-button">Home</div>
<div id="info-button" class="right-header-button info-link">
<a href="#about">i</a>
</div>
<p>Richfaces Mobile</p>
</div>
</header>
<h:form id="mobileForm">
<slidfast:pageChanger id="pageChanger" activePage="#{pageBean.location}" render="mobileForm" />
<div id="page-container">
<div id="home-page" class="page stage-left">
<ui:include src="/mobile/home.xhtml"/>
</div>
<div id="app-page" class="page stage-right">
<ui:include src="#{pageBean.page}"/>
</div>
</div>
</h:form>
</div>
<h:outputStylesheet library="org.richfaces" name="rf-mobile-skin.css" />
</ui:define>
</ui:composition>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment