Hi

I have checked the problem and what you need to do is implement your
properties into your component class using StateHelper methods,
otherwise the properties will not be saved and restored.

Take a look at:

http://svn.apache.org/repos/asf/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIOutput.java

There, you'll see how to do it. But I think in your case there is no
need to implement augmentedSen property into the component at all, and
instead use the stored ValueExpression to find the right bean. If
"augementedSen" is an "attached object" of the composite component,
similar to converters or validators or behaviors, it has sense to
implement it into the component class.

regards,

Leonardo Uribe

2012/6/14 l.pe...@senat.fr <l.pe...@senat.fr>:
> Dear all,
>
> I am experiencing a strange behaviour with a composite component.
>
> It seems to me that attributes values specified as el expressions are
> computed only once, and very early, when the composite component declaration
> specifies a componentType.
>
> I published an example on
> http://stackoverflow.com/questions/11020297/updatable-composite-component .
>
> What is our opinion on this problem ? Is it a myfaces specific bug ?
>
> I am using :
> * Tomcat 6.0.33 (with unmodified el lib) ; ;
> * MyFaces 2.1.7
> * CODI 1.0.5
> * OWB 1.1.3
>
> Thanks in advance.
>
> Ludovic
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>

Reply via email to