I guess this is a bug: when using tags with empty body
in a jspx or tagx source, the closing tag will be rendered at a wrong place.

For example, the 3 following combinations in your jspx or tagx lead to the same result.

<span></span>
<div>bbb</div>
or
<span></span>
<div></div>
bbb
or
<span/>
<div/>
bbb

will be rendered as

<span>
<div>bbb</div>
</span>

Environment: Spring 3.1.1
I discovered this issue when starting to play with editor.tagx in Spring ROO 1.2.2

<div id="_${sec_field}_id_"></div>