aspose file tools*
The moose likes JSF and the fly likes Editable Drop Down in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Editable Drop Down in JSF" Watch "Editable Drop Down in JSF" New topic
Author

Editable Drop Down in JSF

Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
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. ;)


There's so much to learn in this industry, and not everybody has the necessary interest.
Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
Anyone?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
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

Joined: May 10, 2008
Posts: 139
Richfaces combobox might help to achieve editable dropdown.

http://livedemo.exadel.com/richfaces-demo/richfaces/comboBox.jsf?c=comboBox


“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
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

Joined: Jan 10, 2002
Posts: 61433
    
  67

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Also, please refrain from posting in all bold. I have fixed your post for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Editable Drop Down in JSF