Skip to content

Instantly share code, notes, and snippets.

@pauldijou
Created August 17, 2012 15:51
Show Gist options
  • Select an option

  • Save pauldijou/3380078 to your computer and use it in GitHub Desktop.

Select an option

Save pauldijou/3380078 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<ui:composition template="/resources/template.xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:b="http://richfaces.org/sandbox/bootstrap">
<ui:define name="content">
<b:gridRow fluid="#{sessionBean.fluid}" styleClass="component">
<b:gridColumn span="6">
<ui:insert name="body">Body</ui:insert>
<ui:repeat var="_sample" value="#{samples.split(',')}">
<h2 id="#{_sample}">#{_sample}</h2>
<ui:include src="/resources/sample.xhtml">
<ui:param name="tag" value="#{tag}" />
<ui:param name="sample" value="#{_sample}" />
</ui:include>
</ui:repeat>
</b:gridColumn>
<b:gridColumn span="6">
<ui:include src="/resources/taglib.xhtml">
<ui:param name="tag" value="#{tag}" />
</ui:include>
</b:gridColumn>
</b:gridRow>
</ui:define>
</ui:composition>
An Error Occurred:
/resources/sample.xhtml @13,68 <ui:include src="/component/#{tag}/sample/#{sample}.xhtml"> Invalid path : /component/modal/sample/.xhtml
<ui:param name="samples" value="basic,custom,complex" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment