wood burning stoves*
The moose likes JSF and the fly likes t:commandLink is not working inside a t:dataTable..Can anybody help.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "t:commandLink is not working inside a t:dataTable..Can anybody help.." Watch "t:commandLink is not working inside a t:dataTable..Can anybody help.." New topic
Author

t:commandLink is not working inside a t:dataTable..Can anybody help..

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

when i use a t:commandLink inside a t:dataTable it is not working. I'm getting the same page with no values. If i put the same commandlink outside the datatable its working perfectly fine i.e., going to the next page..I've read in some sites that i should put the managed bean in the session to make it work. Is it the only solution which i cannot afford?
Vikram Gupta
Greenhorn

Joined: Dec 02, 2008
Posts: 1
I am also having the same problem.

I tried iteration alternatives like t:dataList and a4j:repeat instead of h:dataTable and didn't get any success. The code snippet is as follows:

<t:dataList value="#{questionnaireBean.selectedQuestionsList}" var="instance">
<hutputText value="#{instance.statement}"></hutputText>
<a4j:commandLink actionListener="#{questionnaireBean.removeQuestion}" reRender="selectedQuestions,tagsPanel" value="Remove"/>
<br/>

</t:dataList>

Kindly help.

-VG
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
I am just curious but did it work with the managed bean in session scope?
Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

nope..did not work..but if we use preserveDataModel="true" for datatable it works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: t:commandLink is not working inside a t:dataTable..Can anybody help..