[ 
https://issues.apache.org/jira/browse/TOMAHAWK-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502726
 ] 

Andreas Burner commented on TOMAHAWK-135:
-----------------------------------------

The name "InputSuggest" is very misleading because the component only allows 
values of the selectItems list.
Therefore the component is not only suggesting values, it is restricting them!

> [ s:inputSuggest ] Bad values when back to the model
> ----------------------------------------------------
>
>                 Key: TOMAHAWK-135
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-135
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: InputSuggestAjax
>            Reporter: Clément Maignien
>            Priority: Minor
>
> When accessing the selected entry in the model, the value equals : 
> orm:<componentID>_choice<SelectedEntry> instead of <SelectedEntry>
> The reason this happens is that the value that's set comes from the rendered 
> HTML id for the choice.  In order to allow you to have  multiple inputSuggest 
> components on one page with values in common,  it is necessary to prepend the 
> component id to ensure the generation of a unique HTML id for every choice.
>  It should be possible to add code to the component so that it can remove 
> what it puts in on the way back to the model.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to