if i want an AjaxLink to be disabled the instant a user clicks it so as to prevent multiple clicks by users, what will be the cleanest way to implement this


On 9/13/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
If you attach Links to other elements, like span, an onclick handler
is generated. If you want to do the same, you should make a custom
component that implements ILinkListener and override onComponentTag
like this (simplified):

        protected final void onComponentTag(final ComponentTag tag) {
                super.onComponentTag(tag);
                CharSequence url = "">                if (!isEnabled()) {
                        tag.remove("onclick");
                }
                else {
                         tag.put("onclick", "location.href='';");
                }
        }

Eelco

On 9/13/06, Frank Bille <[EMAIL PROTECTED] > wrote:
> Do you mean how to disable the link so it's not a link anymore?
>
> Link.setEnabled(false).
>
> The <a>something</a> is not valid html as far as I remember.
>
> Frank
>
>
>
>  On 9/13/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
>
>
> How du I make a Link Component (an hyperlink) render as
>
> <a>Link Name</a> without the href att
>
>
>
> -------------------------------------------------------------------------
> 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
>
>
>

-------------------------------------------------------------------------
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



--
"It takes insanity to drive in sanity" - Me

Aladejebi Ayodeji A.,
DabarObjects Solutions
Email: [EMAIL PROTECTED]
Mobile: +234 803 589 1780
Web: www.dabarobjects.com

Community:
www.cowblock.net
-------------------------------------------------------------------------
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

Reply via email to