[
http://jira.jboss.com/jira/browse/JBSEAM-2572?page=comments#action_12398008 ]
Kurt Edegger commented on JBSEAM-2572:
--------------------------------------
Hi Christian,
with s:fragment it would be the same as with rendered=true/false but with an extra tag, so
I don't see the improvement.
But anyway, fair enough, if you say it's not designed for that use case.
I simply read the doc and Chapter 15 states:
"Seam provides the <s:formattedText/> control for display of formatted text
that conforms to the Seam Text language. Seam Text is implemented using an ANTLR-based
parser. You don't need to know anything about ANTLR to use it, however."
I thought, that I wanted to do just that ... :)
Best Regards and thank you for your comments,
Kurt
<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:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira