[richfaces-issues] [JBoss JIRA] Created: (RF-7269) RichFaces Javascript error while page is loading for the first time

Amarendra Nandigam (JIRA) jira-events at lists.jboss.org
Wed May 27 14:03:56 EDT 2009


RichFaces Javascript error while page is loading for the first time
-------------------------------------------------------------------

                 Key: RF-7269
                 URL: https://jira.jboss.org/jira/browse/RF-7269
             Project: RichFaces
          Issue Type: Bug
          Components: performance
    Affects Versions: 3.3.1, 3.3.0
         Environment: tomcat  server 6.0.18, spring webflow 2.0.6, facelets 1.1.14,  myfaces 1.2.2
            Reporter: Amarendra Nandigam


The problem seems to be happening when the browser downloads js files for the listShuttle. During that time the script method is called before even script gets loaded. Here are the details that we found:

can now reliably reproduce the javascript errors.  Here are my steps:
1) Clear browser cache.  Go to Tools > Internet Options > General Tab > 
Temporary Internet Files section.  Click the Delete Files button, check the box 
for "Delete all offline content", click OK, click the Delete Files button 
again, leave the box unchecked this time, click OK again, click OK on the 
Internet Options window.
2) Login as JOGLETRE
3) Go to Order RFIs
4) Select RFI Type = Architectural Plan Addition/Revision
5) You may get the errors.  If not, logout, close your browser window, and 
repeat steps 1-4.  It seems to happen most of the time.

I used the Microsoft Script Debugger to identify the sources of the errors.  
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx


Error 1: "'undefined' is null or not an object" is caused by 
3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript, line 9, characters 117 to 140:

value=source[property];


Error 2: "'RichFaces.ListShuttle.Target.SelectItem' is null or not an object" 
is caused by this block of code (entire block is highlighted by the Script 
Debugger):

new Richfaces.ListShuttle(
	new Richfaces.ListShuttle.Target(
			'submitForm:options', 
			'submitForm:optionstlInternal_tab', 
			'submitForm:optionstlInternal_header_tab', 
			'submitForm:optionstlFocusKeeper',
			[['up', 'disup'], ['down', 'disdown'], 
['last', 'dislast'], ['first','disfirst']],
			'submitForm:optionssortLabel', 
			{onorderchanged:null,
			 onorderchange:null,
			 ontopclick:null,
			 onbottomclick:null,
			 onupclick:null,
			 ondownclick:null}, 
			 Richfaces.ListShuttle.Target.SelectItem, 
			 null, 
			 null
	), 
	new Richfaces.ListShuttle.Source(
			'submitForm:options', 
			'submitForm:optionsinternal_tab', 
			'submitForm:optionsinternal_header_tab', 
			'submitForm:optionsfocusKeeper', 
			undefined, 
			Richfaces.ListShuttle.Source.SelectItem, 
			null, 
			null), 
	"submitForm:options", 
	[['copy', 'discopy'], ['copyAll', 'discopyAll'], 
['remove', 'disremove'], ['removeAll','disremoveAll']],
	"false", 
	{onlistchanged:null,
	 onlistchange:null,
	 oncopyallclick:null,
	 oncopyclick:null,
	 onremoveallclick:null,
	 onremoveclick:null,
	 onfocus:null,
	 onblur:null
	}
);


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

        



More information about the richfaces-issues mailing list