[ http://issues.apache.org/jira/browse/MYFACES-535?page=all ]
     
sean schofield closed MYFACES-535:
----------------------------------


> property getter is not called when initializing map property of a managed bean
> ------------------------------------------------------------------------------
>
>          Key: MYFACES-535
>          URL: http://issues.apache.org/jira/browse/MYFACES-535
>      Project: MyFaces
>         Type: Bug
>   Components: JSR-127
>     Versions: Nightly Build
>     Reporter: Oliver Rossmueller
>     Assignee: Oliver Rossmueller
>      Fix For: 1.1.0

>
> From the spec document page 5-12
> "For <map-entries>: 
> 1. Call the property getter, if it exists. 
> 2. If the getter returns null or doesn't exist, create a java.util.HashMap, 
> otherwise use the returned java.util.Map. 
> 3. Add all entries defined by nested <map-entry> elements in the order they 
> are listed, converting key values defined by nested <key> elements to the 
> type defined by <key-class> and entry values defined by nested <value> 
> elements to the type defined by <value-class>. If a value is given as a value 
> binding expression, evaluate the reference and store the result, converting 
> to <valueclass> if necessary. If <key-class> and/or <value-class> are not 
> defined, use java.lang.String. Add null for each <null-value> element.
> 4. If a new java.util.Map was created in step 2), set the property by calling 
> the setter method, or log an error if there is no setter method."
> MyFaces is skipping step 1 and creates a new HashMap instance in any case.

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

Reply via email to