Re: Loading properties file while using Spring @L

2010-02-08 Thread Igor Vaynberg
work in the my Wicket application class. I am looking for recommendations on how to read properties files from wicket application class. Ideally I would like to use a single properties file read by Wicket and Spring. Thanks, Alec

Loading properties file while using Spring @L

2010-02-07 Thread Alec Swan
@SpringBean annotation, but it doesn't work in the my Wicket application class. I am looking for recommendations on how to read properties files from wicket application class. Ideally I would like to use a single properties file read by Wicket and Spring. Thanks, Alec

Re: Loading properties file while using Spring @L

2010-02-07 Thread Igor Vaynberg
. Ideally I would like to use a single properties file read by Wicket and Spring. Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: retrieving multiple values for a key in a properties file

2009-12-18 Thread A. Maza
This is not really a wicket task. It's more a programming problem. String localizedString = Localizer.getString(key); String[] values = localizedString.split(,); Simple isn't it? You really want to decline this method? I was aware of this possibility (which I actually want to avoid for my

retrieving multiple values for a key in a properties file

2009-12-17 Thread A. Maza
Hello, is it somehow possible to retrieve a String array (or a list or something else) for multiple values in a properties file. I want to achieve something like this: I have a properties file with the following entry myKey=firstValue,secondValue,thirdValue,... in a component I would need

Re: retrieving multiple values for a key in a properties file

2009-12-17 Thread Per Newgro
Am 17.12.2009 21:47, schrieb A. Maza: Hello, is it somehow possible to retrieve a String array (or a list or something else) for multiple values in a properties file. I want to achieve something like this: I have a properties file with the following entry myKey=firstValue,secondValue

Reading localization properties from Subclass .properties file

2009-11-06 Thread Leo . Erlandsson
-- public BasePage() { super(); . . header = new HeaderPanel(header, getHeaderImagePath()); add(header); } We then subclass BasePage and implement getHeaderImagePath() which is abstract. HeaderPanel reads the header from a .properties file and uses

Ang. Reading localization properties from Subclass .properties file

2009-11-06 Thread Leo . Erlandsson
Sorry for the inconvenience, Wicket is handling this beautifully and loads the correct resourceKey value from the Page subclass .properties file. I don't dare admit what the problem was Thanks for a great framework!

Reading localization properties from Page Subclass .properties file

2009-11-05 Thread Leo . Erlandsson
-- public BasePage() { super(); . . header = new HeaderPanel(header, getHeaderImagePath()); add(header); } We then subclass BasePage and implement getHeaderImagePath() which is abstract. HeaderPanel reads the header from a .properties file and uses

Properties file and validators

2009-09-02 Thread hill180
When the user does not place enough characters (19) I want to show a error message different than '1234' is not exactly 19 characters long. I have a properties file, but I don't know what the element would be called. I have tried form.card.ExactLengthValidator=19 Digits are required

Re: Properties file and validators

2009-09-02 Thread Igor Vaynberg
. I have a properties file, but I don't know what the element would be called. I have tried form.card.ExactLengthValidator=19 Digits are required. But Obviously ExactLengthValidator is not the right key. My Java code looks like this.. form.add(new TextField(card, String.class).setRequired

Re: Properties file and validators

2009-09-02 Thread hill180
PM, hill180hill...@gmail.com wrote: When the user does not place enough characters (19) I want to show a error message different than '1234' is not exactly 19 characters long. I have a properties file, but I don't know what the element would be called. I have tried

Re: how to split application properties file into several properties files

2009-06-22 Thread Vladimir K
wrote: I would like to split the application properties file into several properties files. I know that I can share resources of base component and page among their descendants and at that I can use package propeties files. I just don't want to go this way because most of messages

how to split application properties file into several properties files

2009-06-19 Thread Vladimir Kovalyuk
I would like to split the application properties file into several properties files. I know that I can share resources of base component and page among their descendants and at that I can use package propeties files. I just don't want to go this way because most of messages are organized

How to get property from .properties file for a component class (and not instance)?

2009-04-21 Thread Kaspar Fischer
Is there a way to get a property from a .properties file given its name and the class of the component? All methods I have seen, e.g., WebApplication .get().getResourceSettings().getLocalizer().getString(key, component) require the property's name and a component instance

Re: Properties file

2008-11-21 Thread landry soules
Thanks a lot, Cemal. As always, you gave me a quick and brilliant answer. I tried your first solution, and it works as a charm. However, i wonder if there is a way to overload this properties file according to the deployment environment (typically, i will have a file named

Re: Properties file

2008-11-21 Thread Srikanth.NT
- http://ntsrikanth.blogspot.com/ -- View this message in context: http://www.nabble.com/Properties-file-tp20610610p20617707.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Properties file

2008-11-21 Thread jWeekend
(when style = test) and MyApplication_prod.properties (when style=prod) Regards, Srikanth NT -- View this message in context: http://www.nabble.com/Properties-file-tp20610610p20620313.html Sent from the Wicket - User mailing list archive at Nabble.com

Properties file

2008-11-20 Thread landry soules
Hello, i have a question about properties files : I want to access several variables residing in a property file, from various components of my application. What is the best way to achieve this trivial need ? Do you guys use Commons Configuration, or another api ? How do you configure it to

Re: Properties file

2008-11-20 Thread jWeekend
this... Thanks in advance ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Properties-file-tp20610610p20611147

Where to put custom validator properties file within JAR so Wicket finds it?

2008-09-22 Thread Justin Morgan - Logic Sector
and needs to display an error. My question is: Where (what path) in my Maven project do I put the DisallowedContentValidator.properties file so that the properties file is automatically found when mf-wicket-extensions.jar/ DisallowedContentValidator.class lib is loaded as part of a web app

Re: Where to put custom validator properties file within JAR so Wicket finds it?

2008-09-22 Thread Martijn Dashorst
the DisallowedContentValidator.properties file so that the properties file is automatically found when mf-wicket-extensions.jar/DisallowedContentValidator.class lib is loaded as part of a web app? (Sorry I'm pretty new at Maven--I'm a new convert to Maven--but I'm sure there must be a way to do

Reading Wicket properties file WITH substitutions

2008-08-28 Thread Neil McT
Hi there, I'm looking for suggestions as how best to read a Wicket .properties file AND include the text substitutions. Specifically I've overriden certain validation error messages in a properties file e.g StringValidator.range=${label} must be between ${minimum} and ${maximum} characters

Re: Validation .properties File Location

2008-06-30 Thread Igor Vaynberg
validators do not yet support their own bundles. i believe this is scheduled for 1.5 -igor On Mon, Jun 30, 2008 at 6:30 AM, Hoover, William [EMAIL PROTECTED] wrote: Does custom validation .properties default to the class package of the validator (similar to how .java and .properties work with

Re: problem when reading properties file

2008-06-02 Thread Gabor Szokoli
On 6/2/08, wenm [EMAIL PROTECTED] wrote: But my label only show the message when the web service returns error, not constant showing. So it is not a good idea to use resourceModel. I know I'm not answering your original question, but until someone does, you could look at either the

problem when reading properties file

2008-06-02 Thread wenm
I want to read a properties file test.properties, and show the value which is defined in properties file in a lable. But I can't read the properties file I have tried property.load(ClassLoader.getSystemResourceAsStream(test.properties)); property.load(this.getClass().getClassLoader

Re: problem when reading properties file

2008-06-02 Thread wenm
-properties-file-tp17597421p17598771.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
I'm not sure what's wrong, but why not use the i18n feature? Create a .properties file with name of the page that your label is located, put it in the same folder of the page (like were you put the html). The label should be something like this: add( new Label( page.label, new ResourceModel

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
. Gabor Szokoli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file

Re: problem when reading properties file

2008-06-02 Thread wenm
-properties-file-tp17597421p17597687.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problem when reading properties file

2008-06-02 Thread wenm
:) The problem is that I have to get different massages from properties file, and then comes to my original question. so the problem is that you can get different messages? if so, why not use isVisible() as Gabor suggested. And for the String itself, why not use a utility that converts

Re: problem when reading properties file

2008-06-02 Thread James Carman
have to get different massages from properties file, and then comes to my original question. so the problem is that you can get different messages? if so, why not use isVisible() as Gabor suggested. And for the String itself, why not use a utility that converts the message to your liking

Re: problem when reading properties file

2008-06-02 Thread Johan Compagner
:) The problem is that I have to get different massages from properties file, and then comes to my original question. hmm i tried Chinese, Thais and some others. But i never got a massage from a property file, how does that feel?? johan

Re: problem when reading properties file

2008-06-02 Thread wenm
Sure. Maybe I need to explain more explicitly. I will get the unique error code from web service if there is something wrong. And then I would like to map the error codes to user-friendly messages (which are in properties file), and show the messages conditionally based on the error type

Re: problem when reading properties file

2008-06-02 Thread wenm
lol :) I haven't get it so far, so I don't know how's the properties' massage. mis-typing, sorry. Johan Compagner wrote: :) The problem is that I have to get different massages from properties file, and then comes to my original question. hmm i tried Chinese, Thais and some others

Re: problem when reading properties file

2008-06-02 Thread James Carman
On Mon, Jun 2, 2008 at 8:01 AM, wenm [EMAIL PROTECTED] wrote: Sure. Maybe I need to explain more explicitly. I will get the unique error code from web service if there is something wrong. And then I would like to map the error codes to user-friendly messages (which are in properties file

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
(which are in properties file), and show the messages conditionally based on the error type in a label. For example if(error code == 1){ add(new Label(a, property.getProperty(key1))); } else if (error code ==2){ . } So the first thing is that I have to read

Re: problem when reading properties file

2008-06-02 Thread wenm
)) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599820.html Sent from the Wicket - User mailing list archive

Re: problem when reading properties file

2008-06-02 Thread James Carman
On Mon, Jun 2, 2008 at 8:10 AM, wenm [EMAIL PROTECTED] wrote: yup, it works. But I would like to know the way to read the file, for studying and also maybe future use. For future use, I'd suggest you look at the java.util.ResourceBundle class. That will probably do what you are looking for.

Wicket properties file

2008-05-25 Thread Cristi Manole
Hello, I have a page with a properties file associated with it and a panel with another properties file. When i display the panel on some page (with no properties), wicket works as expected : it loads the properties from the properties file associated with the panel. But when I have a modal

Re: Wicket properties file

2008-05-25 Thread Cristi Manole
correction : instead of But when I have a modal window displaying the panel on the page with an associated properties file, the *properties of the modal* will override those for the panel (obviously, those having the same name). - properties of the page containing the modal On Mon, May 26, 2008

Re: localization properties file

2008-05-22 Thread Maurice Marrink
That would be the easiest yes. Maurice On Thu, May 22, 2008 at 7:45 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, If I want a centralized properties file for localization, where should I put it and how should I call it? Is it supposed to be in the same folder as my WebApplication class

Re: localization properties file

2008-05-22 Thread Gwyn Evans
a centralized properties file for localization, where should I put it and how should I call it? Is it supposed to be in the same folder as my WebApplication class? Is is supposed to have the same name as this class (with extension properties)? Thanks -- Eyal Golan [EMAIL PROTECTED] Visit: http

Re: localization properties file

2008-05-22 Thread Eyal Golan
On Thu, May 22, 2008 at 7:45 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, If I want a centralized properties file for localization, where should I put it and how should I call it? Is it supposed to be in the same folder as my WebApplication class? Is is supposed to have the same name

localization properties file

2008-05-21 Thread Eyal Golan
Hi, If I want a centralized properties file for localization, where should I put it and how should I call it? Is it supposed to be in the same folder as my WebApplication class? Is is supposed to have the same name as this class (with extension properties)? Thanks -- Eyal Golan [EMAIL PROTECTED

Re: How to read the properties file in wicket?

2008-01-17 Thread Matthijs Wensveen
Rama-o-Rama wrote: Hello, I am trying to read the property file like test.properties in the wicket. I have done previously like servletcontext.getresouceasstream(). what is the wicket way of reading the file. ~Rama If the properties file 'belongs' to a Component, like

How to read the properties file in wicket?

2008-01-16 Thread Rama-o-Rama
Hello, I am trying to read the property file like test.properties in the wicket. I have done previously like servletcontext.getresouceasstream(). what is the wicket way of reading the file. ~Rama -- View this message in context: http://www.nabble.com/How-to-read-the-properties-file-in-wicket

Re: How to read the properties file in wicket?

2008-01-16 Thread Rama-o-Rama
this message in context: http://www.nabble.com/How-to-read-the-properties-file-in-wicket--tp14898469p14899794.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How to read the properties file in wicket?

2008-01-16 Thread Igor Vaynberg
servletcontext.getresouceasstream(). what is the wicket way of reading the file. ~Rama Hi Igor, How do the serveltContext in wicket? ~Rama -- View this message in context: http://www.nabble.com/How-to-read-the-properties-file-in-wicket--tp14898469p14899794.html Sent from the Wicket - User mailing list

<    1   2