Re: [Wicket-user] Deployment / Development mode

2006-07-21 Thread Johan Compagner
ha!That is just pretty much a complete copy of what is inside Application.init()But still not complete... That is the problem.. It is very simple for wicket to store somewhere what eventuall was configured.
johanOn 7/21/06, Maurice Marrink <[EMAIL PROTECTED]> wrote:
Johan, I don't know what you have been drinking, but it must havecontained alot of alcohol ;).To determine at runtime if the application is running in developmentmode we use the following code in Application.init
. Note that thiscode runs before super.init(), unfortunately we cannot place this codein the constructor because it uses some field that have not been setat that time.WicketServlet wicketServlet = getWicketServlet();
String configuration =wicketServlet.getInitParameter(Application.CONFIGURATION);if (configuration == null)configuration =wicketServlet.getServletContext().getInitParameter(Application.CONFIGURATION);
development = configuration != null &&configuration.equals(Application.DEVELOPMENT);development is a global boolean field we added so we can now ask theapplication at anytime if we are in development mode.
This code btw came from Johan.On 7/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:> The problem is that you want to know at code time>> This is also something Maurice wanted to know. He does it do now by checking
> another value> that he knows is there in development but not in deployment.>> johan On 7/21/06, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:> > I think it is logged in the log4j log.> >> > Martijn> >> > On 7/21/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:> > > This can't be done that easily at the moment.> > > If you don't alter this:> > > getAjaxSettings().setAjaxDebugModeEnabled(true);> > > yourself then you could ask for the ajax debug model enable property..
> > >> > > We should have an settings.getModel() i guess would be nice.> > > Can you make a RFE for this?> > >> > > johan> > >> > >
> > >> > > On 7/21/06, Paolo Di Tommaso < [EMAIL PROTECTED]> wrote:> > > >> > >> > > How to know if an application is in Deployment or Development mode?
> > >> > > Thank for helping.> > >> > > - Paolo> > >> > >> > >> -
> > > Take Surveys. Earn Cash. Influence the Future of IT> > > Join SourceForge.net's Techsay panel and you'll get the chance to share> your> > > opinions on IT & business topics through brief surveys -- and earn cash
> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > >
> > > ___> > > Wicket-user mailing list> > >  Wicket-user@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user> > >> > >> > >> > >
> > >> -> > > Take Surveys. Earn Cash. Influence the Future of IT> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your> > > opinions on IT & business topics through brief surveys -- and earn cash> > >> 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > >> > > ___> > > Wicket-user mailing list> > > 
Wicket-user@lists.sourceforge.net> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >> > >> > >> >> >> > --> > Download Wicket 1.2 now! Write Ajax applications without touching> _javascript_!> > -- 
http://wicketframework.org> >> >> -> > Take Surveys. Earn Cash. Influence the Future of IT> > Join 
SourceForge.net's Techsay panel and you'll get the chance to share> your> > opinions on IT & business topics through brief surveys -- and earn cash> >> 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > ___> > Wicket-user mailing list> > 
Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user>  -
> Take Surveys. Earn Cash. Influence the Future of IT> Join SourceForge.net's Techsay panel and you'll get the chance to share your> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>> ___
> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>>-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourc

Re: [Wicket-user] Deployment / Development mode

2006-07-21 Thread Maurice Marrink
Johan, I don't know what you have been drinking, but it must have
contained alot of alcohol ;).

To determine at runtime if the application is running in development
mode we use the following code in Application.init. Note that this
code runs before super.init(), unfortunately we cannot place this code
in the constructor because it uses some field that have not been set
at that time.

WicketServlet wicketServlet = getWicketServlet();
String configuration =
wicketServlet.getInitParameter(Application.CONFIGURATION);
if (configuration == null)
configuration =
wicketServlet.getServletContext().getInitParameter(Application.CONFIGURATION);
development = configuration != null &&
configuration.equals(Application.DEVELOPMENT);

