-
1. Re: datatable / datascroller issue
sergeysmirnov Mar 13, 2007 7:37 PM (in response to javajoe220)If your backingBean has a request scope, it might work like you describe.
So, what is the scope? -
2. Re: datatable / datascroller issue
javajoe220 Mar 13, 2007 7:39 PM (in response to javajoe220)Thanks for the quick response -
Everything is currently conversationally scoped in Seam. The backing bean is a Stateful session bean. -
3. Re: datatable / datascroller issue
sergeysmirnov Mar 13, 2007 8:03 PM (in response to javajoe220)I want to be sure I understand your use case correctly.
At the first time the page is loaded the "Date" is displayed but not "Amount"
When you check the select box and then click the button, the Amount becomes displayed
When you click on the datascroller. the Amount becomes hidden again
When you having the select box checked click the "Get Data" button again, the Amount becomes displayed
Does it work like that? -
4. Re: datatable / datascroller issue
javajoe220 Mar 13, 2007 8:23 PM (in response to javajoe220)Yes that is correct - to clarify:
If the "show me" checkbox is checked and the column is displayed on the screen from a "Get Data" command, and then the data scroller is used - the amount column does NOT appear but the checkbox is still checked.
Subsequent "Get Data" commands restores the table until I use the datascroller again. -
5. Re: datatable / datascroller issue
sergeysmirnov Mar 13, 2007 8:51 PM (in response to javajoe220)The checkbox is not updated on the screen because you just do not update it clicking the datascroller links.
So, the truth is you have the backingBean.showColumn returns false on the server side during each request from the datascroller controls. It happens because the Conversation does not continue, but starts over (ant the default value is false for showColumn )
Try:
<rich:datascroller ajaxSingle="false" for="tranTable"/> -
6. Re: datatable / datascroller issue
ishabalov Mar 13, 2007 9:36 PM (in response to javajoe220)You may use firebug to track all requests and make sure that you always hit same conversation (normally you have conversation id between parameters)
-
7. Re: datatable / datascroller issue
javajoe220 Mar 14, 2007 11:21 AM (in response to javajoe220)<rich:datascroller ajaxSingle="false" for="tranTable"/>
That did the trick! - thanks!