See org.apache.wicket.markup.html.basic.SimplePageTest and
org.apache.wicket.markup.parser.filter.WicketMessageTagHandler.

>From that test:

<html xmlns:wicket>
<body>
  <wicket:message key="myKeyNotExsts">Default Text</wicket:message>
  <wicket:message key="myKey">Default Text</wicket:message>
  <wicket:message key="myKeyNotExsts"/>
  <wicket:message key="myKey"/>
  <span wicket:message="attr-name:i18n-key">test 2</span>
  <span wicket:id="message2" wicket:message="attr-name:i18n-key">test 2</span>
  <input type="image" src="test.gif">test 2</input>
  <input type="image" src="test.gif"
wicket:message="attr-name:i18n-key">test 2</input>
</body>
</html>


yields:

<html xmlns:wicket>
<body>
  <wicket:message key="myKeyNotExsts">Default Text</wicket:message>
  <wicket:message key="myKey">myValue</wicket:message>
  <wicket:message key="myKeyNotExsts"/>
  <wicket:message key="myKey">myValue</wicket:message>
  <span attr-name="my i18n key"
wicket:message="attr-name:i18n-key">test 2</span>
  <span wicket:id="message2" attr-name="my i18n key"
wicket:message="attr-name:i18n-key">here it goes</span>
  <input type="image" src="../test.gif">test 2</input>
  <input type="image" src="../test.gif" attr-name="my i18n key"
wicket:message="attr-name:i18n-key">test 2</input>
</body>
</html>


Can someone please update the <wicket:message> part at
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html?

Eelco


On 6/5/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> Is there something like wicket:message for localizing attributes like title
> tooltips?  I looked on the WIKI but there wasn't anything there.
>
> --
> View this message in context: 
> http://www.nabble.com/wicket%3Amessage-for-attributes--tf3874468.html#a10978311
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to