[Wicket-user] dual listbox help

2007-02-08 Thread Shawn Tumey

Hello all,

Like the subject indicates I am trying to get a dual listbox to work.

More specifically, I have two ListMultipleChoice components (left and
right).

Each ListMultipleChoice has its own model.

Left has a leftChoicesList and a leftSelectedList.

Right has the same thing rightChoicesList and rightSelectedList.

Since the objects stored in the list are common between them, they both use
the same IChoiceRenderer.

To start with, Left is full of choices, and Right is empty.

There is a link between the two components for the user to trigger moving
selected items from Left to Right.

I can not get this portion to work. :(

It seems the link should be a AjaxSubmitLink  (or button)  however the
onSubmit will only get called if the form is valid.
I'm not interested if the form is valid, I only want to get what the user
has selected, remove it from the list of choices on the left
and add it to the list of choices on the right.

Any suggestion about the best way to go about doing this?

Thanks,

--
Shawn Tumey
Cofounder
MT Web Productions LLC
www.mtwebproduction.com
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] dual listbox help

2007-02-08 Thread Igor Vaynberg

have you see the Palette component in wicket-extensions?

http://www.wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Awicket.examples.compref.PalettePage

-igor



On 2/8/07, Shawn Tumey [EMAIL PROTECTED] wrote:


Hello all,

Like the subject indicates I am trying to get a dual listbox to work.

More specifically, I have two ListMultipleChoice components (left and
right).

Each ListMultipleChoice has its own model.

Left has a leftChoicesList and a leftSelectedList.

Right has the same thing rightChoicesList and rightSelectedList.

Since the objects stored in the list are common between them, they both
use the same IChoiceRenderer.

To start with, Left is full of choices, and Right is empty.

There is a link between the two components for the user to trigger moving
selected items from Left to Right.

I can not get this portion to work. :(

It seems the link should be a AjaxSubmitLink  (or button)  however the
onSubmit will only get called if the form is valid.
I'm not interested if the form is valid, I only want to get what the user
has selected, remove it from the list of choices on the left
and add it to the list of choices on the right.

Any suggestion about the best way to go about doing this?

Thanks,

--
Shawn Tumey
Cofounder
MT Web Productions LLC
www.mtwebproduction.com
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user