Dear Sirs,

I updated to Wicket 1.2.6 and I have found the following behavior when
using BookmarkablePageLink (which was not happening before in Wicket
1.2.5). The code example is:

private class Link1 extends BookmarkablePageLink {
                private static final long serialVersionUID = 1L;
                public Link1(String linkId, String labelId, String labelValue,
PageParameters params) {
                        super(linkId, Page1.class, params);                     
                        this.add(new Label(labelId, labelValue));
                }
        }

When clicking on this link the error on Page1 (target page that
recovers "params") is:

Caused by: java.lang.ClassCastException

After debugging it, I found that the page parameters (Strings added to
"params") were converted to String[1], id est, all arrays, when
creating the BookmarkablePageLink. So it seems that there inside
happens this String2String[] transformation.

To jump over this issue, for the moment, I had to switch to standard
Link class, avoiding the use of BookmarkablePageLink.

What's the solution to this?

Thanks ;)

-------------------------------------------------------------------------
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