You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Clément Maignien (JIRA)" <my...@incubator.apache.org> on 2005/08/18 17:37:54 UTC

[jira] Created: (MYFACES-422) [ s:inputSuggest ] Bad values when back to the model

[ s:inputSuggest ] Bad values when back to the model
----------------------------------------------------

         Key: MYFACES-422
         URL: http://issues.apache.org/jira/browse/MYFACES-422
     Project: MyFaces
        Type: Improvement
  Components: Sandbox  
    Versions: Nightly Build    
    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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TOMAHAWK-135) [ s:inputSuggest ] Bad values when back to the model

Posted by "Andreas Burner (JIRA)" <de...@myfaces.apache.org>.
    [ 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.


[jira] Commented: (MYFACES-422) [ s:inputSuggest ] Bad values when back to the model

Posted by "Dave Brondsema (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-422?page=comments#action_12332236 ] 

Dave Brondsema commented on MYFACES-422:
----------------------------------------

Also, it returns a value of "-1" if the user types something in instead of selecting a choice

> [ s:inputSuggest ] Bad values when back to the model
> ----------------------------------------------------
>
>          Key: MYFACES-422
>          URL: http://issues.apache.org/jira/browse/MYFACES-422
>      Project: MyFaces
>         Type: Improvement
>   Components: Sandbox
>     Versions: 1.1.0
>     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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira