myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@gmail.com>
Subject Re: <a4j:support and <a4j:actionparam
Date Wed, 09 Mar 2011 22:42:17 GMT
I have not used a4j:actionparam, but under richfaces, I have successfully used

<a4j:support>
     <f:setPropertyActionListener target="#{target1}" value="#{value1}" />
     <f:setPropertyActionListener target="#{target2}" value="#{value2}" />
</a4j:support>

Perhaps that will do what you need.

On Wed, Mar 9, 2011 at 5:32 PM, daniel ccss <danielccss2@gmail.com> wrote:
> Hi, i have this code:
>
>                                <*a4j:region*>
>
> <*h:selectBooleanCheckbox*value="#{subtipo.seleccionado}"  id="checks"
>                                        disabled="#{VDBean.modoEdicion
==
> false}" onchange="call some javascript code" >
>
>                                        <*a4j:support* event="onchange"
> status="statustablaSubtipoVisita"
>
> actionListener="#{VDBean.select}"
>                                                     reRender="checks,
> tablaActividadesVisita" >
>                                                    * <a4j:actionparam
> assignTo="#{VDBean.foo}" value="true" id="foo" />*
>
>
>                                        </a4j:support>
>                                    </h:selectBooleanCheckbox>
>                                </a4j:region>
>
> In the VDBean I have a String foo variable with the get and set methods but
> when access the foo variable in the VDBean (scope: session) select method it
> has the initial value "false". Why the actionParam do not set the foo
> variable value??
>
> Can anyone help me?
>
> Thanks
>

Mime
View raw message