voyent
Messages posted by: atomz4peace  XML
Profile for atomz4peace -> Messages posted by atomz4peace [121] Go to Page: Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
Author Message
Hi,

Using the component examples I could make a pageable and sortable table with a session-persistent backing bean. This works fine but leaves me with 2 questions I'm wondering if anyone has good solutions for.

1) The simple one is what if my data in the database changes mid-session? Can I put an expiration time on the data. I know I can use java time/date/calendar to make my own simple expire timer, but does icefaces have support already?

2) This is the big one. I have some reports that may pull a couple thousand rows from the database and use them to populate the same number of resulting business objects.

This is a bit slow on the DB to do the full query, but more importantly, uses lots of memory.

So my question is does icefaces have any built-in support for retrieving data from the DB as I need it? I know that I have to write the backing bean myself (which I did for the main query), but does anyone have sample code or logic to make it simpler.

In my session bean, can I get the values from ICE about how many rows per page and what page I'm on so that I can write the DB query correctly to get the right data? I know that writing partial queries would break the whole SortableList support but does anyone have any good solutions?

Thanks!
Jim
 
Profile for atomz4peace -> Messages posted by atomz4peace [121] Go to Page: Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
Go to:   
Powered by JForum 2.1.7ice © JForum Team