[
https://issues.apache.org/jira/browse/TRINIDAD-2527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500308#comment-16500308
]
ramya commented on TRINIDAD-2527:
---------------------------------
Hi Deepan,
Thank you for the update. We have the same context param with the value
"*Session*".
<context-param>
<param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
<param-value>*session*</param-value>
</context-param>
The *tr:table* selection scope should also same as backing bean scope. Before
navigating to the some other page we are removing the backing bean from session
manager but still the core table is holding the radio selection as well page
selection
We tried with your suggestion also but its working as request scope. Its re
setting the core table for every request where it should be session
We resolved this by creating the dynamic id to the tr:table and this id is
getting generated in backing bean constructor. When ever we land to the same
page the page is loading with new id and there is no chance of getting the
previous selection values.
<tr:table id="#{offlineStandardReportsBacker.*dynamicID*}"
We got another solution also ie we are deleting the
"*org.apache.myfaces.trinidadinternal.ComponentChangesMapForSession*" key from
the session manager at constructor level. It deletes all the page keys we can
delete the particular keys which is specific to the xhtml
below is the sample key for a particular page
*org.apache.myfaces.trinidadinternal.ComponentChangesMapForSession/portal/report/StandardReports.xhtml*
Thank you so much
> Row selection retains with tr:table
> -----------------------------------
>
> Key: TRINIDAD-2527
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2527
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Archetype
> Affects Versions: 2.1.1-core
> Environment: Windows 7, Java 7
> Reporter: Deepan
> Priority: Major
> Original Estimate: 120h
> Remaining Estimate: 120h
>
> A page contains <tr:table> with rowSelection as "Single/Multiple" and the
> beans are session scoped.
> - Select a row using the radio or checkbox
> - Navigate to some other pages
> - Again come back to page 1. Now, previously selected radio or checkbox are
> selected.
> {code:title=Sample code|borderStyle=solid}
> <tr:table id="myTableId"
> rowSelection="single"
> value="#{myBean.myList}"
> var="groups" varStatus="rowId" rowBandingInterval="1"
> verticalGridVisible="true"
> selectionListener="#{myBackingBean.myRowSelectListener}">
> ...
> ...
> </tr:table>
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)