Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Y Jadhav
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic