Request Scope bean problem..PLEASE HELP

Hi ,

I have a datatable in jsf page , and its value is arraylist in a request scoped bean. There is a button "Add Row", which when clicked adds a new object in the list.

my list in backing bean is static, because otherwise it gets reintialized for every request.

Now my problem is, suppose user adds 3 rows in page, there are 3 objects in list, then he goes to some other page...and when he again goes to that addrow page, 3 elments will be shown in page as the list is static.

so how can i clear the list?

or is there any other way out?

Thanks in advance,

Chitra

[612 byte] By [chitra_Ja] at [2007-11-27 3:56:38]
# 1
Don't use a static list, but a session scoped bean for the data and eventually reload it on every new view.
BalusCa at 2007-7-12 9:00:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...