On Mon, 17 Nov 2014 10:41:20 -0200, D Tim Cummings <[email protected]> wrote:

Thanks. That wasn’t my question but it does help me. With secure="always", I would need the model for render and form submission. So according to what you are saying I could init the model in onActivate() OR onPrepare() OR (onPrepareForSubmit() AND setupRender()).

I'd use onPrepare(), as it's the only one that always gets invoked when rendering and before handling form submissions.

Or just have a getter that inits and returns the model. That's what I usually do.

My actual question is why do I need to init the model in one of these methods for secure="auto" or the default secure attribute (which is supposed to be backward compatible)?

This is done so Select never gives a value to your edited property that isn't in the list of valid value (SelectModel).

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to