[jboss-user] [JBoss Seam] - Re: Need Form to Work Without

neilac333 do-not-reply at jboss.com
Tue Feb 5 18:34:25 EST 2008


Here you go:


  | <ui:define name="mainFormContent">
  |       <h1><span>Search</span></h1>
  | 
  |       <label for="nameBox" jsfc="h:outputLabel" value="Name"/>
  |       <input type="text" jsfc="h:inputText" id="nameBox" value="#{searchAction.name}"/>
  |       <br/>
  |       <label for="numberBox" jsfc="h:outputLabel" value="Number"/>
  |       <input type="text" jsfc="h:inputText" value="#{searchAction.number}" id="numberBox"/>
  |       <br/>
  |       <label for="keyWordsBox" jsfc="h:outputLabel" value="Key Words"/>
  |       <input type="text" jsfc="h:inputText" value="#{searchAction.keyWords}" id="keyWordsBox"/>
  |       <br/>
  |       <label for="technicalCategoryBox" jsfc="h:outputLabel" value="Technical Category"/>
  |       <input type="text" jsfc="h:inputText" value="#{searchAction.technicalCategory}" id="technicalCategoryBox"/>
  |       <br/>
  |       <label for="descriptionBox" jsfc="h:outputLabel" value="Description"/>
  |       <input type="text" jsfc="h:inputText" value="#{searchAction.description}" id="descriptionBox"/>
  |       <br/>
  |       <label for="resultsPerPage" jsfc="h:outputLabel" value="Results Per Page:"/>
  |       <select jsfc="h:selectOneMenu" id="resultsPerPage" value="#{searchAction.resultsPerPage}">
  |          <option jsfc="f:selectItem" id="five" itemLabel="5" itemValue="5"/>
  |          <option jsfc="f:selectItem" id="ten" itemLabel="10" itemValue="10"/>
  |          <option jsfc="f:selectItem" id="fifteen" itemLabel="15" itemValue="15"/>
  |       </select>
  |       <br/>
  |       <input type="button" jsfc="h:commandButton" styleClass="submitButton" id="submitButton"
  |              action="#{searchAction.doAdvancedSearch}" value="Search"/>
  |       <br/>
  |       <a4j:region id="searchResultsRegion">
  |          <a4j:status for="searchResultsRegion">
  |             <f:facet name="start">
  |                <h:graphicImage value="/images/spinner.gif" id="spinner" styleClass="spinner"/>
  |             </f:facet>
  |          </a4j:status>
  |          <rich:datascroller for="searchResults"
  |                             rendered="#{not empty searchAction.searchResults}"
  |                             scrollerListener="#{searchAction.doScroll}"
  |                             fastControls="hide">
  |          </rich:datascroller>
  |          <rich:spacer id="scrollerTableSpacer" height="15"/>
  |          <table jsfc="rich:dataTable" id="searchResults"
  |                 rows="#{searchAction.resultsPerPage}"
  |                 value="#{searchAction.searchResultsDataModel}"
  |                 var="result"
  |                 rendered="#{not empty searchAction.searchResults}"
  |                 onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
  |                 onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
  |             <f:facet name="header">
  |                <rich:columnGroup>
  |                   <h:column>
  |                      <th jsfc="h:outputText" id="numberColumnHeader" value="Number"/>
  |                   </h:column>
  |                   <h:column>
  |                      <th jsfc="h:outputText" id="nameColumnHeader" value="Name"/>
  |                   </h:column>
  |                   <h:column>
  |                      <th jsfc="h:outputText" id="descriptionColumnHeader" value="Description"/>
  |                   </h:column>
  |                </rich:columnGroup>
  |             </f:facet>
  |             <h:column><h:outputLink value="#{result.number}">#{result.number}</h:outputLink></h:column>
  |             <h:column>#{result.name}</h:column>
  |             <h:column>#{result.description}</h:column>
  |          </table>
  |       </a4j:region>
  |       <h:message id="noSearchResultsMessage" for="searchResults" styleClass="noSearchResultsMessage"/>
  |    </ui:define>
  | 

That is the portion of the Facelet that contains RichFaces components.

Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126832#4126832

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126832



More information about the jboss-user mailing list