This is Wicket's notorious auto enable "feature". Many people get confused by it. See Link.setAutoEnable(). +)

Cheers,
Gili

Stefan Lindner wrote:
I have a page class named MyPage that extends WebPage. On this web page
I place a table with links inside. The links are created like this:

     BookmarkablePageLink idLink = new BookmarkablePageLink("idLink",
MyPage.class);

This is taken from Wicket example "Standard, creating dynamic links".
The difference to the exampe is, that I don't link to another Webpage
class (page3 in the example). I try to link to the WebPage class, that
creates the table.
This does not work. In the resulting table no link is displayed. The
corresponding table cell contains the link's reference name in italic
style.
When I make a copy of my MyPage.java und MyPage.html files and replace
the above code with

     BookmarkablePageLink idLink = new BookmarkablePageLink("idLink",
CopyOfMyPage.class);

everything works.
Why is it not possible to link from a WebPage to the same WebPage class?
Stefan Lindner
------------------------------------------------------------------------
--
Visionet GmbH, Am Weichselgarten 7, 91058 Erlangen
Tel.: (09131)691-230, FAX: (09131)691-111
E-Mail: mailto:[EMAIL PROTECTED], Internet:
http://www.visionet.de


PS.
I did not try this with Wicket 1.0 or Wicket 1.1beta1


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


--
http://www.desktopbeautifier.com/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to