You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andreas Burner (JIRA)" <de...@myfaces.apache.org> on 2007/06/08 09:14:26 UTC

[jira] Created: (TOMAHAWK-1020) InputSuggest does not handle null values as selectItems

InputSuggest does not handle null values as selectItems
-------------------------------------------------------

                 Key: TOMAHAWK-1020
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1020
             Project: MyFaces Tomahawk
          Issue Type: Bug
    Affects Versions: 1.1.6-SNAPSHOT
            Reporter: Andreas Burner


I store both, the value and the suggest values in a map for all components. 

  <x:inputSuggest id="comp1" value="#{messageBean.allvalues.comp1}">
    <f:selectItems value="#{messageBean.suggestvalues.comp1}"/>
  </x:inputSuggest>

If a certain component does not have any suggestvalues, the map that is returned by getSuggestvalues is null. As a result the inputSuggest throws an exception.

The InputSuggest component must handle maps that are null like empty maps.


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


[jira] Updated: (TOMAHAWK-1020) InputSuggest does not handle null values as selectItems

Posted by "Andreas Burner (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Burner updated TOMAHAWK-1020:
-------------------------------------

    Status: Patch Available  (was: Open)

> InputSuggest does not handle null values as selectItems
> -------------------------------------------------------
>
>                 Key: TOMAHAWK-1020
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1020
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>    Affects Versions: 1.1.6-SNAPSHOT
>            Reporter: Andreas Burner
>
> I store both, the value and the suggest values in a map for all components. 
>   <x:inputSuggest id="comp1" value="#{messageBean.allvalues.comp1}">
>     <f:selectItems value="#{messageBean.suggestvalues.comp1}"/>
>   </x:inputSuggest>
> If a certain component does not have any suggestvalues, the map that is returned by getSuggestvalues is null. As a result the inputSuggest throws an exception.
> The InputSuggest component must handle maps that are null like empty maps.

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


[jira] Updated: (TOMAHAWK-1020) InputSuggest does not handle null values as selectItems

Posted by "Andreas Burner (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Burner updated TOMAHAWK-1020:
-------------------------------------

    Status: Open  (was: Patch Available)

> InputSuggest does not handle null values as selectItems
> -------------------------------------------------------
>
>                 Key: TOMAHAWK-1020
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1020
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>    Affects Versions: 1.1.6-SNAPSHOT
>            Reporter: Andreas Burner
>
> I store both, the value and the suggest values in a map for all components. 
>   <x:inputSuggest id="comp1" value="#{messageBean.allvalues.comp1}">
>     <f:selectItems value="#{messageBean.suggestvalues.comp1}"/>
>   </x:inputSuggest>
> If a certain component does not have any suggestvalues, the map that is returned by getSuggestvalues is null. As a result the inputSuggest throws an exception.
> The InputSuggest component must handle maps that are null like empty maps.

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


[jira] Updated: (TOMAHAWK-1020) InputSuggest does not handle null values as selectItems

Posted by "Andreas Burner (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Burner updated TOMAHAWK-1020:
-------------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> InputSuggest does not handle null values as selectItems
> -------------------------------------------------------
>
>                 Key: TOMAHAWK-1020
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1020
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>    Affects Versions: 1.1.6-SNAPSHOT
>            Reporter: Andreas Burner
>         Attachments: InputSuggestRenderer.java
>
>
> I store both, the value and the suggest values in a map for all components. 
>   <x:inputSuggest id="comp1" value="#{messageBean.allvalues.comp1}">
>     <f:selectItems value="#{messageBean.suggestvalues.comp1}"/>
>   </x:inputSuggest>
> If a certain component does not have any suggestvalues, the map that is returned by getSuggestvalues is null. As a result the inputSuggest throws an exception.
> The InputSuggest component must handle maps that are null like empty maps.

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


[jira] Updated: (TOMAHAWK-1020) InputSuggest does not handle null values as selectItems

Posted by "Andreas Burner (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Burner updated TOMAHAWK-1020:
-------------------------------------

    Status: Patch Available  (was: Open)

> InputSuggest does not handle null values as selectItems
> -------------------------------------------------------
>
>                 Key: TOMAHAWK-1020
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1020
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>    Affects Versions: 1.1.6-SNAPSHOT
>            Reporter: Andreas Burner
>
> I store both, the value and the suggest values in a map for all components. 
>   <x:inputSuggest id="comp1" value="#{messageBean.allvalues.comp1}">
>     <f:selectItems value="#{messageBean.suggestvalues.comp1}"/>
>   </x:inputSuggest>
> If a certain component does not have any suggestvalues, the map that is returned by getSuggestvalues is null. As a result the inputSuggest throws an exception.
> The InputSuggest component must handle maps that are null like empty maps.

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