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
@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
. 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
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
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
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
--
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
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!
--
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
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
.
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
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
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
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
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
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
-
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
(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
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
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
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
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
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
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
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
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
-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]
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
.
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
-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]
:) 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
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
:) 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
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
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
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
(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
))
-
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
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.
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
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
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
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
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
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
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
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
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
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
101 - 149 of 149 matches
Mail list logo