Hi,

 

            Right now requestURI in display-tag doesn’t support _javascript_ functions. When I try to pass a _javascript_ function to requestURI the html rendered by display tag appends the function with the query string (?d-49653-p=2). To support _javascript_ functions as requestURI, I have modified the code of org.displaytag.util.Href class -- toString() function. What I have done is if the requestURI starts with “_javascript_:” string it just sets the link href with the _javascript_ function with last parameter as query string. After these modifications, I can invoke my _javascript_ function from navigation links and I also have query string as one of the argument in my _javascript_ function which I can use to navigate after doing my custom tasks.

 

Please let me know if I m wrong

 

Thanks and Regards

Niket

Attachment: Href.java
Description: Binary data

Reply via email to