This content has been marked as final.
Show 4 replies
-
1. Re: Dynamic text inside datatable header
andrei_exadel Feb 3, 2009 12:40 PM (in response to priestex)Hello,
You cannot use var request variables defined by dataTable in column's header facet. Var is initialized during table's rows encoding, but facets are rendered before it.
Anyway you case in obscure. Column header is rendered one for whole row. But you want to set name for header related to each data row. -
2. Re: Dynamic text inside datatable header
priestex Feb 3, 2009 12:52 PM (in response to priestex)I thought putting it in the header facet meant that it will only get rendered once, for the header.
All the examples online seem to use constants for datatable headers. All I want to do is access some property on my bean instead of using a hard coded string for the header. Is there some way I can do that? -
3. Re: Dynamic text inside datatable header
ilya_shaikovsky Feb 4, 2009 6:49 AM (in response to priestex)Andrei just wanted to tell you not to use iteration variable. Just use something like
<f:facet name="header"> <h:outputText value="#{beanName.header1StringProperty}"/> </f:facet>
-
4. Re: Dynamic text inside datatable header
priestex Feb 4, 2009 12:00 PM (in response to priestex)Ok, got that.
Thanks for the help