new feature to allow configurable 'onclick' and 'onkeypress' attributes of 
export anchor tag
--------------------------------------------------------------------------------------------

                 Key: DISPL-468
                 URL: http://jira.codehaus.org/browse/DISPL-468
             Project: DisplayTag
          Issue Type: New Feature
          Components: Export
    Affects Versions: 1.1
            Reporter: Greg Orlowski
            Priority: Minor
         Attachments: displaytag.cvs.20070624.diff

Our government client has data entry people who were confused when clicking on 
an export link would open a document in their current browser window.
Training hundreds of confused data entry people to open in a new window in IE 
was prohibitive.

I added an option to set the onclick and onkeypress attributes of the export 
anchor in displaytag.properties in order to 
always open the export in a new window (or optionally configure other export 
anchor features):

export.anchor.onclick=window.open(this.href); return false;
export.anchor.onkeypress=window.open(this.href); return false;

I patched the java to add the onclick and onkeypress attributes to the export 
anchor only if the property is set. I updated
the anchor class and supporting classes to add methods to set these attributes 
of the anchor class.

Apologies for no test case. If you want to accept my patch, please let me know 
and I will write the test case + documentation.
greg dot orlowski at gmail dot com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to