Hi Gaston,

Could you post some simplified code on how you do this ? What is the reason you are storing the "page instance class" ? Why not just do like:

<property-specification name="tableState" type="foo.PageState" persistent="yes">
new foo.PageState()
</property-specification>


Bruno

Ing. Gaston Blanco wrote:

One tip I found usefull: instead of having multiple persistent attributes (that is really boring to do in every page), try
only having two persistent attributes: One where you keep all the state information of the page(call it "page instance", put there all the variables you always put in the page), and another one where you instruct tapestry wich class the previous object is. In your page you can put only two variablesthat is the "page instance" variable and the "page instance class" variable. In an init() method you can grab the "page instance class" variable and instanciate a new "page instance" object (with the class specified in "page instance class") where you will keep your page state. I'm sure there are a lot better ways of doing this, but this is the one I found and it worked for me.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to