nobody can help me??
Fabien D. wrote:
>
> Hi everybody,
>
> I have two problems with the Palette.
>
> The first one is when the user submits the form and there are problems
> with the other textfield (Validator), the left field for the selection is
> reseted!!
>
> The second problem is when all fields are good and when a try de getBack
> the list of selected objects, It returns the first object of my list as
> many as there are selcted objects :
>
> exemple :
>
> Available -> reset when there is a probleme with validator
> Toto
> Tata
>
> Selected
> Titi
> Tutu
>
> The return is :
> Titi
> Titi
>
> The code for my palette:
>
> ChoiceRenderer renderer = new ChoiceRenderer();
> List licences = CDataFromBDD.getListNameLicence();
> Mode model_licence = new Model((Serializable)licences);
> Mode model_licence_selection = new Model(new ArrayList());
> //parameter of the licence
> Palette licence = new Palette("licence", model_licence_selection,
> model_licence, renderer, 6, false);
> this.form_ajoutinfgeneral.add(licence);
>
> The code for my form:
> form_ajoutinfgeneral = new Form("form_ajoutinfgeneral", new
> CompoundPropertyModel(this.model_sous_domaine)) {
> private static final long serialVersionUID = 1L;
> protected void onSubmit() {
> ........
> List selected =
> (List)model_licence_selection.getObject();
> .......
> }
> }
>
> Sorry for my english, I'm french, and thank you in advance :)
>
>
--
View this message in context:
http://www.nabble.com/Problems-with-Palette-tp16722516p16761756.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]