facets and children - edited
edit: scratch that, I got part of my answer from reading other messages on this forum (ignroe my previous post if you read it).
What I have now is this.
<hf:divPopUpPanel id="popuptest">
<f:facet name="PopUpLauncher">
<h:commandButton id="launchx" value="This is a test." onclick="alert('some extra code')" type="button"/>
</f:facet>
<f:facet name="PopUp">
<hf:divPanelWithTitle id="window" height="#{param.height}" width="#{param.width}" title="#{param.title}">
<h:outputLabel value="Some text in an outputLabel"/>
some extra text not in a label
<h:commandButton value="Close" onclick="hideOverlay();" type="button"/>
</hf:divPanelWithTitle>
</f:facet>
</hf:divPopUpPanel>
What I am having difficulty with is getting the bold text to show up. My encodeChildren looks something like this...
UIComponent launcher = (UIComponent)component.getFacet(POPUP_LAUNCHER);
UIComponent popup = (UIComponent)component.getFacet(POPUP_DIV);
launcher.encodeBegin(context);
launcher.encodeEnd(context);
popup.encodeBegin(context);
popup.encodeChildren(context);
popup.encodeEnd(context);
(there are some other bits where I tweak the code of the elements, I am just concerned about being able to dump raw text, or do I have put *everything* into components?)
Message was edited by:
mschilder

