I have run the page in Tomcat and narrowed down the problem to the following:
- FCP's convertInput is NOT called only when radio tied to drop down is
selected. 

I think the problem has something to do with both PublicLocationRadio and
PublicLocationDropDownChoice sharing the same model (publicLocationModel).
Here's what is happening (in actual order) during form submit:
-FormComponent.convertInput() called on Radio Group. at end of method
'convertedInput' is null (THIS IS BECAUSE SELECTED PublicLocationRadio's
model object is null)
-FormComponent.convertInput() called on PublicLocationDropDown. convertInput
is corrrectly updated to new PublicEventLocation model object
-FromComponent.convertInput() is NOT called at all. As the matter of fact,
FCP is NOT visited with ValidationVisitor created inside
Form.validateComponents()


So, I clearly made a wrong assumption that DropDownChoice would be evaluated
before PublicLocationRadio. I thought dropdown would update
publicLocationModel to own selected value and when RadioGroup's convertValue
calls publicLocationradio.getModelObject(), publicLocationModel would return
newly updated model object.

But I still do not understand why FCP's is not visited in
Form.validateComponents() or its' convertInput method called.

my RadioGroup is setRequired(true) and yet, because of the above problem,
its' convertInput is set to null. Would that be the reason why FCP is not
visited?

thanks,


-----
----------------
Nikita Tovstoles
vside.com
----------------

-- 
View this message in context: 
http://www.nabble.com/Custom-Radio-component-with-children--tp19804341p19864220.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to