How to create my own components with HiddenFiled and TextField

2007-09-13 Thread Kevin Liu
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~

Re: How to create my own components with HiddenFiled and TextField

2007-09-13 Thread Carlos Pita
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