[jboss-user] [JBoss Seam] - s:fragment in dataTable
tony.herstell@gmail.com
do-not-reply at jboss.com
Fri Apr 20 17:49:29 EDT 2007
given :
| <h:dataTable var="eachDisplayableCategory"
| value="#{displayableCategorySet}"
| rendered="#{displayableCategorySet.rowCount>0}">
|
| <h:column>
| <f:facet name="header">
| <h:outputText value="#{messages.category_name}" />
| </f:facet>
| <h:outputText value="Head: #{eachDisplayableCategory.head} - " />
| <h:outputText value="Displayed: #{eachDisplayableCategory.displayed} - " />
| <h:outputText value="Selected: #{eachDisplayableCategory.selected} - " />
| <h:outputText value="Parenting: #{eachDisplayableCategory.parenting} - " />
| <h:outputText value="Refined: #{eachDisplayableCategory.refined} - "/>
| <h:outputText value="Name: #{eachDisplayableCategory.immutableCategory.nameKey}"/>
| </h:column>
|
| <s:fragment rendered="#{eachDisplayableCategory.displayed}">
|
| <h:column>
|
The last fragment, that comes before a <h:column> causes the <h:column> to not be rendered in a dataTable. IS THIS A BUG?
Also.. it appears that not providing a <h:column> at all; causes no text to be display (This one I can appreciate - even though it took hours to find it!).. a useful message from JSF saying NO Columns would have been nice!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039437#4039437
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039437
More information about the jboss-user
mailing list