开发者

Passing optional <f:attributes> to JSF components within composite components

I am looking to pass in attribute values to inner components of a composite component. The long and short of it is that we are trying to wrap an h:outputLink in some further XHTML. We wish for the optional use of the DHTML Event attributes that can be used with the outputLink. We could supply them in the inner component and populate with values however the rendered XHTML would have numerous empty attribute delcarations (i.e. etc.). The hope is that a passed in as a facet or directly as the content use dwithin . This does not seem to be working.

A short example of what I thought should work:

<core:foo>
   <f:param name="onclick" "alert('hello')"/>
<core:foo>

Component File - foo.xhtml

<cc:implementation>
    <h:outputLink value="/">
         Test Link
         <cc:inser开发者_如何学GotChildren />
    </h:outputLink>
</cc:implementation>

Any ideas?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