No problem.. Okay so you should do a quickstart (just use the maven wicket quickstart archetype) and make it available i'll take a peek at it. I find in many cases just doing the quickstart makes it obvious where I've made an error.

wenm wrote:
Hi,
I use wicket authorization annotations. So even though the page is mounted,
user can't access the page without login.
Great so you do intercept it:)
 Both menu page and payment page
should be reachable after login in.

The schedule is not that tight yet, but thanks for your kind help.
No problem happy to help.


Nino.Martinez wrote:
General how do you intercept pages when unauthorized? I saw that you mounted payment.class which only should be reachable when logged in right?

Nothing here stands out btw, a simple quickstart would be nice..

And if it's something in a hurry since I live in dk(copenhagen area) and are consultant I could come by and assist you if wanted?

replying inline for some of your stuff.

wenm wrote:
Hi I have tried to upgrade to 1.3.4, but it doesn't help.

WebApplication
 protected void init() {
        super.init();
getRequestCycleSettings().setResponseRequestEncoding("ISO-8859-1");
        getResourceSettings().setThrowExceptionOnMissingResource(false);
        mount(new HybridUrlCodingStrategy("/payment", Payment.class));
        mount(new HybridUrlCodingStrategy("/login", Login.class));
        mount(new HybridUrlCodingStrategy("/menu", Menu.class));
   }
Above looks fine...Although I think the resource and request stuff are default, cant remember.
1)Login Class
 class LoginForm extends Form {
        public LoginForm(String id) {
            super(id);
        }

        public void onSubmit() {
            String userId = getUsername();
            String password = getPassword();
            if (!session.authenticate(userId, password)) {
// authenticate fail Login returnLogin = new Login(); returnLogin.setErrorMsg(session.getLoginResponse().getReturnMessage());
                int errorCode =
session.getLoginResponse().getReturnCode();
                String errorKey =
session.getLoginResponse().getReturnKey();
                setResponsePage(returnLogin);
im not sure why you do above? I guess an error("not authenticated") should do?
             } else {
                // authenticate success
                setResponsePage(Menu.class);
}
        }
    }

2)Menu Class
add(new BookmarkablePageLink("payment-link", Payment.class));

3)Payment Class



Hi

Sound's really wierd, like you are trying to post some stuff or something.. Could you show us some code..?

And you should really upgrade to 1.3.4 since there were a lot of bug fixing going on from 1.3.1 to 1.3.4

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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

Reply via email to