webtier@glassfish.java.net

Re: [webtier] JSF 2.0 PR composite:includeChildren

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 05 Mar 2009 11:33:21 -0800

On 3/3/09 11:18 PM, webtier_at_javadesktop.org wrote:
> Hi,
>
> I ran into the same problem, but my use case is a bit different. I am developing custom dataTable like component and I am also unable to pass children to the component when in used inside composite faclet component.
>
> It actually doesnt work with standard h:dataTable either. You can't do something like:
>
> <composite:implementation>
> <h:dataTable
> value="#{compositeComponent.attrs.value}"
> var="row">
> <composite:renderUsingPageChildren/>
> </h:dataTable>
> </composite:implementation>
>
> Is there still a plan to provide<ui:insert> like functionality? composite:includeChildren is even gone in the latest release.
>
At this point, there is not. As an FYI, composite:includeChildren was
renamed to composite:renderUsingPageChildren to properly reflect the
intention of that action.
> What would also be useful would be way to only include specific children but at different places in the composite component.
>
> It would be a bit like facets or ui:decorate facility but more elegant and more powerful with something like XPATH to tell which children go where in the composite component.
>
This also isn't currently possible, but please do provide feedback to :
jsr-314-comments_at_jcp.org
> One more thing. If you use
>
> <h:dataTable var="#{compositeComponent.attrs.var}"
>
'var' handling hasn't changed since 1.0, i.e. it should be a literal.
Special action probably needs to be taken
for the composite component case. I'd suggest providing feedback on
this as well.

(NOTE: I do pass these things along, but it's good to have the feedback
coming from multiple sources)
> in the example above, you get:
>
> java.lang.IllegalArgumentException
> at javax.faces.component.UIData.setValueExpression(UIData.java:702)
> at com.sun.faces.facelets.tag.jsf.ComponentRule$ValueExpressionMetadata.applyMetadata(ComponentRule.java:104)
> at com.sun.faces.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:74)
> at javax.faces.webapp.pdl.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:96)
> at com.sun.faces.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
> at com.sun.faces.facelets.tag.composite.ImplementationHandler.apply(ImplementationHandler.java:74)
>
>
> Regards,
> Peter
> [Message sent by forum member '5rkozelj' (5rkozelj)]
>
> http://forums.java.net/jive/thread.jspa?messageID=334982
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>