You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Legolas Woodland <le...@gmail.com> on 2006/09/27 18:32:17 UTC
can we set some request parameter using an action method ?
Hi
Thank you for reading my post
can we set some request parameter using action methods?
thanks
Re: can we set some request parameter using an action method ?
Posted by Legolas Woodland <le...@gmail.com>.
Thank you for reply , but it returns the following exception
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractMap.put(AbstractMap.java:228)
at
webui.common.ButtonsActionListener.approve_bill(ButtonsActionListener.java:338)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
... 28 more
is there anything that i can do for this ?
Grant Smith wrote:
> I haven't tried this, but how about something like:
>
> FacesContext.getCurrentInstance
> ().getExternalContext().getRequestParameterMap().put(key,value);
>
> On 9/27/06, Legolas Woodland <le...@gmail.com> wrote:
>>
>> Hi
>> Thank you for reading my post
>> can we set some request parameter using action methods?
>>
>>
>> thanks
>>
>
>
>
Re: can we set some request parameter using an action method ?
Posted by Grant Smith <wo...@gmail.com>.
I haven't tried this, but how about something like:
FacesContext.getCurrentInstance
().getExternalContext().getRequestParameterMap().put(key,value);
On 9/27/06, Legolas Woodland <le...@gmail.com> wrote:
>
> Hi
> Thank you for reading my post
> can we set some request parameter using action methods?
>
>
> thanks
>
--
Grant Smith
RE: can we set some request parameter using an action method ?
Posted by L Frohman <lf...@gmail.com>.
Look at:
http://wiki.apache.org/myfaces/Parameters_In_EL_Functions
Its for data inside el expressions, but you may be able to get
this to work with action methods too.
-----Original Message-----
From: Legolas Woodland [mailto:legolas.w@gmail.com]
Sent: Wednesday, September 27, 2006 9:32 AM
To: MyFaces Discussion
Subject: can we set some request parameter using an action method ?
Hi
Thank you for reading my post
can we set some request parameter using action methods?
thanks