Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

dataTable and commandLink not working together

843842Aug 25 2004 — edited Feb 27 2009
Hi,
I have the following data table:
<h:dataTable value="#{userSearch.userList}" var="user" headerClass="dataTableHeader" rowClasses="oddRow,evenRow">    
    <h:column>
        <f:facet name="header">
            <h:outputText value="#{msgs.name}1.1"/>
        </f:facet> 
      <h:commandLink action="#{userSearch.retrieveUser}" immediate="true">
            <h:outputText value="#{user}"/>
        </h:commandLink>
    </h:column>
</h:dataTable> 

<h:commandLink action="#{userSearch.retrieveUser}" immediate="true">
    <h:outputText value="Test me ....."/>
</h:commandLink>
As you can see the action in both commandLinks is the same. When I click on the commandLink outside the datatable the action method is called, but when I click on the action on the commandLink inside the dataTable, it just reloads the current page.

Is there any bug / issue with dataTables and commandLinks?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2009
Added on Aug 25 2004
84 comments
3,629 views