[
https://issues.apache.org/jira/browse/MYFACES-3897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010899#comment-14010899
]
Leonardo Uribe commented on MYFACES-3897:
-----------------------------------------
It is not supposed to work that way. f:attribute is a component that comes from
JSF 1.1 and it just set the attribute of the parent component:
<my:component ...>
<f:attribute ...>
</my:component>
In a composite component, you can define the attribute in the interface
definition using "default" property of cc:attribute
<cc:interface ...>
<cc:attribute name="myprop" default="..."/>
</cc:interface>
<cc:implementation>
<!-- .... -->
</cc:implementation>
f:event is a different tag. I'll close this issue as invalid, because things
works as supposed to be.
> AttributeHandler does not work for composite:implementation
> -----------------------------------------------------------
>
> Key: MYFACES-3897
> URL: https://issues.apache.org/jira/browse/MYFACES-3897
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Sven Linstaedt
> Priority: Minor
>
> I am not totally sure, but according to
> javax.faces.view.facelets.ComponentHandler.isNew(UIComponent) something like
> {code}
> <composite:implementation>
> <f:event ...../>
> </composite:implementation>
> {code}
> should work. Actually f:attribute (and probably f:attributes) does not work
> this way, because it does not use the isNew function, but checks nullness of
> the parent of the component itself, not taking composite components into
> account. So
> {code}
> <composite:interface componentType="...">
> <composite:implementation>
> <f:attribute ...../>
> </composite:implementation>
> {code}
> for initializing the component does not work.
--
This message was sent by Atlassian JIRA
(v6.2#6252)