2 Replies Latest reply on Jul 29, 2012 2:12 AM by arkhalil

    Uncaught TypeError: Object #<Object> has no method 'jswing'  in JBoss AS 7.1

    arkhalil

      We have been using jswing from jquery.easing.1.3.js in JBoss AS 6 and it was working fine. But after migrating to JBoss 7.1 we facing the following error during animation:

       

      Uncaught TypeError: Object #<Object> has no method 'jswing'  in JBoss AS 7.1

       

      Does anyone know about this? (See the attachment for detail)

       

      Thanks.

        • 1. Re: Uncaught TypeError: Object #<Object> has no method 'jswing'  in JBoss AS 7.1
          arkhalil

          I see one difference. In JBoss AS 6 the script given bellow is loaded before than any of my js script files given in <h:head>...</h:head> element. While in JBoss AS 7.1.1 is loaded at the end of user added java script files.

           

           

          <link type="text/css" rel="stylesheet" href="/rfRes/skinning.ecss.xhtml?db=eAHb1WuhCAAFJAGh" /><script type="text/javascript" src="/javax.faces.resource/jsf.js.xhtml?ln=javax.faces"></script><script type="text/javascript" src="/javax.faces.resource/jquery.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/richfaces.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/richfaces-queue.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/richfaces-base-component.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/jquery.position.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/richfaces-event.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/richfaces-utils.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/richfaces-selection.js.xhtml"></script><script type="text/javascript" src="/javax.faces.resource/AutocompleteBase.js.xhtml?ln=org.richfaces"></script><script type="text/javascript" src="/javax.faces.resource/Autocomplete.js.xhtml?ln=org.richfaces"></script><link type="text/css" rel="stylesheet" href="/rfRes/Autocomplete.ecss.xhtml?db=eAHb1WuhCAAFJAGh&amp;ln=org.richfaces" />

           

           

          Is there any way to instruct JBoss AS 7.1.1 to load user added java script at the end within <h:head>...</h:head> element? Thanks.

          • 2. Re: Uncaught TypeError: Object #<Object> has no method 'jswing'  in JBoss AS 7.1
            arkhalil

            Resolved it by placing my javascript files outside (after) <h:head> ... </h:head> element. Thanks.