> On 18 Nov 2014, at 02:44, Thiago H de Paula Figueiredo <[email protected]> 
> wrote:
> 
> 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.

Thanks Thiago. I will follow this advice.

> 
>> 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).

I can understand this for secure="always". It doesn’t make sense for 
secure="auto"

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

Reply via email to