dev@jsftemplating.java.net

Re: Facets

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Mon, 17 Jul 2006 13:47:13 -0700

Hi Ana,

The following should work:

<!facet pageButtonsTop>
    <sun:panelGroup id="pbgt">
       <sun:button id="okButton" ... />
       <sun:button id="cancelButton" ... />
    </sun:panelGroup>
</facet>

Sorry about not having a better example available yet!

Ken


Ana Caballero wrote:
> Hi Ken,
>
> Before the break you had added support for facets and I cannot find my
> notes on this. I'm trying to use a facet for the top buttons. I
> tried the following but didn't work. Can you give me an example?
>
> <!-- OK and Cancel button -->
>
> <ui:facet name="pageButtonsTop">
> <ui:panelGroup id="pageButtonsGroupTop">
> <sun:button id="okButton" primary="#{true}"
> text="Ok" />
> <sun:button id="cancelButton" primary="#{true}"
> text="Cancel"/>
> </ui:panelGroup>
> </ui:facet>
> Thanks,
> Ken