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
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
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
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
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
__
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
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