Add AJAX behaviour to embedded custom form component

2008-11-03 Thread Gianni Doe
I've developed a custom form component (FormComponentPanel), a date picker, that makes use of 2 fields - a display TextField and a HiddenField for the model data. I'm then adding this to the page with a span tag: span wicket:id=dropoffDate[dropoff date picker]/span Then in the java :

Re: Add AJAX behaviour to embedded custom form component

2008-11-03 Thread Igor Vaynberg
a better way is to have a factory method for the internal components, that way the user can do component newcomponent(string id, imodel model) { component c=super.newcomponent(id, model); c.add(whateverbehavior); return c; } -igor On Mon, Nov 3, 2008 at 6:02 AM, Gianni Doe [EMAIL