[jboss-user] [JBoss Seam] - Passing datasource parameter to <h:datatable>
oblivion1200
do-not-reply at jboss.com
Tue Sep 18 14:31:12 EDT 2007
I have a big datatable compoment and I would like to use it with diffrent data sources. I don't want to repeat datatable code many times because of change only one value="#{datasource}" parameter.
I tried templates, but it doesn't work.
myTemplate.xhtml
| <ui:composition
| <h:dataTable var="item">
| <f:param value="value">
| \#{ <ui:insert name="source"/> }
| </f:param>
| <h:column>
| ..........
|
usage
| <s:decorate template="/layout/myTemplate.xhtml">
| <ui:define name="source">datasource</ui:define>
| </s:decorate>
|
I need to get something like:
| <h:dataTable var="item" value="#{datasource}">
| <h:column>
| .......
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085681#4085681
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085681
More information about the jboss-user
mailing list