Re: Conditional input types

2014-05-20 Thread david.latan
han 5 differents fragments. So thank you, this thread is pretty mush closed, others solutions should be usable too, but fragments seems the way to go. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665961.html Sent from the Users forum ma

Re: Conditional input types

2014-05-20 Thread Simon B
Ernesto, Martin, Just to clarify a bit. I didn't say that you couldn't do it with wicket. Simply that david.latan's strategy - > I couldn't manage to use AttributeModifier in order to assign a CheckBox > to the input. http://apache-wicket.1842946.n4.nabble.c

Re: Conditional input types

2014-05-20 Thread Martin Grigorov
quot;, type, this)); For this simple use case a Fragment is enough. If there are many different options (let's say more than 5) then the approach with the factory and the Panels would be better. > > > As I understand your post, Wicket doesn't work in the way that would &g

Re: Conditional input types

2014-05-20 Thread Ernesto Reinaldo Barreiro
ern I mentioned on a previous e-mail. IMHO the problem just arises because he's trying to use wicket in a way it is not intended to be used. > As I understand your post, Wicket doesn't work in the way that would allow > you to achieve your goal with the strategy that you've cho

Re: Conditional input types

2014-05-20 Thread Simon B
to the html as you might with a jsp then you could you achieve your goal very quickly. As I understand your post, Wicket doesn't work in the way that would allow you to achieve your goal with the strategy that you've chosen. -- View this message in context: http://apache-wicket.

Re: Conditional input types

2014-05-19 Thread David Beer
book isn't available as an e-book. > I can't wait too long, so sadly this doesn't help me too much. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665935.html > Sent from the Us

Re: Conditional input types

2014-05-19 Thread david.latan
ket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665938.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Conditional input types

2014-05-19 Thread Simon B
ld be well worth your time buying it. Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665937.html Sent from the Users forum mailing list archive at Nabbl

Re: Conditional input types

2014-05-19 Thread Martin Grigorov
sefull, and the book isn't available as an e-book. > I can't wait too long, so sadly this doesn't help me too much. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665935.html > Sent from the Us

Re: Conditional input types

2014-05-19 Thread david.latan
well the book seems great, unfortunatly google doesn't share the pages that are usefull, and the book isn't available as an e-book. I can't wait too long, so sadly this doesn't help me too much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Con

Re: Conditional input types

2014-05-19 Thread Simon B
ery pertinent Hope that helps, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-input-types-tp4665924p4665928.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Conditional input types

2014-05-19 Thread Ernesto Reinaldo Barreiro
Hi, I would do something like 1- interface IFieldFactory { boolean canHandle(Variable variable); Panel createComponenPanel(String id, Variable variable); } 2- FiledFactoryLocator having a collection of field factories. 3- On your listview for(IFieldFactory factory: locator.getFie

Re: Conditional input types

2014-05-19 Thread Martin Grigorov
Hi, This is a perfect use case for org.apache.wicket.markup.html.panel.Fragment. Martin Grigorov Wicket Training and Consulting On Mon, May 19, 2014 at 11:49 AM, Valentin Robert wrote: > Hi > > i 'm new with wicket and after searching a solution to my problem, i > couldn't find any solution >

Conditional input types

2014-05-19 Thread Valentin Robert
Hi i 'm new with wicket and after searching a solution to my problem, i couldn't find any solution Here is what i want to do. I would like to build a form where the input type can be textfields, checkboxes, dropdown, ... i've seen that some solutions would be to create a new conponent, or to ha