You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2008/08/04 21:42:44 UTC

[jira] Commented: (MYFACES-1744) Validation messages is shown for SelectOneMenu in case first child is not SelectItems or SelectItem

    [ https://issues.apache.org/jira/browse/MYFACES-1744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619660#action_12619660 ] 

Leonardo Uribe commented on MYFACES-1744:
-----------------------------------------

After checking this issue the solution proposed is correct, but it should be applied on both shared and core projects, for both 1.1 and 1.2 versions.

The normal behavior for this iterator should be as proposed on the solution skip elements that does not inherit form UISelectItem or UISelectItems.

I'll apply this patch soon.

> Validation messages is shown for SelectOneMenu in case first child is not SelectItems or SelectItem
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1744
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1744
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.5, 1.2.3
>         Environment: Windows XP
>            Reporter: Galina Gavrilo
>         Attachments: _SelectItemsIterator.patch, SelectItemsIterator.patch
>
>
> If SelectOneMenu has child of another type than SelectItems or SelectItem at first place in the children list (e.g. itomahawk jsValueChangeListener), validation of combobox fails with message "Value is not a valid option." Value range is empty in this case because _SelectItemsIterator hasNext() method returns false if first child is not of type SelectItems or SelectItem. It should just skip such children, and should continue looking for values. Right?

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