You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/11/26 09:33:24 UTC

svn commit: r1641773 - /wicket/common/site/trunk/_site/guide/guide/src/docs/guide/i18n/i18n_2.gdoc

Author: mgrigorov
Date: Wed Nov 26 08:33:23 2014
New Revision: 1641773

URL: http://svn.apache.org/r1641773
Log:
WICKET-5771 Ability to escape resource bundle messages added with wicket:message

Add docu for <wicket:message> 'escape' attribute


Modified:
    wicket/common/site/trunk/_site/guide/guide/src/docs/guide/i18n/i18n_2.gdoc

Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/i18n/i18n_2.gdoc
URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/i18n/i18n_2.gdoc?rev=1641773&r1=1641772&r2=1641773&view=diff
==============================================================================
--- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/i18n/i18n_2.gdoc (original)
+++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/i18n/i18n_2.gdoc Wed Nov 26 08:33:23 2014
@@ -128,13 +128,20 @@ String resources can be also retrieved d
 <wicket:message key="greetingMessage">message goes here</wicket:message>
 {code}
 
-wicket:message can be adopted also to localize the attributes of a tag. The name of the attribute and the resource key are expressed as a colon-separated value. In the following markup the content of attribute value will be replaced with the localized resource having 'key4value' as key:
+By default the resource value is not escaped for HTML entities. To do that use the @escape@ attribute:
+
+{code:xml}
+<wicket:message key="greetingMessage" escape="true">message goes here</wicket:message>
+{code}
+
+
+@wicket:message@ can be adopted also to localize the attributes of a tag. The name of the attribute and the resource key are expressed as a colon-separated value. In the following markup the content of attribute @value@ will be replaced with the localized resource having 'key4value' as key:
 
 {code:html}
 <input type="submit" value="Preview value" wicket:message="value:key4value"/>
 {code}
 
-If we want to specify multiple attributes at once, we can separate them with a coma:
+If we want to specify multiple attributes at once, we can separate them with a comma:
 
 {code:html}
 <input type="submit" value="Preview value" wicket:message="value:key4value, title:key4title"/>