webtier@glassfish.java.net

Re: [webtier] Re: JSF 2.0 composite components with method-valued attributes

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Fri, 06 Mar 2009 11:45:42 -0800

On 3/6/09 11:17 AM, webtier_at_javadesktop.org wrote:
> I think we still have a composite attributes problem: I changed nav button to
>
> <composite:interface>
> <composite:attribute name="act" targets="w:navbutton" required="true" method-signature="String f1()" />
> <composite:attribute name="label" />
> </composite:interface>
>
> <composite:implementation>
> <ez:wrapper id="w">
> <h:outputText value="#{compositeComponent.attrs.label}"/>
> <h:commandButton id="navbutton" action="#{compositeComponent.attrs.act}" value="NavButton" type="submit" />
> </ez:wrapper>
> <!--<h:commandButton id="navbutton" action="nav2" value="NavButton" type="submit" /> -->
> </composite:implementation>
>
> and the label does not show up.
> If I move h:outputText outside the wrapper, it works fine.
>
> The nav page now contains:
>
> <ez:wrapper>
> <f:facet name="header">
> <h:panelGroup>
> header-facet
> </h:panelGroup>
> </f:facet>
>
> <ez:nav act="#{navigation.goNav2}" label="LABEL" />
> </ez:wrapper>
>
> and the wrapper is
>
> <composite:interface name="wrapper">
> <composite:facet name="header" required="false"/>
> </composite:interface>
> <composite:implementation>
>
> <composite:insertFacet name="header"/>
>
> above
> <h:outputLink>a link</h:outputLink>
>
> <composite:renderUsingPageChildren/>
> below
> </composite:implementation>
>
At this point, trying to track the issues you're finding via the forums,
is somewhat counter
productive. Could you please log issues for the problems you're
finding? All you need to
do is gain observer status on the javaserverfaces project and then log
the issue using the
issue tracker.
>
> I was dreaming so long to get rid of facelets templates :-(
>
Keep in mind, this is still alpha software. Log the issues and we'll
fix the problem.

> [Message sent by forum member 'nzinoviev' (nzinoviev)]
>
> http://forums.java.net/jive/thread.jspa?messageID=335591
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>