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 handleris generated. If you
hide the button via _javascript_ and show an indicator instead. when the request completes show the button again and hide the indicator.you can use an ajaxcalldecorator to accomplish all this, see indicatingajaxlink for some hints.
-IgorOn 9/18/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
if i
See igor,in the decorateScript method of the AjaxCallDecoratordecorateScript(java.lang.CharSequence script)what is the script parameter forOn 9/18/06,
Igor Vaynberg [EMAIL PROTECTED] wrote:
hide the button via _javascript_ and show an indicator instead. when the request completes show the button
well, its a decorator so that is the script you are going to be decorating :)if this is the first decorator in chain then it is the original script that wouldve been used.-Igor
On 9/18/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
See igor,in the decorateScript method of the
How du I make a Link Component (an hyperlink) render as aLink 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
Do you mean how to disable the link so it's not a link anymore?Link.setEnabled(false).The asomething/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 aLink Name/a without the href att
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) {
Hi,
Is there any way i can dynamically specfy the
HyperLink text ?
Right now if i have a link the markup look like
a wicket:id = "hlink" href="" Go to my Page/a
I would like to
replace the "Go to my Page" link text with some dynamic
content.
I tried adding a label like
thisa wicket:id
-user] HyperLink Text
Hi,
Is there any way i can dynamically specfy the HyperLink text ?
Right now if i have a link the markup look like
a wicket:id = hlink href= Go to my Page/a
I would like to replace
Link link = new Link(hlink) {
public void onClick() {
...
}
};
link.add(new Label(linkLabel, your text));
add(link)
should work.
I guess you simply forget that the linkLabel is inside the hlink...
Cu,
Dave
Dipu wrote:
Hi,
Is there any way i can dynamically specfy the HyperLink text ?
The corresponding Java code would be:
Link link = new Link(hlink) {protected void onClick() {} };
link.add(new Label(linkLabel, Hello World!));
add(link);
Or to be specific: you should add the label to the link, and the link to
the page (or parent component).
Martijn
Dipu wrote:
Hi,
Is
that label should work (like others are pointing out.
But we should simplify this.
a wicket:id = hlink href= Go to my Page/a
Link link = new Link('hlink',new Model(this is my text));
why the extra span between them, mostly the model of the link isn't even
used.
An extra link class that
] HyperLink Text
That should work. Did you add the Label to the Link? Any error message?
Eelco
-Oorspronkelijk bericht-
Van: Dipu [mailto:[EMAIL PROTECTED]
Verzonden: vr 19-8-2005 15:08
Aan: wicket-user@lists.sourceforge.net
CC:
Onderwerp: [Wicket-user] HyperLink Text
Hi,
Is there any
Verzonden: vr 19-8-2005 15:27
Aan: wicket-user@lists.sourceforge.net
CC:
Onderwerp: Re: [Wicket-user] HyperLink Text
that label should work (like others are pointing out.
But we should simplify this.
a wicket:id
I think aspan.../span/a is better than just a.../a sice it
is clearer to (at least to me) to have a link which contains a label
than a link which is also a label.
So i think the way it's now is pretty nice and clear.
Cu,
Dave
Johan Compagner wrote:
that label should work (like others are
Verzonden: vr 19-8-2005 15:27
Aan: wicket-user@lists.sourceforge.net
CC:
Onderwerp: Re: [Wicket-user] HyperLink Text
that label should work (like others are pointing out.
But we should simplify this.
a wicket:id = hlink href= Go to my
@lists.sourceforge.net
CC:
Onderwerp: Re: [Wicket-user] HyperLink Text
that label should work (like others are pointing out.
But we should simplify this.
a wicket:id = hlink href= Go to my Page/a
Link link = new Link('hlink',new Model(this is my
17 matches
Mail list logo