UISelectOne validation fails with custom converter
--------------------------------------------------

                 Key: MYFACES-1545
                 URL: https://issues.apache.org/jira/browse/MYFACES-1545
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.5
            Reporter: Dainius Vaznys


This seems to be closely related with MYFACES-1328.

I have a Converted configured with a UISelectOne which converts between strings 
and enum values, i.e. getAsObject() returns an Enum instance. After the 
convertion takes place UISelectOne.validateValue() is invoked to check if the 
Enum instance is among select items. This code definitely does not work:
                Object itemValue = item.getValue();
                if (value==itemValue || value.equals(itemValue))
                {
                    return true;
                }

as it tries to match an Enum instance against a string.

-- 
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