Re: [Wicket-user] HyperLink
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 AjaxCallDecoratordecorateScript(java.lang.CharSequence script)what is the script parameter for On 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 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 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 want to do the same, you should make a custom component that implements ILinkListener and override onComponentTaglike 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='';");}}EelcoOn 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 something 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 >> Link Name 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 easierDownload 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity: 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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabaro
Re: [Wicket-user] HyperLink
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 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 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 want to do the same, you should make a custom component that implements ILinkListener and override onComponentTaglike 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='';");}}EelcoOn 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 something 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 >> Link Name 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 easierDownload 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity: 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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity: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
Re: [Wicket-user] HyperLink
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 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 want to do the same, you should make a custom component that implements ILinkListener and override onComponentTaglike 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='';");}}EelcoOn 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 something 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 >> Link Name 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 easierDownload 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity: 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.nethttps://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
Re: [Wicket-user] HyperLink
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 want to do the same, you should make a custom component that implements ILinkListener and override onComponentTaglike 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='';");}}EelcoOn 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 something 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 >> Link Name 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 easierDownload 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- "It takes insanity to drive in sanity" - MeAladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780Web: www.dabarobjects.comCommunity: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
Re: [Wicket-user] HyperLink
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 = getURL(); if (!isEnabled()) { tag.remove("onclick"); } else { tag.put("onclick", "location.href='" + url + "';"); } } 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 something 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 > > Link Name 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
Re: [Wicket-user] HyperLink
Do you mean how to disable the link so it's not a link anymore?Link.setEnabled(false).The something 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 Link Name 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.nethttps://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
[Wicket-user] HyperLink
How du I make a Link Component (an hyperlink) render as Link Name 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
Re: [Wicket-user] HyperLink Text
There is something called ExternalLink. It is does not allow arbitrary body content, on text, but may it is sufficient already. Juergen On 8/19/05, Johan Compagner <[EMAIL PROTECTED]> wrote: > if find a tag as a panel very strange > Designer just do this: > Text > > In wicket we suddenly have to do spans in between them > But i see a link as one thing. A link as a href and a text. That is the > case for many many years now. > The model of a link isn't used by anything i believe. > But i agree that we can't just suddenly use it, So making a new link > that is just almost a copy of the current one > like TextLink is easy made. (that just prints the model as the text) > The problem is that it is then not a link because it is not in the > hierarchy. it can't be a subclass. > > > johan > > > Eelco Hillenius wrote: > > Problem is that we allready have a model argument; we can't just decide to > > use it for something specific out of the blue. So, that would mean > > introducing a second IModel argument, which is plain ugly from an API's > > point of view. Second problem is that in order to let Link replace it's > > body, it couldn't be a container anymore. > > > > A custom component would be very easy on the other hand... just create a > > panel with the Link and Label on it. I've used that a couple of times in > > projects. > > > > So, I'm -1. > > > > Eelco > > > > > > -----Oorspronkelijk bericht- > > Van: 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. > > > > Go to my Page > > > > 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 extends link? > > (the problem is that onComponentTagBody is final...) > > > > johan > > > > > > Dipu wrote: > > > Hi, > > > > > > Is there any way i can dynamically specfy the HyperLink text ? > > > > > > Right now if i have a link the markup look like > > > Go to my Page > > > > > > I would like to replace the "Go to my Page" link text with some > > > dynamic content. > > > I tried adding a label like this > > > > > > > > > But this doesn't seem to work. > > > Is there anything wrong with the way i am doing it. > > > > > > > > > Regards > > > Dipu > > > > > > > > > > > > > > > > > > > > > > > > --- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > > & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > --- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HyperLink Text
if find a tag as a panel very strange Designer just do this: Text In wicket we suddenly have to do spans in between them But i see a link as one thing. A link as a href and a text. That is the case for many many years now. The model of a link isn't used by anything i believe. But i agree that we can't just suddenly use it, So making a new link that is just almost a copy of the current one like TextLink is easy made. (that just prints the model as the text) The problem is that it is then not a link because it is not in the hierarchy. it can't be a subclass. johan Eelco Hillenius wrote: Problem is that we allready have a model argument; we can't just decide to use it for something specific out of the blue. So, that would mean introducing a second IModel argument, which is plain ugly from an API's point of view. Second problem is that in order to let Link replace it's body, it couldn't be a container anymore. A custom component would be very easy on the other hand... just create a panel with the Link and Label on it. I've used that a couple of times in projects. So, I'm -1. Eelco -Oorspronkelijk bericht- Van: 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. Go to my Page 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 extends link? (the problem is that onComponentTagBody is final...) johan Dipu wrote: > Hi, > > Is there any way i can dynamically specfy the HyperLink text ? > > Right now if i have a link the markup look like > Go to my Page > > I would like to replace the "Go to my Page" link text with some > dynamic content. > I tried adding a label like this > > > But this doesn't seem to work. > Is there anything wrong with the way i am doing it. > > > Regards > Dipu > > > > > > --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HyperLink Text
I think ... is better than just ... 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 pointing out. But we should simplify this. Go to my Page 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 extends link? (the problem is that onComponentTagBody is final...) johan Dipu wrote: Hi, Is there any way i can dynamically specfy the HyperLink text ? Right now if i have a link the markup look like Go to my Page I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this > But this doesn't seem to work. Is there anything wrong with the way i am doing it. Regards Dipu --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] HyperLink Text
Problem is that we allready have a model argument; we can't just decide to use it for something specific out of the blue. So, that would mean introducing a second IModel argument, which is plain ugly from an API's point of view. Second problem is that in order to let Link replace it's body, it couldn't be a container anymore. A custom component would be very easy on the other hand... just create a panel with the Link and Label on it. I've used that a couple of times in projects. So, I'm -1. Eelco -Oorspronkelijk bericht- Van: 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. Go to my Page 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 extends link? (the problem is that onComponentTagBody is final...) johan Dipu wrote: > Hi, > > Is there any way i can dynamically specfy the HyperLink text ? > > Right now if i have a link the markup look like > Go to my Page > > I would like to replace the "Go to my Page" link text with some > dynamic content. > I tried adding a label like this > > > But this doesn't seem to work. > Is there anything wrong with the way i am doing it. > > > Regards > Dipu > > > > > > --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user <>
Re: [Wicket-user] HyperLink Text
Thanks for the quick reply, my mistake, i was adding the label to the panel instead of adding to the Link. Thanks Dipu - Original Message - From: "Eelco Hillenius" <[EMAIL PROTECTED]> To: Sent: Friday, August 19, 2005 2:14 PM Subject: RE: [Wicket-user] 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 way i can dynamically specfy the HyperLink text ? Right now if i have a link the markup look like Go to my Page I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this wicket:id="linkLabel"> But this doesn't seem to work. Is there anything wrong with the way i am doing it. Regards Dipu --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HyperLink Text
that label should work (like others are pointing out. But we should simplify this. Go to my Page 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 extends link? (the problem is that onComponentTagBody is final...) johan Dipu wrote: Hi, Is there any way i can dynamically specfy the HyperLink text ? Right now if i have a link the markup look like Go to my Page I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this > But this doesn't seem to work. Is there anything wrong with the way i am doing it. Regards Dipu --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] 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 there any way i can dynamically specfy the HyperLink text ? Right now if i have a link the markup look like Go to my Page I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this > But this doesn't seem to work. Is there anything wrong with the way i am doing it. Regards Dipu --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HyperLink Text
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 ? Right now if i have a link the markup look like Go to my Page I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this > But this doesn't seem to work. Is there anything wrong with the way i am doing it. Regards Dipu --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] 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 way i can dynamically specfy the HyperLink text ? Right now if i have a link the markup look like Go to my Page I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this But this doesn't seem to work. Is there anything wrong with the way i am doing it. Regards Dipu <>
[Wicket-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 Go to my Pagea> I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this span>a> But this doesn't seem to work. Is there anything wrong with the way i am doing it. Regards Dipu