development is a global boolean field we added so we can now ask the
application at anytime if we are in development mode.
This code btw came from Johan.

On 7/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> The problem is that you want to know at code time
>
> This is also something Maurice wanted to know. He does it do now by checking
> another value
> that he knows is there in development but not in deployment.
>
> johan
>
>
>
> On 7/21/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > I think it is logged in the log4j log.
> >
> > Martijn
> >
> > On 7/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > This can't be done that easily at the moment.
> > > If you don't alter this:
> > > getAjaxSettings().setAjaxDebugModeEnabled(true);
> > > yourself then you could ask for the ajax debug model enable property..
> > >
> > > We should have an settings.getModel() i guess would be nice.
> > > Can you make a RFE for this?
> > >
> > > johan
> > >
> > >
> > >
> > > On 7/21/06, Paolo Di Tommaso < [EMAIL PROTECTED]> wrote:
> > > >
> > >
> > > How to know if an application is in Deployment or Development mode?
> > >
> > > Thank for helping.
> > >
> > > - Paolo
> > >
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys -- and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > >  Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys -- and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> > --
> > Download Wicket 1.2 now! Write Ajax applications without touching
> JavaScript!
> > -- http://wicketframework.org
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys -- and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Deployment / Development mode

2006-07-21 Thread Johan Compagner
The problem is that you want to know at code timeThis is also something Maurice wanted to know. He does it do now by checking another valuethat he knows is there in development but not in deployment.johan
On 7/21/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
I think it is logged in the log4j log.MartijnOn 7/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:> This can't be done that easily at the moment.
> If you don't alter this:> getAjaxSettings().setAjaxDebugModeEnabled(true);> yourself then you could ask for the ajax debug model enable property..>> We should have an settings.getModel() i guess would be nice.
> Can you make a RFE for this?>> johan On 7/21/06, Paolo Di Tommaso < [EMAIL PROTECTED]> wrote:> >
>> How to know if an application is in Deployment or Development mode?>> Thank for helping.>> - Paolo>>> -
> Take Surveys. Earn Cash. Influence the Future of IT> Join SourceForge.net's Techsay panel and you'll get the chance to share your> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>> ___
> Wicket-user mailing list>  Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
> -> Take Surveys. Earn Cash. Influence the Future of IT> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>>--Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Deployment / Development mode

2006-07-21 Thread Martijn Dashorst
I think it is logged in the log4j log.

Martijn

On 7/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> This can't be done that easily at the moment.
> If you don't alter this:
> getAjaxSettings().setAjaxDebugModeEnabled(true);
> yourself then you could ask for the ajax debug model enable property..
>
> We should have an settings.getModel() i guess would be nice.
> Can you make a RFE for this?
>
> johan
>
>
>
> On 7/21/06, Paolo Di Tommaso < [EMAIL PROTECTED]> wrote:
> >
>
> How to know if an application is in Deployment or Development mode?
>
> Thank for helping.
>
> - Paolo
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
>  Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Deployment / Development mode

2006-07-21 Thread Eelco Hillenius
In web.xml:



  configuration
  development


This is used in WebApplication.internalInit. Alternatively, can can
call Application.configure in your own Application's init method.


btw, the name spacing isn't great. Maybe we should consider
introducing some name space, like wicket.configuration or something
like that.

Eelco


On 7/21/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> How to know if an application is in Deployment or Development mode?
>
> Thank for helping.
>
> - Paolo
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Deployment / Development mode

2006-07-21 Thread Johan Compagner
This can't be done that easily at the moment. If you don't alter this: getAjaxSettings().setAjaxDebugModeEnabled(true);yourself then you could ask for the ajax debug model enable property..We should have an 
settings.getModel() i guess would be nice.Can you make a RFE for this?johanOn 7/21/06, Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:How to know if an application is in Deployment or Development mode? 
Thank for helping. - Paolo

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Deployment / Development mode

2006-07-21 Thread Paolo Di Tommaso
How to know if an application is in Deployment or Development mode? Thank for helping. - Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user