Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Javascritp ERROR when I expand listgridRecord or I insert new Event in timeline

    Hi,

    I Have a logical dynamicForm with his valuesManager. The first dynamic form has a listGrid with expansion records. The second has Timeline. When a try to expand a record it occurs the next error:
    Code:
     00:42:50.011 [ERROR] [ns] 00:42:49.934:MUP7:WARN:GridBody:isc_ListGrid_0_body:setTabIndex(): Passed index of 1409. This method does not support setting a tab index greater than 999.  Setting tab index for this widget to 999
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.setTabIndex(_1=>1409)
        ListGrid.updateMemberTabIndex(_1=>[GridBody ID:isc_ListGrid_0_body])
        Canvas.addChild(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>undef, _3=>undef)
        GridRenderer.addEmbeddedComponent(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>Obj{ID:1}, _3=>0, _4=>undef, _5=>"expand", undef, undef, undef)
        [a]MathFunction.invokeSuper(_1=>[Class GridBody], _2=>"addEmbeddedComponent", _3=>[VLayout ID:isc_ListGrid_0_expansionLayout], _4=>Obj{ID:1}, _5=>0, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
        GridBody.addEmbeddedComponent(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>Obj{ID:1}, _3=>0, _4=>undef, _5=>undef)
        ListGrid.addEmbeddedComponent(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>Obj{ID:1}, _3=>0, _4=>undef, _5=>undef)
        ListGrid.expandRecord(_1=>Obj{ID:1})
        [a]Button.recordClick(_1=>[ListGrid ID:isc_ListGrid_0], _2=>Obj{ID:1}, _3=>0, _4=>Obj{name:$72v}, _5=>0, _6=>"<img src='http://127.0.0.1:8888/ns/sc/sk..."[247], _7=>undef)
        ListGrid.rowClick(_1=>Obj{ID:1}, _2=>0, _3=>0, _4=>undef)
        [a]GridBody.rowClick(record=>Obj{ID:1},  rowNum=>0,  colNum=>0)
        GridRenderer.$29y(_1=>0, _2=>0)
        ** recursed on [a]MathFunction.invokeSuper
    
    com.smartgwt.client.core.JsObject$SGWT_WARN: 00:42:49.934:MUP7:WARN:GridBody:isc_ListGrid_0_body:setTabIndex(): Passed index of 1409. This method does not support setting a tab index greater than 999.  Setting tab index for this widget to 999
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.setTabIndex(_1=>1409)
        ListGrid.updateMemberTabIndex(_1=>[GridBody ID:isc_ListGrid_0_body])
        Canvas.addChild(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>undef, _3=>undef)
        GridRenderer.addEmbeddedComponent(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>Obj{ID:1}, _3=>0, _4=>undef, _5=>"expand", undef, undef, undef)
        [a]MathFunction.invokeSuper(_1=>[Class GridBody], _2=>"addEmbeddedComponent", _3=>[VLayout ID:isc_ListGrid_0_expansionLayout], _4=>Obj{ID:1}, _5=>0, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
        GridBody.addEmbeddedComponent(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>Obj{ID:1}, _3=>0, _4=>undef, _5=>undef)
        ListGrid.addEmbeddedComponent(_1=>[VLayout ID:isc_ListGrid_0_expansionLayout], _2=>Obj{ID:1}, _3=>0, _4=>undef, _5=>undef)
        ListGrid.expandRecord(_1=>Obj{ID:1})
        [a]Button.recordClick(_1=>[ListGrid ID:isc_ListGrid_0], _2=>Obj{ID:1}, _3=>0, _4=>Obj{name:$72v}, _5=>0, _6=>"<img src='http://127.0.0.1:8888/ns/sc/sk..."[247], _7=>undef)
        ListGrid.rowClick(_1=>Obj{ID:1}, _2=>0, _3=>0, _4=>undef)
        [a]GridBody.rowClick(record=>Obj{ID:1},  rowNum=>0,  colNum=>0)
        GridRenderer.$29y(_1=>0, _2=>0)
        ** recursed on [a]MathFunction.invokeSuper
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Thread.java:722)
    And it occurs the same error when a try to insert a new event into a timeline
    Code:
     00:45:06.360 [ERROR] [ns] 00:45:06.280:MUP7:WARN:HLayout:isc_Timeline_0_timelineView_bodyLayout:setTabIndex(): Passed index of 1416. This method does not support setting a tab index greater than 999.  Setting tab index for this widget to 999
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.setTabIndex(_1=>1416)
        ListGrid.updateMemberTabIndex(_1=>[HLayout ID:isc_Timeline_0_timelineView_bodyLayout])
        Canvas.addChild(_1=>[TimelineWindow ID:isc_TimelineWindow_0], _2=>undef, _3=>undef)
        TimelineView.addEvent(_1=>Obj{name:hola}, _2=>0)
        TimelineView.refreshVisibleEvents()
        TimelineView.refreshEvents()
        anonymous(_15=>undef, _16=>undef, _17=>undef)
        Calendar.addEvent(_1=>Date(02/06/2012), _2=>Date(03/06/2012), _3=>"hola", _4=>"", _5=>Obj, _6=>true, _7=>"charlesMadigen")
        [o]DynamicForm.submit()
        SubmitItem.handleClick()
        [o]IButton.handleActivate(Obj, undef)
        StatefulCanvas.handleClick(_1=>Obj, _2=>undef)
        [a]MathFunction.invokeSuper(_1=>null, _2=>"handleClick", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
        [a]MathFunction.Super(_1=>"handleClick", _2=>[object Arguments], _3=>undef)
        [o]IButton.handleClick(Obj, undef)
        [c]EventHandler.bubbleEvent(_1=>[IButton ID:isc_SubmitItem_0_button], _2=>"click", _3=>undef, _4=>undef)
        [c]EventHandler.handleClick(_1=>[IButton ID:isc_SubmitItem_0_button], _2=>undef)
        [c]EventHandler.$k5(_1=>[object MouseEvent], _2=>undef)
        [c]EventHandler.handleMouseUp(_1=>[object MouseEvent], _2=>undef)
        [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>[object MouseEvent])
        anonymous(event=>[object MouseEvent])
    
    com.smartgwt.client.core.JsObject$SGWT_WARN: 00:45:06.280:MUP7:WARN:HLayout:isc_Timeline_0_timelineView_bodyLayout:setTabIndex(): Passed index of 1416. This method does not support setting a tab index greater than 999.  Setting tab index for this widget to 999
        [a]MathFunction.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef, _5=>undef)
        Canvas.setTabIndex(_1=>1416)
        ListGrid.updateMemberTabIndex(_1=>[HLayout ID:isc_Timeline_0_timelineView_bodyLayout])
        Canvas.addChild(_1=>[TimelineWindow ID:isc_TimelineWindow_0], _2=>undef, _3=>undef)
        TimelineView.addEvent(_1=>Obj{name:hola}, _2=>0)
        TimelineView.refreshVisibleEvents()
        TimelineView.refreshEvents()
        anonymous(_15=>undef, _16=>undef, _17=>undef)
        Calendar.addEvent(_1=>Date(02/06/2012), _2=>Date(03/06/2012), _3=>"hola", _4=>"", _5=>Obj, _6=>true, _7=>"charlesMadigen")
        [o]DynamicForm.submit()
        SubmitItem.handleClick()
        [o]IButton.handleActivate(Obj, undef)
        StatefulCanvas.handleClick(_1=>Obj, _2=>undef)
        [a]MathFunction.invokeSuper(_1=>null, _2=>"handleClick", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
        [a]MathFunction.Super(_1=>"handleClick", _2=>[object Arguments], _3=>undef)
        [o]IButton.handleClick(Obj, undef)
        [c]EventHandler.bubbleEvent(_1=>[IButton ID:isc_SubmitItem_0_button], _2=>"click", _3=>undef, _4=>undef)
        [c]EventHandler.handleClick(_1=>[IButton ID:isc_SubmitItem_0_button], _2=>undef)
        [c]EventHandler.$k5(_1=>[object MouseEvent], _2=>undef)
        [c]EventHandler.handleMouseUp(_1=>[object MouseEvent], _2=>undef)
        [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>[object MouseEvent])
        anonymous(event=>[object MouseEvent])
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Thread.java:722)
    A testCase example:

    Code:
     public class ns extends VLayout implements EntryPoint {
    
    	private VLayout vLayout;
    	private HLayout hLayout;
    	private ActivitiesDynamicForm activitiesDynamicForm;
    	private GroupsDynamicForm groupsDynamicForm;
    	private TabSet tabSet;
    	private Tab activitiesTab,groupsTab;
    	private Button guardarButton;
    	private ValuesManager valuesManager;
    
    	// Locales
    	private static UsuarioConstants localeUsuario = GWT.create(UsuarioConstants.class);
    
    	public void onModuleLoad() {
    
    		setWidth100();
    		setHeight100();
    		// Crear ValuesManager
    		valuesManager = new ValuesManager();
    
    		// Crear formulario de usuario
    		activitiesDynamicForm = new ActivitiesDynamicForm(valuesManager);
    		// Asignar a pestaña
    		activitiesTab = new Tab(localeUsuario.actividades());
    		activitiesTab.setPane(activitiesDynamicForm);
    
    
    		// Crear formulario de usuario
    		groupsDynamicForm = new GroupsDynamicForm(valuesManager);
    		// Asignar a pestaña
    		groupsTab = new Tab(localeUsuario.gruposContenedores());
    		groupsTab.setPane(groupsDynamicForm);
    
    		tabSet = new TabSet();
    		tabSet.setTabs(activitiesTab,groupsTab);
    		// Crear el botón
    		guardarButton = new Button(localeUsuario.btnCrear());
    		guardarButton.setAutoFit(true);
    
    		// Crear HLayout para el botón
    		hLayout = new HLayout();
    		hLayout.setAlign(Alignment.CENTER);
    		hLayout.setHeight(guardarButton.getHeight());
    
    		// Añadir botón al HLayout
    		hLayout.addMember(guardarButton);
    
    		// Crear VLayout para del Window
    		vLayout = new VLayout();
    		vLayout.setHeight100();
    		vLayout.setWidth100();
    
    		// Añadir elementos al VLayout
    		vLayout.addMember(tabSet);
    		vLayout.addMember(hLayout);
    
    		// Añadir VLayout al Window
    		addMember(vLayout);
    		show();
    	}
    }
    Code:
     public class GroupsDynamicForm extends DynamicForm {
    
    	private static final String EDITORLISTGRID_WIDTH = "90%";
    	private static final int EDITORLISTGRID_HEIGHT = 300;
    	// Locale
    	private GrupoConstants locale = GWT.create(GrupoConstants.class);
    
    	private CanvasItem canvasItemGroups;
    
    	public GroupsDynamicForm(ValuesManager valuesManager) {
    
    		ListGridField idField = new ListGridField("id", locale.id());
    		idField.setHidden(true);
    		ListGridField nombreField = new ListGridField("nombre", locale.nombre());
    
    		final ListGrid groupListGrid = new ListGrid() {
    			@Override
    			protected Canvas getExpansionComponent(ListGridRecord record) {
    				VLayout vlayout = new VLayout();
    				vlayout.setContents("Hello world");
    				return vlayout;
    			}
    		};
    		groupListGrid.setCanExpandRecords(true);
    		groupListGrid.setWidth(EDITORLISTGRID_WIDTH);
    		groupListGrid.setHeight(EDITORLISTGRID_HEIGHT);
    		groupListGrid.setFields(idField, nombreField);
    		
    		Record record = new Record();
    		record.setAttribute("id", 1);
    		record.setAttribute("nombre", "Calo");
    		groupListGrid.addData(record);
    
    		canvasItemGroups = new CanvasItem("canvasListaGrupos");
    		canvasItemGroups.setShowTitle(false);
    		canvasItemGroups.setColSpan(3);
    		canvasItemGroups.setAlign(Alignment.CENTER);
    		canvasItemGroups.setCanvas(groupListGrid);
    
    
    		setFields(canvasItemGroups);
    	}
    
    }
    Code:
    public class ActivitiesDynamicForm extends DynamicForm {
    
    	private static final int NUM_COLUMNAS = 3;
    
    	private CanvasItem canvasItemActivities;
    
    
    	@SuppressWarnings("deprecation")
    	public ActivitiesDynamicForm(ValuesManager valuesManager) {
    
    		/*---------------------------------------------------------------------------
    		 * Seccion para los actividades
    		 * --------------------------------------------------------------------------*/
    
    		Lane[] developers = new Lane[] { new Lane("charlesMadigen", "Charles Madigen") };
    
    		Timeline calendar = new Timeline();
    		calendar.setHeight(451);
    		calendar.setStartDate(new Date(112, 5, 2));
    		calendar.setEndDate(new Date(112, 5, 22));
    		calendar.setLanes(developers);
    		calendar.setCanResizeTimelineEvents(true);
    		calendar.setCanEditLane(true);
    		calendar.setShowEventDescriptions(false);
    
    		HeaderLevel[] headerLevels = new HeaderLevel[]
    				{ new HeaderLevel(TimeUnit.WEEK), new HeaderLevel(TimeUnit.DAY) };
    		calendar.setHeaderLevels(headerLevels);
    
    		canvasItemActivities = new CanvasItem("canvasListaGrupos");
    		canvasItemActivities.setShowTitle(false);
    		canvasItemActivities.setColSpan(NUM_COLUMNAS);
    		canvasItemActivities.setAlign(Alignment.CENTER);
    		canvasItemActivities.setCanvas(calendar);
    
    		setFields(canvasItemActivities);
    	}
    
    }
    Browser: Firefox 21.0 for ubuntu 12.
    SmartClient Version: SNAPSHOT_v9.0d_2013-06-08/LGPL Development Only (built 2013-06-08)

    Any idea? I think It's a bug.

    Regards,
    Calowen.
Working...
X