You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Michael <mp...@gmail.com> on 2005/09/20 20:49:52 UTC
MyFaces 1.1.0 and getRequestMap
Hi all,
In the process of upgrading to MyFaces 1.1.0, I think I have found an issue
with the putAll method on the request map. In 1.0.9, this code worked
correctly:
FacesContext.getCurrentInstance
().getExternalContext().getRequestMap().putAll(myMap);
In 1.1.0, putAll throws an UnsupportedOperationException. I modified my code
to call put in a loop and everything worked.
>From the JSF 1.1 JavaDoc for getRequestMap():
"The returned Map must implement the entire contract for a modifiable map as
described in the JavaDocs for java.util.Map."
Thanks,
Michael
Re: MyFaces 1.1.0 and getRequestMap
Posted by Martin Marinschek <ma...@gmail.com>.
This is something that was changed for TCK compliance. Can you look
into the RI? I think that you should find this very same
UnsupportedOperationException being thrown there...
regards,
Martin
On 9/20/05, Wendy Smoak <ws...@apache.org> wrote:
> From: "Michael" <mp...@gmail.com>
>
> > In 1.1.0, putAll throws an UnsupportedOperationException.
> > I modified my code to call put in a loop and everything worked.
> >
> >From the JSF 1.1 JavaDoc for getRequestMap():
> >
> > "The returned Map must implement the entire contract for a modifiable
> > map as described in the JavaDocs for java.util.Map."
>
> I'm not sure why it was removed, but the putAll method is optional:
> http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html
>
> --
> Wendy Smoak
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German
Re: MyFaces 1.1.0 and getRequestMap
Posted by Wendy Smoak <ws...@apache.org>.
From: "Michael" <mp...@gmail.com>
> In 1.1.0, putAll throws an UnsupportedOperationException.
> I modified my code to call put in a loop and everything worked.
>
>>From the JSF 1.1 JavaDoc for getRequestMap():
>
> "The returned Map must implement the entire contract for a modifiable
> map as described in the JavaDocs for java.util.Map."
I'm not sure why it was removed, but the putAll method is optional:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html
--
Wendy Smoak