Component Model question

2009-04-13 Thread Craig Tataryn
I have a component I'm designing where it displays a list of items to the user, so the setup for the component on the page might look like this: add(new MultiTextInputCollectionString(tags, new ArrayListString() { { add(apple);

Re: Component Model question

2009-04-10 Thread Martin Makundi
Are you trying to handle state on client side? While that is possible, it is not the purpose of Wicket. Would you consider managing he state on server side? ** Martin 2009/4/10 Craig Tataryn crai...@tataryn.net: I have a component I'm designing where it displays a list of items to the user, so

Re: Component Model question

2009-04-10 Thread Craig Tataryn
On 10-Apr-09, at 12:58 PM, Martin Makundi wrote: Are you trying to handle state on client side? While that is possible, it is not the purpose of Wicket. Would you consider managing he state on server side? It's an existing javascript widget I wrote so I was looking for a quick port to

Re: Component Model question

2009-04-10 Thread Martin Makundi
So if it's possible for me to (easily) map those two sets of hidden inputs to my model upon form submit I'd really like to know how. What specifically is the difficult part? ** Martin - To unsubscribe, e-mail:

Re: Component Model question

2009-04-10 Thread Igor Vaynberg
look at textfield. all you have to do is to write out the input tags with a name you obtain from formcomponent.getname() - to guarantee uniqueness, then override convertinput() and pull those values out of the request into a collection and call setconvertedinput(collection). formcomponent will

Re: Component Model question

2009-04-10 Thread Craig Tataryn
On 10-Apr-09, at 3:10 PM, Igor Vaynberg wrote: look at textfield. all you have to do is to write out the input tags with a name you obtain from formcomponent.getname() - to guarantee uniqueness, then override convertinput() and pull those values out of the request into a collection and call

Re: Component Model question

2009-04-10 Thread Igor Vaynberg
no, all you have to do is override convertinput and inside call setconvertedinput(yourcollection); the default implementation of updatemodel() already does getmodel().setobject(getconvertedinput()); -igor On Fri, Apr 10, 2009 at 3:29 PM, Craig Tataryn crai...@tataryn.net wrote: On 10-Apr-09,