On 4/23/07, shumbola <[EMAIL PROTECTED]> wrote:
>
> I wonder what's the difference between Link and PageLink in the following
> situation:
> -use Link and in onClick() handler use setResponsePage(new MyPage(myParam));
> -use PageLink and provide getPage() and getPageIdentity() functions and
> inside getPage() return new MyPage(myParam);

In principle not much. The only difference (I can remember) is that
the PageIdentity allows Wicket to disable the link when it points to
the same page. You know: those disabled links you get when you use
<wicket:link>

Typically you're better off using Link, as PageLink has a dark side
(which is why we moved it to extensions in 1.3).

Martijn

-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to