Bug 41905 - Can't cut/paste/select Header Manager (etc) fields in Java 1.6
Summary: Can't cut/paste/select Header Manager (etc) fields in Java 1.6
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.2
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2007-03-20 08:22 UTC by Sebb
Modified: 2007-09-09 11:41 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2007-03-20 08:22:06 UTC
When running under Java 1.6, it seems to be impossible to select existing text 
or paste text into the Header Manager header/value fields. Similarly for Cookie 
Manager etc.

This works fine on Java 1.4 (and sort of works on Java 1.5 - need to double-
click in the extreme left-hand of the field)

The Name: and Comments: fields work OK in Java 1.6.
Comment 1 Sebb 2007-03-23 10:01:47 UTC
This is due to the code in the HeaderPanel.focusLost() method - when the code 
is disabled, the fields behave OK for editting (and cut and paste). 

However, the code seems to be necessary to ensure that any text so far entered 
is saved when the user moves off the field.

Further investigation needed...
Comment 2 Sebb 2007-03-23 12:30:09 UTC
Found that CookieManager was working OK in 1.6; comparison of this with the 
HeaderManager showed that the fix was simple - just add a call to 
stopCellEditing() in modifyTestElement().

The updated code will be in the nightlies after r521876.
Comment 3 Sebb 2007-09-09 11:41:47 UTC
See also bug 42948