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.


later I try to retrieve with:


Document doc = ( Document ) FacesContext.getCurrentInstance (). getExternalContext ().getRequestParameterMap ().get ( "selectedDocument" );

but it is null?

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


Reply via email to