Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0-M4
-
Fix Version/s: 2.2.1
-
Component/s: Web - General
-
Labels:None
-
Environment:Struts2 / Hibernate,, Ubuntu 7.04 Feisty Fawn Linux, Firefox 2.0.0.3
Description
Firefox 2.0.0.3 seems to have a problem with highlightTableRows in 2.0-M4. I followed the tutorial (http://appfuse.org/display/APF/Using+Struts+2#UsingStruts2-listview) and added a new column on the table that has a clickable link to view custom details on a person. The behaviour is a bit strange though:
- If I left click on the link I added on the right it follows the "id" href on the left. I suspect it does that because the javascript looks for the first "a" link and a left click follows onclick before it does whatever you clicked.
- If I middle click though (open new tab) it follows the clicked link correctly.
Seems like a Firefox inconsistency. I didn't test this on any other browser. Maybe there would be a way to work around it though by passing a parameter to highlightTableRows what was clicked. Unfortunately my JavaScript skills are very limited. ![]()
( taken from http://www.nabble.com/highlightTableRows-limitation-in-Firefox--tf3783380s2369.html )
What is the solution you'd like to see? From the bug description, it sounds like this is how things should work? I can see following a link on a right-click as a bad idea, but not left click.