Re: Adding a form field at run time... is it possible?

2010-01-20 Thread Alexander Elsholz
hi, use a listview. the model contains wicket-components that you put on listview. if you have different html-elements introduce a wrapper: TextfieldWrapper, SpanWrapper etc what are panels that wrapps the component. alex -

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread David Legg
Thanks again Martin, Pedro and Martijn. I've had that Aha! moment when something comes into focus! I understand now what Pedro meant about templates. Also I've had a quick peek at WicketWebBeans (WWB). I see that WWB effectively creates a specialist Wicket component that does most of what I

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Martijn Dashorst
Did you read [1] ? Martijn [1] http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ On Tue, Jan 19, 2010 at 1:59 PM, David Legg wrote: > Thanks for the ideas Martin + Pedro. > > It looks as if I'm trying to do something Wicket isn't designed for ;-) > > I wonder if another te

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Pedro Santos
Wicket tags are meant to be used to make an template. The final markup will to be generated from that template. Do you realize that you are talking about dynamically generate an template? There is no need for. Take a closer look at repeaters. On Tue, Jan 19, 2010 at 10:59 AM, David Legg wrote: >

RE: Adding a form field at run time... is it possible?

2010-01-19 Thread Martin Asenov
esday, January 19, 2010 2:59 PM To: users@wicket.apache.org Subject: Re: Adding a form field at run time... is it possible? Thanks for the ideas Martin + Pedro. It looks as if I'm trying to do something Wicket isn't designed for ;-) I wonder if another technique would be to dynamically mo

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread David Legg
Thanks for the ideas Martin + Pedro. It looks as if I'm trying to do something Wicket isn't designed for ;-) I wonder if another technique would be to dynamically modify the markup using the DOM to add the missing wicket markers as required before rendering takes place. Anyway thanks again f

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Pedro Santos
> Everything was going well until it dawned on me that the markup page has to include all the Wicket tags to match the Wicket > > > components and if they don't you get an exception. You can override the onComponentTag method from the component that is throwing the exception, and remove the tag va

RE: Adding a form field at run time... is it possible?

2010-01-19 Thread Martin Asenov
...@searchevent.co.uk] Sent: Tuesday, January 19, 2010 12:34 PM To: users@wicket.apache.org Subject: Adding a form field at run time... is it possible? Hi, Is it possible to add new form fields at run time? I'm new to Wicket and was hoping this framework would allow me to write a data driven editor.

Adding a form field at run time... is it possible?

2010-01-19 Thread David Legg
Hi, Is it possible to add new form fields at run time? I'm new to Wicket and was hoping this framework would allow me to write a data driven editor. The idea is to get the data's schema at run time and then automatically create a suitable form to allow a user to edit the data. Everything w