In my app I never hard-code text so I'm constantly adding Labels to my pages.  I was wondering if it would make sense to have a shortcut, similar to how Tapestry does it, for dsplaying localization messages.  In Tapestry, you can do this: title="message:page-title", where page-title is the lookup into the property file. 

Perhaps Wicket could have something like this:
<span wicket:id="message:myLabelHere"></span>

Even better would be that it would recognize the message:label anywhere in the HTML.  So for example, you could have:
<input type="submit" value="message:label.submit" />

Thoughts?

--Andrew

Reply via email to