wood burning stoves 2.0*
The moose likes JSF and the fly likes  two lists, with buttons that let you move options from one list to the other. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark " two lists, with buttons that let you move options from one list to the other." Watch " two lists, with buttons that let you move options from one list to the other." New topic
Author

two lists, with buttons that let you move options from one list to the other.

Y Jadhav
Ranch Hand

Joined: Oct 02, 2008
Posts: 37
Hello Sir ,

I need help regarding this difficult task.

In jsf page

Two lists, with buttons that let you move options from one list to the other.

Thats All.
Please help me , Its very urgent.

Thankuuuuuuuuu
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
It isn't difficult. Just use two h:selectManyListbox components and two or maybe four h:commandButton components. Make use of the java.util.Collections API to play with the items. Attach the commandbuttons to backing bean methods which does the desired moving tasks.

If you want to do this all asynchronously, then add some shot of Javascript which does all the moving tasks. You can also look for an Ajaxical component library, such as RichFaces. They already have a ready-to-use component for that: pickList.

Good luck.
[ December 20, 2008: Message edited by: Bauke Scholtz ]
Y Jadhav
Ranch Hand

Joined: Oct 02, 2008
Posts: 37
Its surprising , I thought you never will again help me.
Thank you very much SIR.

It looks very simple using rich faces,thanks for good link, but I have to do it using core faces.

reply me.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Huh?

At any way, then do it as I suggested first. Use two h:selectManyListbox components. On click of the button move the SelectItem objects matching the selected values from the one to the other.
[ December 21, 2008: Message edited by: Bauke Scholtz ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: two lists, with buttons that let you move options from one list to the other.