create a formcomponentpanel, add a checkbox and a textfield and make only one of them visible.
-igor On Fri, Apr 3, 2009 at 8:30 PM, Ian MacLarty <ian.macla...@gmail.com> wrote: > Hello, > > I'd like to create a Component that behaves like a CheckBox if its > model is a Boolean and a TextField if its model is a String. I'd like > to be able to add the component to a form with a > CompoundPropertyModel, just like you can with a CheckBox or TextField. > How would you go about creating such a component? > > Cheers, > Ian. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org