Re: [Wicket-user] Best practice: Global configuration values?

2005-12-05 Thread Eelco Hillenius
The logical place here would be your Application/ WebApplication
object. You could combine this with init parameters in web-xml and
reading them in the Application.init method. Or, in case you want to
use Spring, use Spring config to configure your Application
properties.

Eelco


On 12/4/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 Hi,

 I have a short question: What is the Wicket way of making configuration
 values accessible throughout the application?
 This it the scenario: My application can run either in development or in
 production mode. In development mode it should connect to a different
 RMI server than in production mode. Multiple pages have to connect to
 the RMI server. Is there a best practice of making certain values
 accessible from every Page? (making my own page that extends Page and
 holds such values comes to mind, but is there a different way?)

 - Johannes.


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice: Global configuration values?

2005-12-05 Thread Johannes Fahrenkrug

Thank you for your reply.

Eelco Hillenius wrote:


The logical place here would be your Application/ WebApplication
object. 
 


I looked into that, but are these values accessible from every page?

- Johannes.



On 12/4/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 


Hi,

I have a short question: What is the Wicket way of making configuration
values accessible throughout the application?
This it the scenario: My application can run either in development or in
production mode. In development mode it should connect to a different
RMI server than in production mode. Multiple pages have to connect to
the RMI server. Is there a best practice of making certain values
accessible from every Page? (making my own page that extends Page and
holds such values comes to mind, but is there a different way?)

- Johannes.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

   




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice: Global configuration values?

2005-12-05 Thread Eelco Hillenius
Yep. You can get the application from several places, like
Component.getApplication (and note that Pages are Components too) or
as a falltrhough, when in a request, you can always call
Application.get() (slightly less efficient though, as that is done by
threadlocal map lookup). And you have to cast the application object
to your specific class of course.

Eelco


 
 I looked into that, but are these values accessible from every page?



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best practice: Global configuration values?

2005-12-05 Thread Johannes Fahrenkrug

Eelco Hillenius wrote:


Yep. You can get the application from several places, like
Component.getApplication (and note that Pages are Components too) or
as a falltrhough, when in a request, you can always call
Application.get() (slightly less efficient though, as that is done by
threadlocal map lookup). And you have to cast the application object
to your specific class of course.

Eelco

 


Great! That sounds like a winner! Thank you!

- Johannes.

 


I looked into that, but are these values accessible from every page?

   




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user