Commandlink or commandbutton don't work in datatable

in my JSP :

<t:datatable id="entityTable" value="#{groupManagerBean.group.entities}" ...>

<h:column>

<f:facet name="header">...</f:facet>

<h:commandlink action="#{groupManagerBean.editAction}" value="test"/>

</h:column>

</t:datatable>

I never enter in my action (editAction).

"#{groupManagerBean.group.entities}" return the entities for a group and that's work fine, but the commandlink (or commandbutton) in my datatable doesn't work. If i replace the action "#{groupManagerBean.editAction}" by "success" (a navigation forward in my face-config), that doesn't work anymore.

Last thing,in my datatable, if i replace the value "#{groupManagerBean.group.entities}" by"#{groupManagerBean.groups}" ( get the list of all groups) , the commandlink works.

Any suggestion ?

[1010 byte] By [moikev2003a] at [2007-10-2 4:42:42]
# 1
Is this helpful? http://forum.java.sun.com/thread.jspa?threadID=640714&messageID=3766786#3766786John.
JohnLusk4a at 2007-7-16 0:47:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks,but i wanted to avoid to make the model bean in session-scope or to use <h:outputLink>.if there is only this solution ....
moikev2003a at 2007-7-16 0:47:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The commandlink works in the datatable if you init your collection for the datatable in the constructor. Then you can use the backing-bean in request scope not in session scope.......cause every time the data were loaded!!
funkyboya at 2007-7-16 0:47:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
another test : if a put in my jsp <t:saveState id="groupManagerBean" value="#{groupManagerBean}" />the commandlink or commandbutton work fine.any explanation ?
moikev2003a at 2007-7-16 0:47:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
my explanation : http://forum.java.sun.com/thread.jspa?threadID=5116147
GBerberoglua at 2007-7-16 0:47:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
in my application the commandlink, actionlistener and datatable work together even in a request-scope bean when i use the attributepreserveDataModel=攖rue?br>of the datatable
roy_eldridgea at 2007-7-16 0:47:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...