3 Replies Latest reply: Dec 27, 2012 1:10 PM by 773020 RSS

    Ext JS Library 3.1.1 : Ext.onReady(function() 'null' is null or not an obj

    773020
      This was working in weblogic 8 , but when I DEPLOYED IT IN WEBLOGIC 10 , it started to throw error as given below. We are using JS LIbrary 3.1.1 .Do we need to upgrade it?


      Onselect of value in combobox throws this error.

      ISSUE
      Webpage error details

      User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS122335; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)
      Timestamp: Thu, 20 Dec 2012 06:16:19 UTC


      Message: 'null' is null or not an object
      Line: 9
      Char: 5
      Code: 0
      URI: http://xxx.xxx.xxx.2xx:7001/lus-refer_os-uge-web/js/ext/from-markup.js





      JSP : SearchFields.jsp
      Code


      view plaincopy to clipboardprint?
      <%@ page import="java.util.*" %>
      <%@ taglib uri="/tags/struts-bean" prefix="bean"%>
      <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
      <%@ taglib uri="http://www.com.us/frameworks/tags/web/html-el" prefix="html"%>
      <%@ taglib uri="/tags/jstl-c" prefix="c"%>

      <script type="text/javascript" src="<%=request.getContextPath()%>/js/ext/from-markup.js"></script>
      <html:select property="orig_pt_cd" >
      <html:option value="">select</html:option>
      <html:options collection="pcList" property="pcName" labelProperty="pcValue" />
      </html:select>

      <script>
      Ext.onReady(function(){ 
      var converted = new Ext.form.ComboBox({ 
      typeAhead: true,
      triggerAction: 'all',
      transform:'orig_pt_cd',
      width:135,
      forceSelection:true
      });




      JavaScript : from-markup.js
      Code
      Ext.onReady(function(){ 
      var btn = Ext.get("create-grid");
      btn.on("click", function(){ 
      btn.dom.disabled = true;

      // create the grid
      var grid = new Ext.ux.grid.TableGrid("the-table", { 
      stripeRows: true // stripe alternate rows
      });
      grid.render();
      }, false, { 
      single: true
      }); // run once
      });




      Thanks,