What about PropertyModel with TextField and HiddenField, the usual way? add(new HiddenField("hiddenField", new PropertyModel(bean, "property1"))); add(new TextField("displayField", new PropertyModel(bean, "property2")));
Regards, Carlos On 9/13/07, Kevin Liu <[EMAIL PROTECTED]> wrote: > Hi! > I wanna create my own components with HiddenField and TextField > This is HTML: > <wicket:panel> > <input type="hidden" wicket:id="hiddenFiled"></input> > <input type="text" wicket:id="displayField"></input> > </wicket:panel> > > But I have no idea about which kind of IModel to use to bind a POJO. > Thank you~ > > > -Kevin Liu > > --------------------------------- > Moody friends. Drama queens. Your life? Nope! - their life, your story. > Play Sims Stories at Yahoo! Games. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]