> >  I tried to add some nice URLs by adding the following to my
> >  application class:
> >
> > public void init()
> > {
> >       mountBookmarkablePage("/home", HomePage.class);
> >       mountBookmarkablePage("/location", LocationPage.class); }

My bad!!!

I accidentally had marked one the page classes as "Persistent" in the
Javelin tool (which obviously should only be done for domain model
classes ;) ) so it was automatically generating a .jdo metafile for the
class which meant that JDO enhanced the class. I don't know why this
caused a problem for Wicket but it's not really an issue as no UI class
should ever need to be enhanced by JDO because they should be only ever
access and manipulate domain model objects via accessor and manipulator
methods anyway - and thus don't need to be persistence-capable nor
persistence-aware and hence not enhanced.

Once I turned persistence off for my UI classes everything worked
perfectly.

Oh yeah, my URLs look a lot nicer now... after I fixed my bad.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to