Are you sure that you are not setting the PRODUCTION_MODE symbol to false somewhere else? Try searching your codebase. Are you using some third-party module that is setting it to false?

Uli

On 30.04.2010 05:53, Raul Raja Martinez wrote:
@Inject
@Symbol(SymbolConstants.PRODUCTION_MODE)
private boolean production;

This works fine, the problem is that I can only set Production mode to
true if I explicitly set a system property... see below...

public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration) {
         configuration.add(SymbolConstants.PRODUCTION_MODE, "true");
//this has no effect
         System.setProperty(SymbolConstants.PRODUCTION_MODE,"true");
//this works fine
}

2010/4/28 Josh Canfield<joshcanfi...@gmail.com>:
when querying the symbol value it's wrong.

How are you getting the value?

On Wed, Apr 28, 2010 at 12:20 PM, Raul Raja Martinez<raulr...@gmail.com>  wrote:
Already doing that and it seems to take no effect, I can see the
method is getting invoked and I'm setting the value to "true" but then
when querying the symbol value it's wrong.
Only by calling System.setProperty(SymbolConstants.PRODUCTION_MODE,
"true") seems to work

2010/4/27 Igor Drobiazko<igor.drobia...@gmail.com>:
You should contribute to the configuration of ApplicationDefaults to define
symbol values or override Tapestry's values for production:

    public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration)
    {
        configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,fr,de");
        configuration.add(SymbolConstants.PRODUCTION_MODE, "true");
    }

To override these values in dev env you should set VM arguments in your IDE.

-Dtapestry.production-mode=false

On Wed, Apr 28, 2010 at 6:49 AM, Raul Raja Martinez<raulr...@gmail.com>wrote:

Trying to set tapestry.production-mode=true on latest snapshot, tried
as filter context param, app module override and env variable and it's
value is always set to false
Anybody experience anything similar or seeing this behavior?
What is the recommended strategy to keep dev and prod with different
values for tapestry.production-mode,

thanks in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




--
Best regards,

Igor Drobiazko
http://tapestry5.de/blog




--
Raul Raja

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





--
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to