Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just curious but did it work with the managed bean in session scope?
 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nope..did not work..but if we use preserveDataModel="true" for datatable it works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic