Re: formComponentPanel with content generated by RepeatingView

2011-04-24 Thread kamiseq
yep I did it like that and it works public class Editor extends FormComponentPanel> { private ListView item; /** * If you dont have ArrayList you can always copy your collection to new ArrayList. * * @param id of the control * @param accounts a list of all accounts ass

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread Pedro Santos
On Sat, Apr 23, 2011 at 2:45 PM, kamiseq wrote: > heh i thought I was smart :] as each component in FormComponentPanel is > converted and validated so it would be easy to intercept value set on > components model and add it to List (which is model of whole FCPanel) > because Im not really convert

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread kamiseq
heh i thought I was smart :] as each component in FormComponentPanel is converted and validated so it would be easy to intercept value set on components model and add it to List (which is model of whole FCPanel) because Im not really converting components value to something bigger. the only proble

Re: formComponentPanel with content generated by RepeatingView

2011-04-22 Thread Pedro Santos
You can set any model in your form component panel. But its value will be set during the form processing, after the validation step. FormComponent#convertInput is invoked before the validation step, and it only sets the converted input in the FormComponent (see FormComponent#setConvertedInput). It

Re: formComponentPanel with content generated by RepeatingView

2011-04-22 Thread kamiseq
hej, on the second thought I can implement (in this simple case) a model backuped by List or Set and then let Form (or FormComponentPanel) to process all fields. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __

Re: formComponentPanel with content generated by RepeatingView

2011-04-21 Thread Pedro Santos
Override convertInput is a good option. Keep in mind that at this point of the form processing (converting input), component models will not be updated yet. So you need to rely on children converted data (see FormComponet#getConvertedInput) in order to assemble the FormComponentPanel converted inpu

formComponentPanel with content generated by RepeatingView

2011-04-21 Thread kamiseq
hi, Im trying to implement a simple form component that accepts List of Strings *public class AccountsPanel extends FormComponentPanel> { ****public AccountsPanel(String id, ArrayList accounts) { ******super(id, new Model(accounts)); buildComponents(); } } *and I am using