voyent
Editable combobox?  XML
Forum Index -> Components
Author Message
aberrant80

Joined: 20/Jul/2006 00:00:00
Messages: 34
Offline


I looked at the various existing selectOne<blah> components and they don't look like they're editable. What I mean by editable combobox is that, say I use selectOneListbox to show users a choice of predefined options. The user may select one of them or choose to type in a new one. Is there a component like that or do I have to put in an extra inputText to achieve this?
michael.thiem


Joined: 04/Jun/2007 00:00:00
Messages: 704
Offline


Hi,

such a component does not yet exist, but there is a JIRA issue dealing with
the same problem: ICE-2203

Please feel free to vote for this issue.

Best regards,
Michael
aberrant80

Joined: 20/Jul/2006 00:00:00
Messages: 34
Offline


All right, thanks. Guess I'll try replacing that component with the autocomplete input field.
michael.thiem


Joined: 04/Jun/2007 00:00:00
Messages: 704
Offline


Hi,

what you also might try to do is the following:

you could have the selectInputText component act as an editable list as
you could have entries made by the user added to the list dynamically.

To achieve this you can add an actionListener and compare the submitted
value with the preexisting values in your dictionary. If this is a new value
that doesn't already exist in your list you can then just update your
dictionary.

Maybe this would be an alternative for you.

Best regards,
Michael
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team