Announcement

Collapse
No announcement yet.

html code in richfaces panel interpretieren

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • html code in richfaces panel interpretieren

    Hallo,

    hoffe mit RichFaces bin ich unter JSF richtig.

    Ich sitze gerade an einem größeren WebProjekt, dass in RichFaces übertragen werden soll.
    Eine Bean generiert einen HTML-Code und liefert mir diesen zurück. momentan sieht mein Code an der Stelle so aus:

    Code:
    <rich:panel>
         #{htmlBean.htmlCode}
    </rich:panel>
    Der Code wird als HTML- Code angezeigt (mit allen Tags), aber leider nicht interpretiert. gibts da eine Möglichkeit oder muss ich den code durch Facelets Tags ersetzen?

    Danke & Gruß
    BLinio

  • #2
    Hallo BLinio,

    Um hmtl content einzubinden gibt es das verbatim-tag aus der jsf-core taglibrary.

    <f:verbatim escape="#{true}">
    This HTML markup will be escaped.
    </f:verbatim>

    Der komplette body-content wird als html escaped und gerendert. Soweit ich weiß wird zuerst jedoch jede bean property abgefragt
    „If there's more than one possible outcome of a job or task, and one of those outcomes will result in disaster or an undesirable consequence, then somebody will do it that way.“

    Murphys law

    Comment

    Working...
    X