Ok, it looks like it's a bug that's been fixed in 5.2. In 5.1.0.5 the findMeta method used is only looking at the annotation and not the defaults...
Josh On Mon, Jun 14, 2010 at 10:37 AM, Juan E. Maya <[email protected]> wrote: > Hi Josh, > > Josh, what i am trying to do is to secure a group of pages that exist > under a directory. > > I have the following in my Module: > > public void contributeMetaDataLocator(MappedConfiguration<String, > String> configuration) { > configuration.add("client:" + MetaDataConstants.SECURE_PAGE, "true"); > } > > a test page exists on: .../web/pages/client/Summary.java but i don't > get any redirection when i enter to the page. > The application is configured to work in Production mode. > > That's basically all the configuration. > > Thanks for your help! > > > On Mon, Jun 14, 2010 at 7:30 PM, Josh Canfield <[email protected]> wrote: >> Can you give more detail about what you are doing? What did you put in >> your AppModule, what are the paths that you are trying to secure? >> >> Thanks. >> >> On Mon, Jun 14, 2010 at 10:18 AM, Juan E. Maya <[email protected]> wrote: >>> Hi, >>> i am trying to secure multiple pages by contributing to the >>> MetaDataLocator as explained here: >>> http://tapestry.apache.org/tapestry5.1/guide/secure.html but the app >>> always uses the default value. >>> >>> Checking the source code of MetaDataLocatorImpl it seems that the >>> value would always use the default value. >>> >>> String value = valueLocator.valueForKey(key); //this is always null >>> if (value == null) >>> { >>> value = symbolSource.valueForSymbol(key); //Here the default value >>> (false) it's obtained >>> } >>> else { >>> value = symbolSource.expandSymbols(value); >>> } >>> >>> Am i missing something during the configuration? >>> >>> Thanks for your help >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> >> -- >> -- >> 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: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- -- 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: [email protected] For additional commands, e-mail: [email protected]
