Hi all,
I wanted to know what's the best way to use Links (PageLinks,
BookmarkablePageLinks).
In the beginning, I was using BookmarkablePageLink's and converting
everything to and from Strings. That obviously was flawed, as I was using
string names and passing them back and forth (lost strong-typing, occasionally
forgot one parameter, or mistyped the name of it). It also made me reload
objects from the database even though I had them handy on the calling class.
Then I tried using PageLink's, passing a "new XXXPage(whateverparameter)" in
the constructor. That didn't work either, as pages have links back and forth,
leading to stackoverflows.
Then I moved one step up in the object hierarchy and started using Link's,
but it seems such red tape for each link having to write:
add(new Link("cancelLink") {
public void onClick() { setResponsePage(new
EditProviderPage(provider)); };
});
Any suggestions?
[]s Gus
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user