Hi, Eelco,

I did a short example, a simple (without much complexity, as the
original page has)  page2page flow by bookmarkable link, passing 2
parameters, but it's working the right way!? it's not converting
String to String[] parameters.

Strange behaviour...  because the phenomenon is actually happening in
the original page I developed at work...

May I send you the whole original page? but I am afraid it won't be
easy in time for me to provide you a unit test....

Saludos!

On 5/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Yep. Something like that. Manu, could you please provide me with a
> unit test showing your problem? I'd be happy to fix if I have one. I'm
> currently waiting on someone else sending us a test for a related
> problem.
>
> Cheers!
>
> Eelco
>
> On 5/8/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> > i don't know exactly, but i think the change was made because returning a
> > String[] is how it's in the spec.
> > please correct me if i'm wrong or have the wrong conversation in mind.
> >
> > gerolf
> >
> >
> >
> >  On 5/8/07, manu <[EMAIL PROTECTED]> wrote:
> > > 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
> > > [email protected]
> > > 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
> > [email protected]
> > 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to