users@woodstock.java.net

Re: problem using <f:param> with Woodstock 4.1.1 components

From: autozoom <cioni_mauro_at_yahoo.com>
Date: Thu, 17 Jan 2008 04:15:36 -0800 (PST)

I have to correct myself: the widget is rendered using createWidgetOnLoad()
in both cases, but only with the hyperlink I can see the "xxx" param in the
HTML source.
However, in neither cases I can read the param using

FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("xxx");

thanks


autozoom wrote:
>
> I am trying to use a button column in a data table and passing a parameter
> using <f:param> like this:
>
> <webuijsf:tableColumn align="center" ...>
> <webuijsf:button
> actionExpression="#{osservatorio$Osservatorio.editContactButton_action}"
> ...>
> <f:param name="xxx" value="ciao"/>
> </webuijsf:button>
> </webuijsf:tableColumn>
>
>
> This is not working because the call to
> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("xxx");
> in the action handler always returns null
>
> The same happens when I replace the button with a hyperlink, but at least
> when I look at the page source I see that the xxx param is used as a
> parameter in the createWidgetOnLoad() function call.
> So why can't I find it in the parameter map?
>
> On the other side, the button is rendered using a <input> and the "xxx"
> param isn't anywhere.
>
> thanks
>
> Mauro
>

-- 
View this message in context: http://www.nabble.com/problem-using-%3Cf%3Aparam%3E-with-Woodstock-4.1.1-components-tp14917103p14917448.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.