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

Re: problem when reading properties file

2008-06-02 Thread wenm
;, new ResourceModel(key1)) > > - > 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

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
Exactly as James suggest and what I said earlier: use something like this, add( new Label( "page.label", new ResourceModel( "page.label" ) ); Instead of 'page.label' do something like error.label.key# where key# is what you get from the service. On Mon, Jun 2, 2008 at 3:05 PM, James Carman <[EM

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 properti

Re: problem when reading properties file

2008-06-02 Thread wenm
uestion. >> > > hmm i tried Chinese, Thais and some others. > But i never got a massage from a property file, how does that feel?? > > johan > > -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17

Re: problem when reading properties file

2008-06-02 Thread wenm
proach with us? -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599649.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROT

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 James Carman
y not use a utility that converts the message > to your liking? > > -- > View this message in context: > http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599504.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > >

Re: problem when reading properties file

2008-06-02 Thread wenm
message to your liking? -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p17599504.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
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-tp17597421p17598771.html > Sent from the Wicket - U

Re: problem when reading properties file

2008-06-02 Thread wenm
ROTECTED] > > > -- View this message in context: http://www.nabble.com/problem-when-reading-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 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 Feedbac

Re: problem when reading properties file

2008-06-02 Thread wenm
Thanks Eyal. I have tried with resourceModel before, it works fine. 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. -- View this message in context: http://www.nabble.com/problem-when-reading

Re: problem when reading properties file

2008-06-02 Thread Eyal Golan
ntln(property.getProperty("a key")); > } > > Really can't understand why. Did I do something in wrong way? Thanks for > any > help or sugestion. > > -- > View this message in context: > http://www.nabble.com/problem-when-reading-properties-file-tp17597

problem when reading properties file

2008-06-02 Thread wenm
uot;a key")); } Really can't understand why. Did I do something in wrong way? Thanks for any help or sugestion. -- View this message in context: http://www.nabble.com/problem-when-reading-properties-file-tp17597421p175974