What I would like is something like following:
<f:verbatim>
<%
out.println("<span id='test'>Data</span>");
%>
</f:verbatim>
I would like the out.println code to be rerun by ajax. However, when I set that form to dirty, the out.println is not rerun.
Is there a way around this, short of using a custom tag?
What I need is a tag, like
<f:writeAsHTML value="#{bean.HTMLproducer}"/>
Is there already a tag like that in myfaces or basic JSF?
Just put it in
f:verbatimwithout that scriptletOr just print it plain (only possible on JSF 1.2 or newer)
Or use
h:outputTextsince it renders a<span>anywayOr use
h:outputText escape="false"if the HTML comes from a bean propertyAs per your functional requirement which reads like
The problem needs to be solved elsewhere. Are you using JSF 1.x or 2.x? Regardless, you should utilize JSF-provided Ajax components like RichFaces’ Ajax4jsf components or JSF 2.0’s
<f:ajax>components which offers arenderattribute to trigger re-rendering of JSF components.