when a url is invoked wicket doesnt know its a "link" component. if we did
it this way we would have to build in knowledge of all components into
wicket, and that would throw out custom components out of the window. this
way its nice and generic, take this object and invoke this listener
interface on it.
and yes, the other reason is that some components have two or more listener
interfaces.
-igor
On 2/9/07, Swaroop Belur <[EMAIL PROTECTED]> wrote:
Hello All
This is w.r.t url generated for links. I was looking at the wicket
examples page and did a view source for
a link. One link had this URL :
http://localhost:8080/wicket-examples/linkomatic;jsessionid=7hp5u436aji7?wicket:interface=:0:actionLink::ILinkListener
My doubt is regarding ILinkListener. I was wondering whether it is
absolutely necessary to have it in the URL.
My reasoning is this - since wicket can find out the type of component by
looking at component id which in this case
happens to be actionLink. So if wicket can find out that it is a link
component , then it can automcatically
call the onClick() method of this link component.
Was the listener included because there is a possibility of more than one
listener being implemented by the
actionLink component and hence wicket needs to know which listener's
method shud get triggered. ?
Regards
swaroop belur
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user