Re: [Wicket-user] cannot disable AjaxLink
Okay. Thanks. Erik van Oosten wrote: > > Looking in the code of AjaxLink I see no special code for > enabled/disabled state. > > If it fits what you need, you could try AjaxFallBackLink. > Otherwise try to extend AjaxLink and override the method > renderComponentTag in which you remove the onclick attribute from the > tag. (Don't forget to call super.renderComponentTag.) > > Regards, > Erik. > > De Soca schreef: >> Hello, >> >> just wondering if this a bug or a feature. >> >> Using one of the AjaxLink samples included in the Wicket examples, it >> seems >> that the setEnabled flag is ignored for AjaxLinks. >> >> i.e ajaxLink.setEnabled(false); >> >> Seems to have no effect. >> >> Is this a feature or defect etc? >> >> Thanks. >> > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.com/ > > > - > 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 > > -- View this message in context: http://www.nabble.com/cannot-disable-AjaxLink-tf2722626.html#a7598967 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] cannot disable AjaxLink
Yeah, this is a known issue. It is fixed in 2.0, the fix will probably be backported to 1.x at some point. -Matej De Soca wrote: > Hello, > > just wondering if this a bug or a feature. > > Using one of the AjaxLink samples included in the Wicket examples, it seems > that the setEnabled flag is ignored for AjaxLinks. > > i.e ajaxLink.setEnabled(false); > > Seems to have no effect. > > Is this a feature or defect etc? > > Thanks. - 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
Re: [Wicket-user] cannot disable AjaxLink
Looking in the code of AjaxLink I see no special code for enabled/disabled state. If it fits what you need, you could try AjaxFallBackLink. Otherwise try to extend AjaxLink and override the method renderComponentTag in which you remove the onclick attribute from the tag. (Don't forget to call super.renderComponentTag.) Regards, Erik. De Soca schreef: > Hello, > > just wondering if this a bug or a feature. > > Using one of the AjaxLink samples included in the Wicket examples, it seems > that the setEnabled flag is ignored for AjaxLinks. > > i.e ajaxLink.setEnabled(false); > > Seems to have no effect. > > Is this a feature or defect etc? > > Thanks. > -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - 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