You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by HHB <hu...@yahoo.ca> on 2009/04/27 16:28:45 UTC
How to get an i18n message?
Hey,
How to get a message (that will be displayed in FeedbackPanel) from properties
file in order to use it for info() method of Component class?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get an i18n message?
Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
Here's an example from my own code:
private static final String SQLERROR_GET = new
ResourceModel("error.sqlException.select").getObject();
My properties.xml file contains a key that is called
"error.sqlException.select". This string is an error message that I
later on add to my feedbackpanel:
error(SQLERROR_GET);
Hope that helps.
Regards,
Linda
> Hey,
> How to get a message (that will be displayed in FeedbackPanel) from properties
> file in order to use it for info() method of Component class?
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.287 / Virus Database: 270.12.4/2082 - Release Date: 04/27/09 06:19:00
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get an i18n message?
Posted by reiern70 <re...@gmail.com>.
Maybe Component.getString(...);
Ernesto
HHB wrote:
>
> Hey,
> How to get a message (that will be displayed in FeedbackPanel) from
> properties
> file in order to use it for info() method of Component class?
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/How-to-get-an-i18n-message--tp23257589p23258193.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org