[jboss-user] [JBoss Seam] - Re: Null value sent by s:link in dataTable
chawax
do-not-reply at jboss.com
Fri Jul 27 11:17:30 EDT 2007
Well, that's what I did ... In the main.xhtml of Booking example (Seam 1.1.6), there is a <s:link> which works the same way I tried :
<a:outputPanel id="searchResults">
| <div class="section">
| <h:outputText value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
| <h:dataTable id="hotels" value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
| <h:column>
| <f:facet name="header">Name</f:facet>
| #{hot.name}
| </h:column>
| <h:column>
| <f:facet name="header">Address</f:facet>
| #{hot.address}
| </h:column>
| <h:column>
| <f:facet name="header">City, State</f:facet>
| #{hot.city}, #{hot.state}, #{hot.country}
| </h:column>
| <h:column>
| <f:facet name="header">Zip</f:facet>
| #{hot.zip}
| </h:column>
| <h:column>
| <f:facet name="header">Action</f:facet>
| <s:link id="viewHotel" value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
| </h:column>
| </h:dataTable>
| <s:link value="More results" action="#{hotelSearch.nextPage}" rendered="#{hotelSearch.nextPageAvailable}"/>
| </div>
| </a:outputPanel>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068257#4068257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068257
More information about the jboss-user
mailing list