Re: [Wicket-user] HyperLink

2006-09-18 Thread Ayodeji Aladejebi
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

Re: [Wicket-user] HyperLink

2006-09-18 Thread Igor Vaynberg
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

Re: [Wicket-user] HyperLink

2006-09-18 Thread Ayodeji Aladejebi
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

Re: [Wicket-user] HyperLink

2006-09-18 Thread Igor Vaynberg
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

[Wicket-user] HyperLink

2006-09-13 Thread Ayodeji Aladejebi
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

Re: [Wicket-user] HyperLink

2006-09-13 Thread Frank Bille
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

Re: [Wicket-user] HyperLink

2006-09-13 Thread Eelco Hillenius
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) {

[Wicket-user] HyperLink Text

2005-08-19 Thread Dipu
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

RE: [Wicket-user] HyperLink Text

2005-08-19 Thread Eelco Hillenius
-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

Re: [Wicket-user] HyperLink Text

2005-08-19 Thread David Liebeherr
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 ?

Re: [Wicket-user] HyperLink Text

2005-08-19 Thread Martijn Dashorst
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

Re: [Wicket-user] HyperLink Text

2005-08-19 Thread Johan Compagner
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

Re: [Wicket-user] HyperLink Text

2005-08-19 Thread Dipu
] 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

RE: [Wicket-user] HyperLink Text

2005-08-19 Thread Eelco Hillenius
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

Re: [Wicket-user] HyperLink Text

2005-08-19 Thread David Liebeherr
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

Re: [Wicket-user] HyperLink Text

2005-08-19 Thread Johan Compagner
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

Re: [Wicket-user] HyperLink Text

2005-08-19 Thread Juergen Donnerstag
@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