You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2010/11/21 10:57:15 UTC
[jira] Resolved: (WICKET-2786) WicketMessageResolver: Render
warning if getThrowExceptionOnMissingResource is false like Label does
[ https://issues.apache.org/jira/browse/WICKET-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juergen Donnerstag resolved WICKET-2786.
----------------------------------------
Resolution: Won't Fix
Assignee: Juergen Donnerstag
The following test case should explain it
// Input ------------------------------------------------------------------
<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:id="message">test</span>
<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>
// Output ------------------------------------------------------------------
<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>
<wicket:message key="myKey">myValue</wicket:message>
<span wicket:id="message">here it goes</span>
<span wicket:message="attr-name:i18n-key" attr-name="my i18n key">test 2</span>
<span wicket:id="message2" wicket:message="attr-name:i18n-key" attr-name="my i18n key">here it goes</span>
<input type="image" src="../../test.gif">test 2</input>
<input type="image" src="../../test.gif" wicket:message="attr-name:i18n-key" attr-name="my i18n key">test 2</input>
</body>
</html>
In case I'm missing something, please re-open
> WicketMessageResolver: Render warning if getThrowExceptionOnMissingResource is false like Label does
> ----------------------------------------------------------------------------------------------------
>
> Key: WICKET-2786
> URL: https://issues.apache.org/jira/browse/WICKET-2786
> Project: Wicket
> Issue Type: Improvement
> Reporter: Fridolin Jackstadt
> Assignee: Juergen Donnerstag
> Fix For: 1.5-M4
>
> Attachments: wicketmessageresolver-warning.path, wicketmessageresolver-warning.path
>
>
> Localizer.getString renderes a nice warning if getThrowExceptionOnMissingResource is false
> WicketMessageResolver renderes an empty string in this case, specially for links it would be useful to see the warning like on a Label.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.