[ http://jira.jboss.com/jira/browse/RF-3314?page=all ]

Robert Stone updated RF-3314:
-----------------------------

    Description: 
When clicking on links within datatable action/actionListener/actionparam is 
not executed when bean is placed in request scope. Code works with backing bean 
in the session scope.

                                <rich:dataTable id="seachResultsTable" 
var="seachResult"
                                        value="${modalForm.searchResults}">
                                        <rich:column>
                                                <a4j:commandLink 
value="#{seachResult}" event="onclick"
                                                        id="selectSearchValue" 
reRender="modalMasterValue">
                                                        <a4j:actionparam 
name="searchFor" value="#{seachResult}"
                                                                
assignTo="#{modalMaster.searchFor}" />
                                                </a4j:commandLink>
                                                <rich:componentControl 
for="modalSearchPanel" operation="hide"
                                                        event="onclick" />
                                        </rich:column>
                                </rich:dataTable>

Backing beans Spring configuration (works if the second bean is moved to the 
session scope):

    <bean id="modalMaster" class="view.bean.ModalMasterBean" scope="request">
        <property name="searchFor" value="... enter search"/>
    </bean>
    <bean id="modalForm" class="view.bean.ModalFormBean" scope="request" />


  was:
When clicking on links within datatable action/actionListener/actionparam is 
not executed when bean is placed in request scope. Code works with backing bean 
in the session scope.

                                <rich:dataTable id="seachResultsTable" 
var="seachResult"
                                        value="${modalForm.searchResults}">
                                        <rich:column>
                                                <a4j:commandLink 
value="#{seachResult}" event="onclick"
                                                        id="selectSearchValue" 
reRender="modalMasterValue">
                                                        <a4j:actionparam 
name="searchFor" value="#{seachResult}"
                                                                
assignTo="#{modalMaster.searchFor}" />
                                                </a4j:commandLink>
                                                <rich:componentControl 
for="modalSearchPanel" operation="hide"
                                                        event="onclick" />
                                        </rich:column>
                                </rich:dataTable>

Backing beans Spring configuration (works if the second bean is moved to the 
session scope):

    <bean id="modalMaster" 
class="com.boeing.nmt.nams.view.bean.ModalMasterBean" scope="request">
        <property name="searchFor" value="... enter search"/>
    </bean>
    <bean id="modalForm" class="com.boeing.nmt.nams.view.bean.ModalFormBean" 
scope="request" />



> CommandLink action within dataTable is not executed in request scope
> --------------------------------------------------------------------
>
>                 Key: RF-3314
>                 URL: http://jira.jboss.com/jira/browse/RF-3314
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>         Environment: myfaces 1.2.2
>            Reporter: Robert Stone
>
> When clicking on links within datatable action/actionListener/actionparam is 
> not executed when bean is placed in request scope. Code works with backing 
> bean in the session scope.
>                               <rich:dataTable id="seachResultsTable" 
> var="seachResult"
>                                       value="${modalForm.searchResults}">
>                                       <rich:column>
>                                               <a4j:commandLink 
> value="#{seachResult}" event="onclick"
>                                                       id="selectSearchValue" 
> reRender="modalMasterValue">
>                                                       <a4j:actionparam 
> name="searchFor" value="#{seachResult}"
>                                                               
> assignTo="#{modalMaster.searchFor}" />
>                                               </a4j:commandLink>
>                                               <rich:componentControl 
> for="modalSearchPanel" operation="hide"
>                                                       event="onclick" />
>                                       </rich:column>
>                               </rich:dataTable>
> Backing beans Spring configuration (works if the second bean is moved to the 
> session scope):
>     <bean id="modalMaster" class="view.bean.ModalMasterBean" scope="request">
>         <property name="searchFor" value="... enter search"/>
>     </bean>
>     <bean id="modalForm" class="view.bean.ModalFormBean" scope="request" />

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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to