• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
expectation is the root of all heartache - shakespeare. tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic