the easiest way to do this would be to make your component a formcomponentpanel
then you have formcomponentpanel -radiogroup --radio1 --radio2 -dropdown and in your fcp's convertinput() check the convertedinput() of radio and based on that call setconvertedinput() with either the radio's or the dropdown's value -igor On Fri, Oct 3, 2008 at 12:43 PM, dukehoops <[EMAIL PROTECTED]> wrote: > > I'd like to create a component that consists of: > -radio > -dropdown choice > > The component would be part of a RadioGroup, drop down should only be > enabled when radio is selected. The component, radio, and dropdown's > getModelObject() would return same MyBean pojo (Dropdown's is displaying a > list of MyPojos) - because that model would be used by owning RadioGroup > > What model class should I use? > > Also what should the component type be? Should this component be a: > -panel > -FromComponentPanel > -or subclass of Radio? > > Radio is a MarkupContainer which means I should be able to extend Radio and > add DropDownChoice as a child. However, radio's markup is [input/] which > AFAIK does not allow children. So, if the answer to above is "subclass > Radio" what to do with HTML? > > thanks > -nikita > > ----- > ---------------- > Nikita Tovstoles > vside.com > ---------------- > > -- > View this message in context: > http://www.nabble.com/Custom-Radio-component-with-children--tp19804341p19804341.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
