[jboss-user] [JBoss Seam] - Re: DataModelSelection problem

monkeyden do-not-reply at jboss.com
Mon Oct 2 11:22:17 EDT 2006


Sure, sorry.  I highlighted the commandLink of interest.

<h:dataTable id="results" var="user" value="#{usersearch.items}" styleClass="resultsTable" 
  |             rowClasses="odd,even" first="#{usersearch.firstRowIndex}" rows="#{usersearch.rowsPerPage}" 
  |             rendered="#{usersearch.rowCount > 0}" headerClass="">
  |     <h:column>
  |         <f:facet name="header">
  |             <h:commandLink action="#{usersearch.sortByName}" immediate="true" styleClass="resultsHead">
  |                 <h:outputText value="Name" id="nameText"/>
  |             </h:commandLink>
  |         </f:facet>
  |         <h:commandLink value="#{user.name}" action="#{usersearch.select}" immediate="true"/>
  |     </h:column>
  |     <h:column>
  |         <f:facet name="header">
  |             <h:commandLink action="#{usersearch.sortByEmail}" immediate="true" styleClass="resultsHead">
  |                 <h:outputText value="Email"/>
  |             </h:commandLink>
  |         </f:facet>
  |         <h:commandLink id="emailLink">
  |             <h:outputText value="#{user.emailAddr}"/>
  |         </h:commandLink>
  |     </h:column>
  |     <h:column>
  |         <f:facet name="header">
  |             <h:commandLink action="#{usersearch.sortByDateRegistered}" immediate="true" styleClass="resultsHead">
  |                 <h:outputText value="Registered"/>
  |             </h:commandLink>
  |         </f:facet>
  |         <h:outputText value="#{user.dateRegistered}" id="regText">
  |             <f:convertDateTime dateStyle="medium" pattern="MM/dd/yyyy"/>
  |         </h:outputText>
  |     </h:column>
  |     <h:column id="regColumn">
  |         <f:facet name="header">
  |             <h:outputText value="City" id="regText"/>
  |         </f:facet>
  |         <h:outputText value="#{user.city}" />
  |     </h:column>
  |     <h:column id="stateColumn">
  |         <f:facet name="header">
  |             <h:outputText value="State" />
  |         </f:facet>
  |         <h:outputText value="#{user.state}" />
  |     </h:column>
  |     <h:column>
  |         <f:facet name="header">
  |             <h:outputText value="Zip" />
  |         </f:facet>
  |         <h:outputText value="#{user.zip}" />
  |     </h:column>
  | </h:dataTable>

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

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



More information about the jboss-user mailing list