Dashboard > WebWork > ... > FAQ > Why does WW ignore my message when its enclosed in CDATA
  WebWork Log In View a printable version of the current page.  
  Why does WW ignore my message when its enclosed in CDATA
Added by tm_jee, last edited by Carlos Cajina on Jul 17, 2006  (view change)
Labels: 
(None)

Try not to separate the message tag and CDATA portion. The parser might create a text node enclosing the CDATA if it sees any space, and xwork just reads the first node (therefore, an empty text). Example:-

<field name="password">
  <field-validator type="requiredstring">
   <message><![CDATA[ Debe proporcionar una contraseña para el usuario. ]]></message>
  </field-validator>
</field>

 

Note: there's no spacing in the following line

<message><![CDATA[ ...]]></message>

 

Contributor: Ruben

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators