]
Christian Bauer commented on JBSEAM-2572:
-----------------------------------------
So don't use s:formattedText, it's not designed for what you want to do. Or wrap
it in s:fragment rendered=true/false.
<s:formattedText> breaks rendering if there's no content
between two formatting characters
------------------------------------------------------------------------------------------
Key: JBSEAM-2572
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2572
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.CR2
Environment: Windows XP; Java 2.0.0.CR2; Seam 2.0.0.CR2; JBoss AS 4.2.0.GA
Reporter: Kurt Edegger
If there is no text between two formatting characters (*,|,/,...) of SeamText, rendering
of the page fails because of an XML Parsing Error: mismatched tag. Expected: .
Example:
<!-- this one works great -->
<s:formattedText value="Hello, *this* is the text"/>
<!-- this one will break the rendering of the page where embedded -->
<s:formattedText value="Hello, ** is the text"/>
Obviously no one would write the such a formatting by hand, but it occurs, if there is a
value binding to a property in a backing bean which is null (e.g.: <s:formattedText
value="Hello, *#{user.name}* "/> and user.name==null).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: