[opencms-dev] <cms:formatter> always needs a xml tag inside?

Yuta Aoki y_aoki at ubicast.com
Thu Mar 15 04:16:59 CET 2012


Hello,


I have noticed a slightly bizarre behaviour of cms:formatter tag.
I prepared a simple mail template with a cms:container tag and a
formatter like this:


---- main.jsp ----

....					
<cms:container name="democenterlist" type="democenter" maxElements="8"
detailview="true"/>
...


---- formatter.jsp ---

....
<cms:formatter var="content" val="v">

This is a formatter!

</cms:formatter>

------------------------


And it didn't work; The content of the formatter "This is a
formatter!" wasn't displayed.

However, when I make the formatter like this instead, it worked fine :


 ---- formatter.jsp ---

....
<cms:formatter var="content" val="v">

<div>This is a formatter!</div>

</cms:formatter>

------------------------


What's going on here?


Cheers,
Yuta



More information about the opencms-dev mailing list