Properties Override

2014-08-11 Thread David Beer
Hi All

I am trying to change some values specified in a properties file for a
third party component. The component is part of the wicket-bootstrap
project and specifies some value read from a properties file. I would like
to override these values from my application, where my panel calls the
component from. What is the best way of doing this I have tried adding a
properties file the same name as my my panel and adding the values. But I
am not having much luck getting them to override the values.

Any suggestions most hopeful.

Thanks

David


Re: Properties Override

2014-08-11 Thread Martin Grigorov
Hi,

What you explained should work.
Give us more details to see what went wrong.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com wrote:

 Hi All

 I am trying to change some values specified in a properties file for a
 third party component. The component is part of the wicket-bootstrap
 project and specifies some value read from a properties file. I would like
 to override these values from my application, where my panel calls the
 component from. What is the best way of doing this I have tried adding a
 properties file the same name as my my panel and adding the values. But I
 am not having much luck getting them to override the values.

 Any suggestions most hopeful.

 Thanks

 David



Re: Properties Override

2014-08-11 Thread David Beer
Hi Martin

My properties file is named ProfileImageUploadPanel.properties same as the
the java class except for the extension. In the Java class I reference the
FileInput widget which contains the values I need to overide. The contents
of my properties file is as follows:

browseLabel=Browse

browseLabel being the property I wish to override. As you can see from the
below screen shot the value is still the Original Text. There should be no
elipse at the end.





On 11 August 2014 16:22, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,

 What you explained should work.
 Give us more details to see what went wrong.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com
 wrote:

  Hi All
 
  I am trying to change some values specified in a properties file for a
  third party component. The component is part of the wicket-bootstrap
  project and specifies some value read from a properties file. I would
 like
  to override these values from my application, where my panel calls the
  component from. What is the best way of doing this I have tried adding a
  properties file the same name as my my panel and adding the values. But I
  am not having much luck getting them to override the values.
 
  Any suggestions most hopeful.
 
  Thanks
 
  David
 



Re: Properties Override

2014-08-11 Thread Martin Grigorov
Do you set the i18n value in FileInputConfig ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 6:07 PM, David Beer david.m.b...@gmail.com wrote:

 Hi Martin

 My properties file is named ProfileImageUploadPanel.properties same as the
 the java class except for the extension. In the Java class I reference the
 FileInput widget which contains the values I need to overide. The contents
 of my properties file is as follows:

 browseLabel=Browse

 browseLabel being the property I wish to override. As you can see from the
 below screen shot the value is still the Original Text. There should be no
 elipse at the end.





 On 11 August 2014 16:22, Martin Grigorov mgrigo...@apache.org wrote:

  Hi,
 
  What you explained should work.
  Give us more details to see what went wrong.
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
 
  On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com
  wrote:
 
   Hi All
  
   I am trying to change some values specified in a properties file for a
   third party component. The component is part of the wicket-bootstrap
   project and specifies some value read from a properties file. I would
  like
   to override these values from my application, where my panel calls the
   component from. What is the best way of doing this I have tried adding
 a
   properties file the same name as my my panel and adding the values.
 But I
   am not having much luck getting them to override the values.
  
   Any suggestions most hopeful.
  
   Thanks
  
   David
  
 



Re: Properties Override

2014-08-11 Thread David Beer
Nope. Just add the properties like I did with a validator.


On 11 August 2014 17:27, Martin Grigorov mgrigo...@apache.org wrote:

 Do you set the i18n value in FileInputConfig ?

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 6:07 PM, David Beer david.m.b...@gmail.com
 wrote:

  Hi Martin
 
  My properties file is named ProfileImageUploadPanel.properties same as
 the
  the java class except for the extension. In the Java class I reference
 the
  FileInput widget which contains the values I need to overide. The
 contents
  of my properties file is as follows:
 
  browseLabel=Browse
 
  browseLabel being the property I wish to override. As you can see from
 the
  below screen shot the value is still the Original Text. There should be
 no
  elipse at the end.
 
 
 
 
 
  On 11 August 2014 16:22, Martin Grigorov mgrigo...@apache.org wrote:
 
   Hi,
  
   What you explained should work.
   Give us more details to see what went wrong.
  
   Martin Grigorov
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
  
   On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com
   wrote:
  
Hi All
   
I am trying to change some values specified in a properties file for
 a
third party component. The component is part of the wicket-bootstrap
project and specifies some value read from a properties file. I would
   like
to override these values from my application, where my panel calls
 the
component from. What is the best way of doing this I have tried
 adding
  a
properties file the same name as my my panel and adding the values.
  But I
am not having much luck getting them to override the values.
   
Any suggestions most hopeful.
   
Thanks
   
David