Geoff Callender wrote:
Bernard Lange <bernard <at> man.poznan.pl> writes:

Hello Geoff,

Thanks, Bernard. What you've said sounds very logical, but I can't recreate the situation described. I tried 3 different browsers but in each case the Refresh button produced a GET and not a POST. Can you tell me more?

I don't think the browser is significant, anyway it works like that on Firefox , Opera (opera does not ask me if I want to repost data it just do so) and IE.

We are talkng about the JumpStart 0.2 version. Login page contains a form which renders as

<div id="loginpage" align="center">
 <br/>
        <h1>Tapestry JumpStart</h1>
        <h2>Version 0.2</h2>
        <br/> <br/> <br/>
        <form method="post" action="/jumpstart/app" name="Form" id="Form">
...
</form>

Note that, the submission method is "post". What I do is excactly:
- login as admin with admin password. (Hi! screan appears)
- click 'logout' (app returns to login screen).
- then I hit browser back button. (Hi! screen apears).
- Now - I hit 'Refresh' browser button. Browser asks me whether I want to resend POST data (click OK).

Thats all. I see 'Hi' screen again and I'm logged in. (Can use reference and security menu).

Btw. When you log out and hit back (to Hi! screen) and then try to click on anything (logout, reference, security) you get PageNotFoundException

"Page 'web/login/LoginPage' not found in application namespace.
Stack Trace:
org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(PageSpecificationResolverImpl.java:140)
$PageSpecificationResolver_10c44bd9707.resolve($PageSpecificationResolver_10c44bd9707.java)
$PageSpecificationResolver_10c44bd9708.resolve($PageSpecificationResolver_10c44bd9708.java)
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:115)
    * $IPageSource_10c44bd9671.getPage($IPageSource_10c44bd9671.java)
org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:268)
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:251)
jumpstart.web.base.BaseProtectedPage.pageValidate(BaseProtectedPage.java:38)
org.apache.tapestry.AbstractPage.firePageValidate(AbstractPage.java:585)
    * org.apache.tapestry.AbstractPage.validate(AbstractPage.java:307)
org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:625)

I believe you're doing some validation in pageValidate() whether user is logged and redirect to Login page if not, but that page cannot be found (wrong login page name given in Redirect?)


Hope that helps,

Geoff

Bernard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to