Meaningless Drivel is fun!*
The moose likes JSF and the fly likes Problem with commandLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with commandLink" Watch "Problem with commandLink" New topic
Author

Problem with commandLink

robert isidorson
Greenhorn

Joined: Sep 03, 2007
Posts: 19
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

Joined: May 23, 2006
Posts: 16
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with commandLink
 
Similar Threads
Skinning issue in Richfaces 4 and JSF 2
commandLink with <rich:dataTable>, problem in pagination
Rich:Datatable rerendering problem
two rich:datascroller in one page, one works, the other doesn't
Help with rich:datascroller