On Mon, 13 Oct 2008, Matthias Keller wrote:
> Here's the scenario with two radios and a pulldown:
> ( ) I don't need anything
> ( ) I need: [ pulldown with options ]
> 
> Now if "I need" is selected, everything works as expected, the pulldown 
> value gets stored to the model.
> Now if 'I dont need anything' is selected, another value for the 
> pulldown needs to be stored in the model. Let's say a marker entry like 
> 'nothing'. I can't have 'nothing' directly in the pulldown as it would 
> make no sense (and the customer explicitly doesn't want that). So in the 
> validator I need to check the status of the radios and if the first 
> option is selected, set the pulldown model's value to my custom value, 
> ignoring any possible input value.

I think that you should do it with ajax and custom models
instead of validators. It seems like a kludge or at least a
strange side effect for a validator to do something like
that.

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

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

Reply via email to