jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: Missing StateHolder in Behaviour API for usage in dataTable and alike

From: Cagatay Civici <cagatay.civici_at_gmail.com>
Date: Fri, 22 May 2015 11:01:45 +0300

I also raised it some time ago but never got too much attention.

As a component library developer, we have a couple of behaviors as well and state saving is a pain with them.

Regards,

Cagatay Civici
PrimeFaces Lead
PrimeTek Informatics
www.primefaces.org


On Friday 22 May 2015 at 10:55, arjan tijms wrote:

> Hi,
>
> Interesting point, certainly something we should at least take a closer look at.
>
> Kind regards,
> Arjan
>
> On Friday, May 22, 2015, Rudy De Busscher <rdebusscher_at_gmail.com (mailto:rdebusscher_at_gmail.com)> wrote:
> > Hi Experts,
> >
> > Recently I came across the fact that the Behaviour API is not using the StateHolder.
> >
> > This means that EL Expressions in attributes of custom ClientBehaviours are executed during the buildView step and not during the 'rendering' (getScript() ) of the clientBehaviour.
> >
> > As a consequence, the EL can't reference a var defined in the dataTable.
> >
> > Any plans / ideas for adding this in some next version?
> >
> > Thanks for the feedback
> > Rudy.
> >
> >