Re: Disable @Secure testing with PageTester

2011-09-30 Thread albaeck
Open-source is the power! :) In test module: public static void contributeFactoryDefaults(MappedConfiguration configuration) { configuration.override(SymbolConstants.SECURE_ENABLED, "false"); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Se

Disable @Secure testing with PageTester

2011-09-30 Thread albaeck
Hi all, I know that is is possible to turn @Secure off by apestry.secure-enabled=false or setting mode to development. But how to disable it when testing? I have @Secured page and submitForm throws: java.lang.RuntimeException: Path 'https://localhost/foo/action/1' does not start with context path

Re: Page isn't rendered after redirect from onActivate

2011-09-26 Thread albaeck
Thanks for reply! If I'm under http (not https and having @Secure removed) setupRender() of all page components are invoked. No exceptions. Page is not rendered though. I use tomcat-6.0.33, no ballancer, etc. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Page-isn-t-ren

Re: Page isn't rendered after redirect from onActivate

2011-09-26 Thread albaeck
Hi again, more details below... I suppose that all comuniucation within JS->Handler->redirect is done via https. So, page (Par1Page, I'm going to redirect to) is marked as @Secure. Handler is also marked. Interesting things are: 1. Redirect works as expected when handler is invoked through a brows

Page isn't rendered after redirect from onActivate

2011-09-25 Thread albaeck
Hi all. I'm totally new to Tapestry and would like someone to shed some light on what's happening: I'm sending POST via https and would like some handler (like a page without actual template) to handle this request and redirect/propagate to appropriate pages (they are valid and renders just fine)