[jboss-user] [JBoss Seam] - formattedText with dynamic content - escaping

appendix do-not-reply at jboss.com
Mon Nov 19 11:21:11 EST 2007


Hi!

I'm facing the situation, where I do have a page containing a formattedText tag to display some information, I'm getting from the resource bundle as shown below:


  | <s:formattedText value="#{messages['newGroupCreated.text']}"/>
  | 

whereas the text in the message bundle is:

  | newGroupCreated.text=The new group '*#{group.name} (#{group.nameShort})*' was created successfully.
  | 

Nothing special - everything is working fine until one of the dynamic contents ("group.name" or group.nameShort") is containing a special character(e.g.: '*', '/', '~',...), which needs to be escaped to be displayed correctly.

My question would be, how to deal with the situation? 
Is there a Seam class available doing the escaping work or do I manually have to look for occurrences of org.jboss.seam.text.SeamTextParserTokenTypes in the dynamic content?

Any pointers?

Best regards, Kurt


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106084#4106084

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106084



More information about the jboss-user mailing list