This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 93775

Summary: Setting a dropdown to Auto Submit sometimes adds a bit of Javascript on the OnChange which is not valid
Product: obsolete Reporter: thoism <thoism>
Component: visualwebAssignee: Matthew Bohm <mbohm>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
URL: http://www.netinfo.com.cy
Issue Type: DEFECT Exception Reporter:

Description thoism 2007-02-01 10:50:05 UTC
I had a dropdown which was AutoSubmit so onchange there was the
common_timeoutSubmitForm(...) function. I also had another function right after
it in the OnChange property. I removed the AutoSubmit and the IDE removed also
my javascript function which was coming right after the
common_timeoutSubmitForm(...) function.
I set it again to AutoSubmit and the IDE added a bit of JavaScript which I think
was coming from my actual javascript function; The result was this:
', 2);common_timeoutSubmitForm(...) so this extra code ', 2) was coming from my
function
Comment 1 Matthew Bohm 2007-06-27 01:46:20 UTC
This could indicate an error in the regular expression use in
com.sun.webui.jsf.component.customizers.AutoSubmitOnChangeAction in woodstock designtime, as well as its ee4 and ri
brethren.
Comment 2 Matthew Bohm 2008-01-17 23:53:39 UTC
This may have been an old problem. I cannot reproduce this issue with recent trunk bits using the ee5, ee4, or ri
dropdown. Marking works for me.