webtier@glassfish.java.net

Re: [webtier] f:ajax event attribute won't accept expression

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Tue, 02 Jun 2009 08:26:11 -0700

This sounds like a bug. Could you file it? We're all at JavaOne this
week.

Sent from my iPhone

On Jun 2, 2009, at 8:01 AM, Paulo Cesar Reis <casmeiron_at_gmail.com>
wrote:

> Hi all,
>
> I am trying to create a simple composite component where user can
> customize the ajax event:
> <f:ajax event="#{cc.attrs.event}" render="#{cc.attrs.target}"
> execute="@this" />
>
> But when I try to execute the page I get:
> <f:ajax> Event attribute could not be determined: #{cc.attrs.event}
>
> And when I put the same expression inside a outputText the value is
> shown correctly.
>
> So does the f:ajax event attribute accepts expression?
>
> Also I’m wondering whether I can use f:param tag to define propertie
> s for validators, like:
> <f:validator validatorId=”javax.faces.Length”>
> <f:param name=”minimum” value=”1” />
> <f:param name=”maximum” value=”3” />
> </f:validator>
>
> Whether not, how can I accomplish the desired behavior?
>
> Thanks.