Hi,
I have a BookmarkablePageLink that I set parameters for it:
...
String configurationName = "conf";
ConfigurastionUser firstEntity = getFirstEntity();
PageParameters parameters = new PageParameters();
parameters.add("configurationName", configurationName);
parameters.add("firstEntity", firstEntity);
Link link = new BookmarkablePageLink("link", LinkAttributesPage.class,
parameters);
...

And in LinkAttributesPage, I have:
public LinkAttributesPage(PageParameters parameters) {
  String confName = parameters.getString("configurationName");
  ConfigurationUser user = parameters.get("firstEntity");
  ...
}

ConfigurationUser class is Serializable.
I get a ClassCastException for the firstEntity.
We use Wicket 1.3.6
Is this OK?

My solution is to have a constructor for that page that accepts the correct
parameters, but I want to know if it's a bug in the PagePArameters or if I
am misusing it.

Thanks

Eyal Golan
[email protected]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary

Reply via email to