[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2572) <s:formattedText> breaks rendering if there's no content between two formatting characters

Kurt Edegger (JIRA) jira-events at lists.jboss.org
Mon Feb 4 03:48:03 EST 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2572?page=comments#action_12398005 ] 
            
Kurt Edegger commented on JBSEAM-2572:
--------------------------------------

Hi Christian,

unfortunately this is not an option, because the <s:formattedText> Tag is inside a <rich:modalPanel>, hence rendered at page load, when the property of the backing bean still can be null. Later, if the panel is shown, the property has already been set (with AJAX). 
Additionally, I don't think this is a great approach, because the content of the <s:formattedText> Tag is taken from a message bundle with embedded EL (great stuff within Seam!) and so the Tag itself doesn't "know", what must not be null, to be rendered correctly.

> <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

        



More information about the seam-issues mailing list