it will be much easier to support add/remove all functionality if it is part of the palette itself because it requires knowledge of its internal workings. you can copy the palette class into your own codebase and patch it there, or you can send me the patch and i will add it to the palette that is in extensions.
all you would need to do to create those buttons is to follow the same pattern used by the palette and add the _javascript_ that moves the options from one box to the other.
if you want you can also add an rfe and maybe i will get to it sometime soon.
-Igor
Erhh typo, I meant what is written below.
However our client has some specific requirements towards the look of the selectbox and of course texts needs to be changed to our locale, I guess this is not possible without modification or extension of the palette component? Also I would need to created two new buttons(urls) which moves all contents from one to the other listbox.
How would you suggest that I do that, how do I extend the palette component? Or how could I somehow localise the component otherwise? I would still need to add my two new buttons is this possible?
-regards Nino
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nino Wael
Sent: 27. marts 2006 11:16Subject: RE: [Wicket-user] Validation
That is great.
However our client has some specific requirements towards the look of the selectbox and of course texts needs to be changed to our locale, I guess this is not possible without modification or extension of the palette component? Also I would need to created two new buttons(urls) which moves all contents from one to the other listbox.
How would you suggest that I do that, how do extend the palette component?
-regards Nino
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor Vaynberg
Sent: 27. marts 2006 10:28
To: [email protected]
Subject: Re: [Wicket-user] Validation
yes, the palette takes care of everything for you. thats the point of encapsulation :)
check out component reference in wicket examples for 1.2
-IgorOn 3/27/06, Nino Wael <[EMAIL PROTECTED]> wrote:
Well, because it was the only way I knew J Im afraid I would need some example to get further with the Palette component, how do I plug it into my current listmutiplechoice components?
Im not completely sure that I would like to write _javascript_ from java, does the palette component do that for me?
-Regards Nino
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor Vaynberg
Sent: 27. marts 2006 10:10
To: [email protected]
Subject: Re: [Wicket-user] Validation
why are you doing a round trip when you press > and < ? you can do this all nicely via some very basic _javascript_. see Palette component in extensions, it does exactly what you want and more.
-IgorOn 3/27/06, Nino Wael <[EMAIL PROTECTED]> wrote:
Hi
Might be me which has'nt been looking good enough into documentation.
So I have the following scenario and question:
Two listmultiplechoice box'ses where you can exchange contents of the list boxes by pressing one of two buttons see nice ascii grapichs below:
Listbox a Listbox B
| ____________ ___ |----------------- |
| | selected | | >| | |
| | | ---- | |
| | | ___ | |
| | notselected | |< | | |
|------------------- ---- |----------------- |
So if you select one of the list items in listbox a and click btn ">" then the selected item should be moved to listbox B. Currently when setting up the page I set .setRequired(true) on both listbox's this results in listbox B complains that it has'nt a selected value.
So question is how do I trigger only the relevant validation when pressing < or >.
Regards Nino
