Is there a way to avoid using session scope when using DataTables?

Hi,

Although I'm new to JSF it seems there is not other way but to use the session scope when using data tables.

Trying to use the BalusC (http://balusc.xs4all.nl/srv/dev-jep-dat.html#SelectMultipleRows) tutorial (Select multiple rows section) ends up with null pointer exception when trying to access the List that was used to build the DataTable.

Is there something I'm doing wrong?

I did the tutorial step-by-step, creating a managed bean in request scope, building my table according to a list which I抦 getting from the server, modifying the data, marking the rows I want to update, click submit.... and getting null pointer exception.

[674 byte] By [Shachara] at [2007-11-26 16:28:45]
# 1
Can you post the relevant stacktrace of the nullpointer?Well you can download an EAR there, it contains live examples in the request scope. Please give it a try.
BalusCa at 2007-7-8 22:53:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

Well, looking at the ear I just figured it out, in your example you are building your List upon bean creation where I'm building my List upon client request, therefore I need to come with a mechanism to save my list on the session and get it when I want to store my changes...

I tried to use tomahawk saveState component but I really have no idea how to use it.

Any examples will help.

Shachara at 2007-7-8 22:53:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Check this topic http://forum.java.sun.com/thread.jspa?threadID=5122143&messageID=9429300
BalusCa at 2007-7-8 22:53:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...