Hi

Actually I had 4 different versions :-)

But I removed them all, made a recompile and tried again. Same result.

The object from getSession() is a MySession object.

I will try and make a quickstart zipfile. and attach it.

/Flemming

On 6/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

> I have been troubled with a problem that is very strange. Finally I
solved
> it, but I am unsure whether I am doing something wrong.
>
> I have a custom session implementation MySesission extends WebSession.
>
> On my first page I have a popuplink opening a normal popup-page. In that
> popuppage I classcast the (MySession)getSession(), but here the fun
begins.
>
> If I open the popup like this
>
> public void onClick() {
>  "getRequestCycle().setResponsePage(new
> ChooseProductPage());"     // it works like a charm
> }
>
> but if I  do it like this
> public void onClick() {
>  getRequestCycle().setResponsePage(ChooseProductPage.class
> );
> }
>
> I get a classcastexception in the line with the (MySession)getSession()
>
> Is this something I should make a jira of or am I missing something :-)
>
>  As far as I can tell from the stack trace it seems to me that there
might
> be a classloading problem.
> Btw I am running wicket 1.2.6, java 1.5  and OSX

Interesting. So what session object does it return? Did you check
whether you have duplicates in your class path?

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to