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 07:57:52 -0800 (PST)

Thanks.
If you look at the woodstock demo application, it works correctly for link
inside data tables.
I still don't understand why I cannot get the same to work

Mauro


Dan Labrecque wrote:
>
> I don't believe HTML input elements support query parameters. The button
> component does not support them, either. It has nothing to do with the
> Javascript (i.e., the createWidgetOnLoad function). It comes down to the
> underlying HTML element output in the page.
>
> Dan
>
> 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 is working when I replace the button with a hyperlink.
>>
>> This seems to be because the button is rendered using a <input> tag while
>> the hyperlink is rendered client-side using a createWidgetOnLoad()
>>
>> thanks
>>
>> Mauro
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>
>

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