On Tue, 15 Feb 2005 10:32:09 -0800 (PST), mfaine <[EMAIL PROTECTED]> wrote:
> Martin Cooper wrote:
>
> >
> >
> > On Mon, 14 Feb 2005, mfaine wrote:
> >
> >> I am trying to do the following in my actionListener method.
> >>
> >> FacesContext context = FacesContext.getCurrentInstance();
> >> context.getExternalContext().getRequestMap().put("selectedDocument",
> document);
> >
> > This should have resulted in an UnsupportedOperationException. You can't
> add parameters to the request in JSF, just as you can't do that in Servlets
> either.
>
> I lifted it directly from Oracle ADF Docs:
> http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/communicatingBetweenPages.html
>
> Is this an error in their docs?
>
No it's not -- getRequestMap() returns a map of the request
*attributes*, so you should be able to add new ones (if MyFaces
doesn't let you, that's a bug). If you called
getRequestParameterMap(), you would get a map of the parameters, and
this one is non-modifiable.
Craig
>
> >>
> >> How can I ensure that a value is passed via request?
> >
> >
> > You probably want a request attribute instead of a request parameter.
> >
> > --
> > Martin Cooper
>
> Thanks,
> I'll try that.
>
> -Mark
>
>