• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 101
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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">
<h:outputText value="#{instance.statement}"></h:outputText>
<a4j:commandLink actionListener="#{questionnaireBean.removeQuestion}" reRender="selectedQuestions,tagsPanel" value="Remove"/>
<br/>

</t:dataList>

Kindly help.

-VG
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nope..did not work..but if we use preserveDataModel="true" for datatable it works.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic