Re: [Wicket-user] cannot disable AjaxLink

2006-11-29 Thread Matej Knopp
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot disable AjaxLink

2006-11-29 Thread De Soca

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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] cannot disable AjaxLink

2006-11-28 Thread De Soca

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.
-- 
View this message in context: 
http://www.nabble.com/cannot-disable-AjaxLink-tf2722626.html#a7592877
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot disable AjaxLink

2006-11-28 Thread Erik van Oosten
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user