Hi, Al,

> Construct your page with:
> public MyPage(PageParams params) {

Yes, I already do this in all my pages...

> You can then go:
> String[] colors = params.getStringArray("color");
> (Which obviously returns the whole array.)
> Or:
> String color = params.getString("color");
> (Which just returns the first (likely the only) instance.)

Unfortunatelly, I have to confirm you this is actually not true in
1.2.6 (I guess the link provided by Jean-Baptiste Quenot is explaining
it all).

In my case I just transfer independent key-values (never repeated),
and when recovering them at the parameters receiver-page, I have to
cast to String[], and all of them are of the size 1. So, really,
what's happening inside is a String to String[1] conversion. Which is
not actually following the mentioned spec.

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