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

[1501 byte] By [mschildera] at [2007-10-3 1:25:04]
# 1
Do<h:outputText value="some extra text not in a label" />or<f:verbatim>some extra text not in a label</f:verbatim>
BalusCa at 2007-7-14 18:22:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Perfect, that verbatim tag I was not aware of, and is exactly what I needed.I just wanted an escape, if I wanted to put an amount of raw text and html inside my component, that I didn't have to embed every field, and every text label with jsf tags.
mschildera at 2007-7-14 18:22:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
If you want to escape and want to use a dynamic component anyway, then do<h:outputText value="#{myBean.textWithHtml}" escape="false" />Then the HTML won't be escaped.
BalusCa at 2007-7-14 18:22:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...