Hi Matthias,

Try using the relative clientid of the h:inputText from within your
composite component, thus something like
container1:container2:inputComponent.

Also, please ask questions like this one only at
us...@myfaces.apache.org, thanks.

Regards,
Jakob

2011/3/16 ZEILERBAUER Matthias <matthias.zeilerba...@tirol.gv.at>:
> Hello guys,
>
> I have a problem with the valueChangeListener on my composite component. I =
>
> have following structure:
>
> <composite:interface name=3D"checkbox">
>
> ...
>
> <composite:attribute name=3D"valueChangeListener" targets=3D"inputComponent=
>
> " />
>
> ...
>
> </composite:interface>
>
> <composite:implementation>
>
> <template:c1>
>
> ...
>
> <f:facet name=3D"inputFacet">
>
> <h:inputText id=3D"inputComponent" />
>
> </f:facet>
>
> ...
>
> </template:c1>
>
>
>
>
>
> My error message is:
>
> "FaceletViewDe E Inner component valueChangeListener not found when retarge=
>
> tMethodExpressions"
>
> When I tried to give the
>
> <composite:attribute name=3D"valueChangeListener" targets=3D"inputComponent=
>
> " /> on my c1-Interface the Error-Message didn't appear, but the ValueChang=
>
> eListener still wasn't called.
>
> Second thing I tried was to give the
>
> <h:inputText id=3D"inputComponent" /> not in the facet-Definition, but only=
>
> in my implementation and then the ValueChangeListener worked.
>
> What is my mistake, or does composition not work properly with facets?
>
> LG
>
>



-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at

Reply via email to