This content has been marked as final.
Show 6 replies
-
1. Re: Passing datasource parameter to <h:datatable>
smithbstl Sep 18, 2007 2:41 PM (in response to oblivion1200)I am doing something similar. You don't need to use f:param
<!--DataTable.xhtml--> <ui:composition <h:dataTable var="item"> value="#{source}"/> ..........
<ui:include src="DataTable.xhtml"/> <ui:param name="source" value="#{SomeListHere}"/> <ui:include/>
-
2. Re: Passing datasource parameter to <h:datatable>
oblivion1200 Sep 18, 2007 2:51 PM (in response to oblivion1200)Thank you smithbstl. It works great! :)
-
3. Re: Passing datasource parameter to <h:datatable>
smithbstl Sep 18, 2007 2:59 PM (in response to oblivion1200)You're welcome, :)
-
4. Re: Passing datasource parameter to <h:datatable>
oblivion1200 Sep 19, 2007 4:49 AM (in response to oblivion1200)I was happy that I have solved the problem, but it is not over yet :(
I found that using datatable this way gives me null @DataModelSelection. When I use datatable in normal way it works fine.
Using ui:param works only to display data for me.
I can't use it like this:....... <h:column> <s:link value="#{item.title}" action="#{object.setValue(item)}"/> </h:column> .......
because item is null. I've found in server logs that setValue is fired two times instead of once. -
5. Re: Passing datasource parameter to <h:datatable>
baz Sep 19, 2007 7:08 AM (in response to oblivion1200)Look at this post:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117233
As of today i have no answer how it could work with facelets:-(
Ciao,
Carsten -
6. Re: Passing datasource parameter to <h:datatable>
wise_guybg Sep 19, 2007 7:27 AM (in response to oblivion1200)You seam to have both the same problem. I'm also interested to see if there is a solution.