• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with commandLink

 
robert isidorson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im having a problem with commandlink with a richDatatable.
When i put the link inside the table it doesnt work and when i move the link just outside, it works!
Doesnt work:
<rich:dataTable value="#{provider.publications}" var="pub"rows="10"id="table2">
<rich:column>
<f:facet name="header">
<hutputText value="Id" />
</f:facet>
<h:commandLink action="failure" value="#{pub.id}">
<hutputText value="#{pub.id}" />
</h:commandLink>
</rich:column>
...

Does work:
<h:commandLink action="failure" value="#{pub.id}">
<hutputText value="#{pub.id}" />
</h:commandLink>
<rich:dataTable value="#{provider.publications}" var="pub"rows="10"id="table2">
<rich:column>
<f:facet name="header">
<hutputText value="Id" />
</f:facet>
</rich:column>
...
 
Amit Nair
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try these things
1. above the table put h:messages tag & see whats errors are coming there, try resolving by that
2. add attribute immediate=true in h:commandLink
3. check the scope of bean, if its request then try changing it to session
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic