[jboss-cvs] jboss-seam/seam-gen/view ...
Norman Richards
norman.richards at jboss.com
Sat Dec 16 20:32:02 EST 2006
User: nrichards
Date: 06/12/16 20:32:02
Added: seam-gen/view query.xhtml
Log:
JBSEAM-560: first pass at new-query
Revision Changes Path
1.1 date: 2006/12/17 01:32:02; author: nrichards; state: Exp;jboss-seam/seam-gen/view/query.xhtml
Index: query.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
template="layout/template.xhtml">
<ui:define name="body">
<h1>@beanName@ results</h1>
<p>Generated query page</p>
<h:messages globalOnly="true" styleClass="message"/>
<h:outputText value="No results from search"
rendered="#{empty @componentName at .resultList}"/>
<f:subview id="results" rendered="#{not empty @componentName at .resultList}">
<h:dataTable id="@componentName@"
var="item"
value="#{@componentName at .resultList}">
<h:column>
<f:facet name="header">Result</f:facet>
#{item}
</h:column>
</h:dataTable>
<div class="tableControl">
<s:link view="/@pageName at .xhtml"
rendered="#{@componentName at .previousExists}"
value="<< First Page"
id="firstPage">
<f:param name="firstResult" value="0"/>
</s:link>
<s:link view="/@pageName at .xhtml"
rendered="#{@componentName at .previousExists}"
value="< Previous Page"
id="previousPage">
<f:param name="firstResult"
value="#{@componentName at .previousFirstResult}"/>
</s:link>
<s:link view="/@pageName at .xhtml"
rendered="#{@componentName at .nextExists}"
value="Next Page >"
id="nextPage">
<f:param name="firstResult"
value="#{@componentName at .nextFirstResult}"/>
</s:link>
<s:link view="/@pageName at .xhtml"
rendered="#{@componentName at .nextExists}"
value="Last Page >>"
id="lastPage">
<f:param name="firstResult"
value="#{@componentName at .lastFirstResult}"/>
</s:link>
</div>
</f:subview>
</ui:define>
</ui:composition>
More information about the jboss-cvs-commits
mailing list