File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes h:selectOneMenu Free type ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "h:selectOneMenu Free type ?" Watch "h:selectOneMenu Free type ?" New topic
Author

h:selectOneMenu Free type ?

Ayaan Dar
Greenhorn

Joined: Oct 27, 2010
Posts: 10
Hi,

I have a client requirement for populating a list of suggestions in a h:selectOneMenu. I also require the client to type freely in the list if he does not find what he is looking for. How can i do this? What JSF component supports this functionality ?

Kind Regards


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

None.

Core JSF is limited to what basic HTML can do, and there's no HTML basic control that can do auto-suggestion.

However, a number of the extension tagsets offer what you want. I have a apps that use JBoss RichFaces to do this, for example.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ayaan Dar
Greenhorn

Joined: Oct 27, 2010
Posts: 10
Hi Tim,

I did not mean auto-suggestion. I just need a component that has a drop down, but also allows users to type freely in it. Sort of a combo box from VB 6 days.

Kind Regards.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

Same answer, but without the auto-suggestion part. There is no such thing as an HTML "combobox" control, so you'll have to use an extension tagset that implements one by assembling it from simpler components. Core JSF only supports the native HTML controls.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:selectOneMenu Free type ?