Query regarding the scope of a page

hi all

i have problem with scopes of the pages.I have a data entry page where i have a button to add address.When i click on address button it will go to another page where i can add the address.After adding it returns to the entry page.The problem is that when it returns all the data entry feilds are cleared.Is there any way to restore the states of the textfields and other componenets.Please help me

Thanks in advance

Sree

[452 byte] By [harisree] at [2007-11-26 8:28:20]
# 1

Yes there is. Store the values in managed bean properties and, in the prerender method, set the component values to the values from the managed bean properties.

For more information, see:

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/jsc intro.html#08

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/sco pes.html

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/dat a_sharing_twopages.html

jetsons at 2007-7-6 21:45:21 > top of Java-index,Development Tools,Java Tools...