Thanks, I can reproduce it in a quickstart using 1.4.17 as well. 


Reproduced the snippets here:

---------------------------------------------------------------------------------------------------
HomePage.java:

add(new Label("message", new ResourceModel("some.label")));

Form form = new Form("form");
form.setMultiPart(true);
form.add(new MultiFileUploadField("multi", 5));
add(form);

---------------------------------------------------------------------------------------------------
HomePage.html
<span wicket:id="message">message will be here</span>
<form wicket:id="form">
<span wicket:id="multi"></span>
</form>

---------------------------------------------------------------------------------------------------
WicketApplication.properties:

some.label=this is a message from our properties file

org.apache.wicket.mfu.caption.unlimited=blah:
org.apache.wicket.mfu.caption.limited=test123 (${max}):
org.apache.wicket.mfu.delete=Borrar


And I get the label translated from the properties file, but not the MultiUploadFieldComponent. Screenshot:




On 18/05/2011, at 3:51 PM, Martin Grigorov wrote:

Please create a quickstart app and attach it to a ticket.
Test the quickstart with 1.4.17 too.

On Wed, May 18, 2011 at 1:41 AM, Steve Swinsburg
<steve.swinsb...@gmail.com>wrote:

Ok I've done that and when the webapp starts up I get this:
INFO: 2011-05-18 09:36:53,246 Loading properties files from
jar:file:/pah/to/my/app/WEB-INF/lib/wicket-1.4.13.jar!/org/apache/wicket/Application.properties
[http-8081-Processor24]

Accessing pages I see things like:
DEBUG: 2011-05-18 09:38:27,823 Property found in cache:
'link.my.profile.tooltip'; Component: '[MarkupContainer [Component id =
myProfileLink]]'; value: 'Ver y editar tu perfil' [http-8081-Processor19]

Which all looks good.

Then, when I access the panel that has the MultiFileUploadField component,
I see no reference at all to any of the properties.

In contrast, when I access a panel that has the phone number validator,
which actually works in terms of internationalisation, I get:
DEBUG: 2011-05-18 09:40:06,655 Property found in cache:
'homephone.PhoneNumberValidator'; Component: '[MarkupContainer [Component id
= homephone]]'; value: 'N?mero de tel?fono no v?lido'
[http-8081-Processor19]

Does that give you an idea of where the issue might be?

thanks,
Steve


On 17/05/2011, at 10:26 PM, Martin Grigorov wrote:

Enable debug level logging for org.apache.wicket.Localizer and see what
is
attempted.

On Tue, May 17, 2011 at 1:37 PM, Steve Swinsburg
<steve.swinsb...@gmail.com>wrote:

Yeah, that's where I have them and its not working. Its the same spot we
have the ones that do work too.

We do use a custom resource loader but I don't understand why it would
allow us to override some properties from Wicket components, and not
others.

Does the property need to be prefixed with the wicket id or something?

Any ideas?

Thanks
Steve


Sent from my iPhone

On 17/05/2011, at 17:37, Martin Grigorov <mgrigo...@apache.org> wrote:

Looking at MultiFileUploadField.java these are exactly the keys you
have
to
use.
Try to put them in MyApp_es.properties

On Tue, May 17, 2011 at 9:31 AM, Steve Swinsburg
<steve.swinsb...@gmail.com>wrote:

Hi,

We are having an issue setting some properties to override the default
text
for the MultiFileUploadField component. As per the docs, we have set
the
following in our local properties file:

org.apache.wicket.mfu.caption.unlimited=Ficheros:
org.apache.wicket.mfu.caption.limited=Ficheros (m\u00E1ximo ${max}):
org.apache.wicket.mfu.delete=Borrar


however they are not being overridden. We know our properties file is
working because we can override other properties, like:

workphone.PhoneNumberValidator = N\u00FAmero de tel\u00E9fono no
v\u00E1lido

and those come up correctly.

Is this a bug? If not, what might we be missing?

Wicket 1.4.13

thanks,
steve




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to