Create a panel with dummy components (e.g. Label components where the
label is an empty string).  Later you can "replace" one or more of the
components.

One complication is that some wicket components (e.g. Image) need to be
attached to specialized HTML.  However, the basic principle still
stands.

-----Original Message-----
From: Gw [mailto:[email protected]] 
Sent: Saturday, November 07, 2009 7:38 AM
To: [email protected]
Subject: dynamic components

Hi people,

Does anyone know how to dynamically add components to a form?
The types and numbers of the components are arbitrary, and will be
determined programmatically.
In one page, the form may contain 1 textbox, 2 buttons. In another page,
it
may contain 2 textareas, 1 checkbox, and so on...

Perhaps there's a framework over Wicket for this?
Lots of thanks in advance for ur assist.

Regards,
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to