Here's the code for generating the _javascript_ call on a link. Enjoy.
public class RowLinkDecorator extends TableDecorator{
private String link1 = "#";
public String decorate(Object row){
setLink1("<a href="" "\" +
"</a>") ;
return link1;
setLink1("<a href="" "\" +
"</a>") ;
return link1;
}
public String getLink1() {
setLink1("<a href="" "\" +
"</a>") ;
return link1;
// the reason we do it twice is that if you get a call to this getter from the document before that decorate is called.
}
public void setLink1(String link1) {
this.link1 = link1;
}
}
public String getLink1() {
setLink1("<a href="" "\" +
"</a>") ;
return link1;
// the reason we do it twice is that if you get a call to this getter from the document before that decorate is called.
}
public void setLink1(String link1) {
this.link1 = link1;
}
}
<display:table ..... decorator="path.info.here.RowLinkDecorator">
<display:column title="Link" sortable="true" headerClass="sortable" property="link1"/>
</display:table>
Sj Weng.
"Thompson, Mike (ETW)" <[EMAIL PROTECTED]> wrote:
"Thompson, Mike (ETW)" <[EMAIL PROTECTED]> wrote:
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sean
Radford
Sent: Saturday, February 07, 2004 4:34 PM
To: [EMAIL PROTECTED]
Subject: RE: [displaytag-user] _javascript_ onClick() in Column Href
My 'hack' is to use a TableDecorator to put a around each
with the relevant _javascript_ on it.
Regards,
Sean
On Fri, 2004-02-06 at 03:19, [EMAIL PROTECTED] wrote:
> Hi,
>
> Even I want to know the same.
> Has anyone used the _javascript_ with display column tag?
>
> Thanks & Regards,
> Imphaa
> Wipro Technologies.
> Off Tel # 8520408 Extn # 2024
>
> "If anyone speaks badly of you, live so none will believe it."
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of sj sweng
> Sent: Friday, February 06, 2004 3:33 AM
> To: [EMAIL PROTECTED]
> Subject: [displaytag-user] _javascript_ onClick() in Column Href
>
>
>
> Hi There,
>
> Has anyone actually gotten the column tag to work with
> _javascript_ such that we can have type
> of urls genereated by DispalyTag?
>
> Regards,
>
> S. Weng
>
>
> ______________________________________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online
--
Dr. Sean Radford, MBBS, MSc
[EMAIL PROTECTED]
http://bladesys.demon.co.uk/
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
- RE: [displaytag-user] Javascript onClick() in Column ... impha.chowrira
- RE: [displaytag-user] Javascript onClick() in Co... Sean Radford
- RE: [displaytag-user] Javascript onClick() i... sj sweng
- RE: [displaytag-user] Javascript onClick... Sean Radford
- RE: [displaytag-user] Javascript onClick() in Co... Thompson, Mike (ETW)
- RE: [displaytag-user] Javascript onClick() in Co... mongoloid001
- RE: [displaytag-user] Javascript onClick() i... Matt Raible
- RE: [displaytag-user] Javascript onClick() in Co... mongoloid001
- RE: [displaytag-user] Javascript onClick() i... Matt Raible
- RE: [displaytag-user] Javascript onClick() in Co... mongoloid001
Reply via email to

