hi,
forgive me for re-posting this, but it seems my code snippets in <raw>
tags are invisible in email ..
I have a similar question, not sure if quite the same though. The pageflow
is like this:
(1) my app's homepage goes to a page with a loginform, SignInPage. On
logging in the user gets to a page SignedInPage.
(2) SignedInPage has a logout form, which logs out the user and should go
back to SignInPage.
(3) any other URL should be accepted and go to a page MainPage, which
detects which URL path was used by checking PageParameters and could take
action depending on its value.
What is working fine are (1) and (3). However on the SignedInPage, when
submitting the logout form, an exception occurs indicating that it's trying
to find the logout form on MainPage:
Last cause: Could not find component 'logoutform' on page 'class
my.package.page.MainPage
Of course it isn't on MainPage, the logoutform is on SignedInPage.
Can anyone tell me how to achieve a setup like this ? My current code is
like this :
In my Application init() I have
mountPage("/${username}", MainPage.class);
mountPage("/secure", SignedInPage.class);
mountPage("/", SignInPage.class);
and I have also this method
public Class getHomePage() {
return SignInPage.class;
}
The logoutform on SignedInPage has this in onSubmit() :
setResponsePage(SigninPage.class);
Thanks in advance for your response,
kind regards
Heikki Doeleman
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Mounting-external-pages-to-root-tp3890756p3894513.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]