constant strings

2012-05-02 Thread Tom Eugelink
The Wicket application I'm developing is an internal app which will only be available in English. In order to not unnecessarily bloat the code and the project, I'm often use hardcoded labels. I know this is not convention, but there is no reason for me to introduce a resource file and use the

Re: constant strings

2012-05-02 Thread Eric Jablow
On Wed, May 2, 2012 at 7:47 AM, Tom Eugelink t...@tbee.org wrote: The Wicket application I'm developing is an internal app which will only be available in English. In order to not unnecessarily bloat the code and the project, I'm often use hardcoded labels. I know this is not convention, but

Re: constant strings

2012-05-02 Thread Tom Eugelink
On 2-5-2012 17:07, Eric Jablow wrote: Actually, there are reasons to use resource files. If you use a label on more than one page, or even more than once on a single page, and if your application is changing as you develop it, you may want to change the text for a label, and you probably will

Re: constant strings

2012-05-02 Thread Igor Vaynberg
if it doesnt store anything then where would it get the value from when the second request needs to be processed? wicket components live across many requests. -igor On Wed, May 2, 2012 at 4:47 AM, Tom Eugelink t...@tbee.org wrote: The Wicket application I'm developing is an internal app which

Re: constant strings

2012-05-02 Thread Tom Eugelink
On 2012-05-02 17:16, Igor Vaynberg wrote: if it doesnt store anything then where would it get the value from when the second request needs to be processed? wicket components live across many requests. Don't know. That exactly was my question. Is it possible to not store constant values in

Re: constant strings

2012-05-02 Thread Igor Vaynberg
no. if you do not want to store the string then instead of a new Model use new AbstratReadOnlyModel(). -igor On Wed, May 2, 2012 at 8:25 AM, Tom Eugelink t...@tbee.org wrote: On 2012-05-02 17:16, Igor Vaynberg wrote: if it doesnt store anything then where would it get the value from when

Re: constant strings

2012-05-02 Thread Tom Eugelink
AH! Ok. Makes sense! Thanks. Tom On 2012-05-02 17:23, Igor Vaynberg wrote: no. if you do not want to store the string then instead of a new Model use new AbstratReadOnlyModel(). -igor - To unsubscribe, e-mail: