wrap this in a formcomponentpanel, that way in convertinput() of the panel you have all child component's inputs available also via getconvertedinput().
anothing option, if you are using 1.4 is to wrap this in a panel or a fragment and use IFormModelListener to push whatever value you want into the model. -igor On Mon, Oct 13, 2008 at 6:43 AM, Matthias Keller <[EMAIL PROTECTED]>wrote: > Hi > > I've got a custom validator here which needs to dynamically change some > other input field's value to a new value. > 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 tried it with .setModelObject() and .setConvertedInput() but it appears > that the input fields are initialized again later from the parameters, > overriding my value... > > Is there anything I can do? > > Thanks > > Matt > > -- > [EMAIL PROTECTED] +41 44 268 83 98 > Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich > http://www.ergon.ch > ______________________________________________________________ > e r g o n smart people - smart software > > >