开发者

How to format jsf tags using s:formattedText

开发者 https://www.devze.com 2023-02-17 21:24 出处:网络
I am trying to display an im开发者_运维知识库age using <s:formattedText value=\"#{image}\"/>. Image value actually corresponds to image=\"<h:graphicImage value=\\\"/img/bird.png\\\"/>\". N

I am trying to display an im开发者_运维知识库age using <s:formattedText value="#{image}"/>. Image value actually corresponds to image="<h:graphicImage value=\"/img/bird.png\"/>". Now while formatting seam throws a warning message

[UIFormattedText] Seam Text parse error: invalid element 'h'

How to resolve this?


What are you trying to achieve? s:formattedText is designed to display text in a rich-text format, not display images, which is what you're asking it to do.

0

精彩评论

暂无评论...
验证码 换一张
取 消