[ http://issues.apache.org/jira/browse/MYFACES-604?page=all ]
     
Mathias Broekelmann closed MYFACES-604:
---------------------------------------

    Resolution: Won't Fix

the datatable needs it´s value during the processDecode phase. Please make sure 
that your returned datamodel contains some data and is not null. Place a 
breakpoint in your value getter method of the datatable and hit the 
commandlink. If you return null or an empty datamodel (or collection) the 
datatable is not able to iterate through the rows and can not fire the action 
events.

> CommandLink & CommandButton do not invoke action if render inside the table
> ---------------------------------------------------------------------------
>
>          Key: MYFACES-604
>          URL: http://issues.apache.org/jira/browse/MYFACES-604
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.1.0
>  Environment: XP professional, IE, Firefox
>     Reporter: Hovan

>
> I have the table 3 columns, one column i render as commandLink or 
> commandButton. The problem is the action at the backend never got invoke.
> I try another test by put one link out side of the table block. It works very 
> OK.
> One more thing is: if csCardSearchHandler has session scope it's also OK. But 
> in my case csCardSearchHandler has request scope. I did try version 1.0.9 and 
> then 1.1.0 neither of those work.
> <x:dataTable id="accountResult" value="#{csCardSearchHandler.accountResult}" 
> var="account"
>       rows="10" rowIndexVar = "rowIdx" renderedIfEmpty="false">
>       <h:column>
>               <f:facet name="header">
>                       <h:outputText value="[No.]"/>
>               </f:facet>
>               <h:outputText value="#{rowIdx}"/>
>       </h:column>
>       <h:column>
>               <f:facet name="header">
>                       <h:outputText value="[Account No.]"/>
>               </f:facet>
> <!-- THIS DOES NOT WORK -->
>               <x:commandLink action="#{csCardSearchHandler.processResume}" 
> value="#{account.number}">
>               </x:commandLink>
>       </h:column>
>       <h:column>
>               <f:facet name="header">
>                       <h:outputText value="[Name]"/>
>               </f:facet>
>               <h:outputText value="#{account.name}"/>
>       </h:column>
>       <h:column>
>               <f:facet name="header">
>                       <h:outputText value="[SSN]"/>
>               </f:facet>
>               <h:outputText value="#{account.ssn}"/>
>       </h:column>
>       </x:dataTable>
>       <!-- THIS IS OK-->
>       <x:commandLink action="#{csCardSearchHandler.processResume}" 
> value="test">
>                       <x:updateActionListener 
> property="#{csCardRequestHandler.accountNumber}"
>                                       value="4444"/>
>                       <x:updateActionListener 
> property="#{csCardRequestHandler.cardDetail.name}"
>                                       value="XXXXXXXXXXXXXXXX"/>
>       </x:commandLink>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to