Re: Problems with Palette

2008-04-25 Thread NTS

Hi,
  Check whether all the items in the list has the same value in the
generated html source. 

For example,

One
Two


If it is so, try to give a proper ChoiceRenderer like new
ChoiceRenderer("displayName", "internalld");

The values need to be different.

Hope it helps.

Regards,
NTS



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 :)
> 
> 


-
http://ntsrikanth.blogspot.com/
-- 
View this message in context: 
http://www.nabble.com/Problems-with-Palette-tp16722516p16896022.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]



Re: Problems with Palette

2008-04-18 Thread Igor Vaynberg
provide a quickstart

-igor


On Fri, Apr 18, 2008 at 1:10 AM, Fabien D. <[EMAIL PROTECTED]> wrote:
>
>  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]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with Palette

2008-04-18 Thread Fabien D.

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]



Problems with Palette

2008-04-16 Thread Fabien D.

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-tp16722516p16722516.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]