Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editable Drop Down in JSF

 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am building an application with an editable drop-down. It is somewhat similar to a combo-box, a combination of a textbox and a drop-down component wherein you can edit the values from the list.

Does JSF have this kind of component? I tried googling and I saw a lot of implementations that make use of javascript. I want something in JSF, like a custom component of some sort. Any help would be greatly appreciated.

Thanks in advance. ;)
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of any component that does this. And in fact, there isn't even anything close in pure HTML. What you would want to implements is something similar to the Google Suggest component or MyFaces InputSuggest] component but you'd probably have all the values already populated in the list, which is really just a scrolling div.

I tried googling and I saw a lot of implementations that make use of javascript. I want something in JSF, like a custom component of some sort.

The custom component will still be implemented using a bit of Javascript. But I understand that you don't want to make it yourself. Are you currently using a specific JSF implementation right now? You might throw the idea out to a few mailing lists, like the MyFaces one, and maybe someone else is already working on it or would be willing to give it a go.
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gregg,

Thanks for the reply. I am using standard JSF and a little bit of MyFaces Tomahawk. I was just hoping that such a component is already existing out there. But as you said you haven't heard of such component, and I wouldn't want to build it myself as it would take a lot of development time and effort, which is a bit impractical in my case. One option I am considering is using an AJAX autocomplete similar to the Google suggest that you were saying which is very close to want I want to achieve. Unless someone out there with a kind heart has already built such a component, and would want to share. ;)

Anyway, thanks again.
 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Richfaces combobox might help to achieve editable dropdown.

http://livedemo.exadel.com/richfaces-demo/richfaces/comboBox.jsf?c=comboBox
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow after almost two years! That's amazing. I actually forgot why I asked this question or where I needed this particular requirement, but thanks Venkat for the update. I'm still using JSF in my current project, though now with a different company. Regards!

:thumb:
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"subu cc", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please refrain from posting in all bold. I have fixed your post for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic