Cool, ended up doing this:

error(new StringResourceModel("error.empty.file.uploaded", this, null).getString());

Reckon thats the best solution? It's a bit heavier than just ResourceModel, for simple strings with no param substitution would it still be ok?


cheers,
Steve








On 11 Nov 2008, at 13:24, James Carman wrote:

Component has a getString() method that you can use to access its
message bundle.

On Tue, Nov 11, 2008 at 8:17 AM, Steve Swinsburg
<[EMAIL PROTECTED]> wrote:
Is there a way to internationalise the error messages? I'd like them to come
from my resource bundle:
error(new ResourceModel("error.empty.file.uploaded"));
doesnt work and gives:
Model:classname=[org.apache.wicket.model.ResourceModel]
as the output. Alternatively I'll need to look at using a custom panel to
render my messages in one spot.

cheers,
Steve







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to