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
;, 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
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
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
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
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
>
> :) 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
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.
>
>
>
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
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
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]
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
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
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
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
15 matches
Mail list logo