this should move to the core.
We have needed this now more then once.

johan


On 10/5/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:
                if (DEVELOPMENT.equalsIgnoreCase (configurationType))
                {
                        log.info("You are in DEVELOPMENT mode");
                        getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND);
                        getDebugSettings().setComponentUseCheck(true);
                        getDebugSettings().setSerializeSessionAttributes(true);
                        getMarkupSettings().setStripWicketTags(false);
                        getExceptionSettings().setUnexpectedExceptionDisplay(
                                        UnexpectedExceptionDisplay.SHOW_EXCEPTION_PAGE);
                        getAjaxSettings().setAjaxDebugModeEnabled(true);
                }
                else if (DEPLOYMENT.equalsIgnoreCase (configurationType))
                {
                        getResourceSettings().setResourcePollFrequency(null);
                        getDebugSettings().setComponentUseCheck(false);
                        getDebugSettings().setSerializeSessionAttributes(false);
                        getMarkupSettings().setStripWicketTags(true);
                        getExceptionSettings().setUnexpectedExceptionDisplay(
                                        UnexpectedExceptionDisplay.SHOW_INTERNAL_ERROR_PAGE );
                        getAjaxSettings().setAjaxDebugModeEnabled(false);
                }

There is no flag telling you in which mode you are. If you want a flag
subclass Application.configure() store the "configurationType"
parameter in a variable.

Juergen


On 10/4/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How do I find out in which mode Wicket is running (development/production)?
>
> Regards,
>     Erik.
>
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> 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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to