Announcement

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

    Exception thrown on ListGrid validation

    I assume this is my own problem, but I am not at all able to see what might be the cause. I thought at first it had something to do with my use of i18n and autoDeriveSchema, but that does not seem to be the case.

    Using this datasource

    Code:
    <!-- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -->
    
    <DataSource xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt"
        ID="Order"  
        serverType="sql"
        autoDeriveSchema="true"
        tableName="MASTERDETAIL_ORDER" >  
        
        <fmt:setBundle basename="com.isomorphic.grid.validation.shared.datasources.Order"/>
        
        <fields>  
            <field name="ORDERID" type="sequence" primaryKey="true" canEdit="false">
                <title><fmt:message key="orderId.title"/></title>
                <prompt><fmt:message key="orderId.prompt"/></prompt>
            </field>
            <field name="CUSTOMERNAME">
                <title><fmt:message key="customerName.title"/></title>
                <prompt><fmt:message key="customerName.prompt"/></prompt>
            </field>
            <field name="ORDERDATE">
                <title><fmt:message key="orderDate.title"/></title>
                <prompt><fmt:message key="orderDate.prompt"/></prompt>
            </field>
            <field name="TRACKINGNUMBER">
                <title><fmt:message key="trackingNumber.title"/></title>
                <prompt><fmt:message key="trackingNumber.prompt"/></prompt>
            </field>
        </fields>  
          
    </DataSource>
    and a simple ListGrid editor

    Code:
    ListGrid grid = new ListGrid();
            
    grid.setDataSource(DataSource.get(orderDS.dataSourceId()));
    grid.setAutoFetchData(true);
    grid.setCanEdit(true);
    
    VLayout layout = new VLayout();
    layout.setWidth100();
    layout.setHeight100();
            
    layout.addMember(grid);
            
    layout.draw();
    I get a validation error on any editing of the orderDate column in the 3.0-RELEASE build.

    Code:
    === 2011-12-23 16:41:42,045 [l0-5] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        criteria:{
            ORDERID:9
        },
        values:{
            ORDERID:9,
            TRACKINGNUMBER:"x.",
            ORDERDATE:"2/10/2015"
        },
        operationConfig:{
            dataSource:"Order",
            operationType:"update"
        },
        componentId:"isc_ListGrid_0",
        appID:"builtinApplication",
        operation:"Order_update",
        oldValues:{
            ORDERID:9,
            TRACKINGNUMBER:9631143,
            ORDERDATE:new Date(1234249200000),
            CUSTOMERNAME:"ABC Mining"
        }
    }
    If I try the same thing with the 3.1-2011-12-23 build (or later), I have a slightly different problem. Now I can provide good dates and get by (and I get the requisite date selector) but input of any invalid data (e.g., enter string data in orderDate)
    yields a dialog with the following message.

    Code:
    08:45:26.819 [ERROR] [GridValidation] Uncaught exception escaped
    java.lang.IllegalArgumentException: invoke arguments: JS value of type int, expected com.google.gwt.core.client.JavaScriptObject
        at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
        at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        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:292)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
        at java.lang.Thread.run(Thread.java:662)
    Clear the dialog and the invalid field data is marked with the "Must be a date" error, as it should be. So what gives?

    Logs follow:

    Code:
    === 2012-01-03 08:57:06,486 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2012-01-03 08:57:06,496 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2012-01-03 08:57:06,634 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/Development/workspace/grid-validation/target/grid-validation-0.0.1-SNAPSHOT/WEB-INF/lib/isomorphic-core-rpc-3.1-2012-01-03.jar!/framework.properties
    === 2012-01-03 08:57:06,635 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2012-01-03 08:57:06,636 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2012-01-03 08:57:06,642 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/Development/workspace/grid-validation/target/grid-validation-0.0.1-SNAPSHOT/WEB-INF/lib/isomorphic-core-rpc-3.1-2012-01-03.jar!/isc_interfaces.properties
    === 2012-01-03 08:57:06,643 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2012-01-03 08:57:06,646 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/Development/workspace/grid-validation/target/grid-validation-0.0.1-SNAPSHOT/WEB-INF/classes/server.properties
    === 2012-01-03 08:57:06,652 [main] INFO  Logger - Logging system started.
    === 2012-01-03 08:57:06,653 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2012-01-03_v8.3d/PowerEdition Deployment 2012-01-03) - Initialization Complete
    === 2012-01-03 08:57:06,656 [main] ERROR ISCInit - Can't find marker file for webRoot: C:/Development/workspace/grid-validation/target/grid-validation-0.0.1-SNAPSHOT/GridValidation/sc for configured/autodetected webRoot - if you moved the 'isomorphic' directory, please set isomorphicPathRootRelative in server.properties to the new location and restart the servlet engine.
    === 2012-01-03 08:57:06,656 [main] INFO  ISCInit - WebRoot auto-detection failed - using container IO
    === 2012-01-03 08:57:58,537 [l0-1] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/button/button_Over_stretch.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:57:58,537 [l0-2] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/button/button_Over_stretch.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:57:58,570 [l0-1] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/button/button_Over_stretch.png
    === 2012-01-03 08:57:58,570 [l0-2] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/button/button_Over_stretch.png
    === 2012-01-03 08:57:58,769 [l0-2] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/button/button_Down_stretch.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:57:58,771 [l0-1] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/button/button_Down_start.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:57:58,772 [l0-3] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/button/button_Down_end.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:57:58,788 [l0-2] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/button/button_Down_stretch.png
    === 2012-01-03 08:57:58,791 [l0-3] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/button/button_Down_end.png
    === 2012-01-03 08:57:58,794 [l0-1] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/button/button_Down_start.png
    === 2012-01-03 08:58:04,801 [l0-3] INFO  RequestContext - URL: '/loadDataSources.jsp', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:04,880 [l0-6] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/load_skin.js
    === 2012-01-03 08:58:04,887 [l0-6] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/EnterpriseBlue/load_skin.js
    === 2012-01-03 08:58:04,968 [l0-2] INFO  Compression - /GridValidation/sc/modules/ISC_Core.js: 719983 -> 185426 bytes
    === 2012-01-03 08:58:05,589 [l0-2] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/skin_styles.css
    === 2012-01-03 08:58:05,609 [l0-2] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/EnterpriseBlue/skin_styles.css
    === 2012-01-03 08:58:07,641 [l0-3] DEBUG XML - Parsed XML from (in memory stream): 4ms
    === 2012-01-03 08:58:07,673 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/builtinTypes.xml: 4ms
    === 2012-01-03 08:58:07,688 [l0-3] INFO  PoolManager - SmartClient pooling disabled for 'simpleTypes' objects
    === 2012-01-03 08:58:07,757 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/action.ds.xml: 2ms
    === 2012-01-03 08:58:07,767 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/DataSource.ds.xml: 5ms
    === 2012-01-03 08:58:07,783 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/valueMap.ds.xml: 2ms
    === 2012-01-03 08:58:07,784 [l0-3] DEBUG FileSystemDSRepo - dsName case sensitivity mismatch - looking for: valueMap, but got: ValueMap
    === 2012-01-03 08:58:07,802 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/serverObject.ds.xml: 2ms
    === 2012-01-03 08:58:07,807 [l0-3] DEBUG FileSystemDSRepo - dsName case sensitivity mismatch - looking for: valueMap, but got: ValueMap
    === 2012-01-03 08:58:07,814 [l0-3] DEBUG FileSystemDSRepo - dsName case sensitivity mismatch - looking for: serverObject, but got: ServerObject
    === 2012-01-03 08:58:07,868 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/ID
    === 2012-01-03 08:58:07,876 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/DataSourceField.ds.xml: 3ms
    === 2012-01-03 08:58:07,885 [l0-3] DEBUG FileSystemDSRepo - dsName case sensitivity mismatch - looking for: valueMap, but got: ValueMap
    === 2012-01-03 08:58:07,926 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/0/field[@name=target]/name
    === 2012-01-03 08:58:07,927 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/0/field[@name=target]/type
    === 2012-01-03 08:58:07,927 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/1/field[@name=name]/name
    === 2012-01-03 08:58:07,927 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/1/field[@name=name]/type
    === 2012-01-03 08:58:07,928 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/2/field[@name=title]/name
    === 2012-01-03 08:58:07,928 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/2/field[@name=title]/type
    === 2012-01-03 08:58:07,929 [l0-3] WARN  Validation - No such type 'boolean', not processing field value at /DataSource[@ID=Action]/fields/3/field[@name=mapping]/multiple
    === 2012-01-03 08:58:07,929 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/3/field[@name=mapping]/name
    === 2012-01-03 08:58:07,929 [l0-3] WARN  Validation - No such type 'string', not processing field value at /DataSource[@ID=Action]/fields/3/field[@name=mapping]/type
    === 2012-01-03 08:58:07,929 [l0-3] DEBUG FileSystemDSRepo - dsName case sensitivity mismatch - looking for: action, but got: Action
    === 2012-01-03 08:58:07,938 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/method.ds.xml: 2ms
    === 2012-01-03 08:58:07,940 [l0-3] DEBUG FileSystemDSRepo - dsName case sensitivity mismatch - looking for: method, but got: Method
    === 2012-01-03 08:58:07,945 [l0-3] DEBUG FileSystemDSRepo - dsName case sensitivity mismatch - looking for: valueMap, but got: ValueMap
    === 2012-01-03 08:58:07,964 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/isomorphicXML.ds.xml: 2ms
    === 2012-01-03 08:58:08,087 [l0-3] INFO  SQLDataSource - Deriving dataSource Order from table: MASTERDETAIL_ORDER
    === 2012-01-03 08:58:08,117 [l0-3] DEBUG PoolableSQLConnectionFactory - Initializing SQL config for 'GridValidationData' via JNDI
    === 2012-01-03 08:58:08,118 [l0-3] DEBUG JNDI - No configuration for JNDI context '' - assuming default initialContext
    === 2012-01-03 08:58:08,138 [l0-3] DEBUG PoolableSQLConnectionFactory - Returning pooled Connection
    === 2012-01-03 08:58:08,139 [l0-3] INFO  SQLDSGenerator - Fetching column metadata for table: MASTERDETAIL_ORDER
    === 2012-01-03 08:58:08,139 [l0-3] INFO  SQLDSGenerator - =============Using catalog: null
    === 2012-01-03 08:58:08,184 [l0-3] INFO  SQLDSGenerator - Fetching column metadata for MASTERDETAIL_ORDER complete
    === 2012-01-03 08:58:08,195 [l0-3] WARN  SQLDataSource - ds:isc.DataSource.create({
        serverType:"sql",
        generatedBy:"SC_SNAPSHOT-2012-01-03_v8.3d/PowerEdition Deployment 2012-01-03",
        schema:"PUBLIC",
        dbName:null,
        ID:"Order_inheritsFrom",
        dataSourceVersion:"1",
        fields:[
            {
                primaryKey:true,
                name:"ORDERID",
                type:"integer"
            },
            {
                name:"CUSTOMERNAME",
                length:255,
                type:"text"
            },
            {
                name:"ORDERDATE",
                type:"date"
            },
            {
                name:"TRACKINGNUMBER",
                type:"integer"
            }
        ]
    })
    
    === 2012-01-03 08:58:08,197 [l0-3] INFO  SQLDataSource - Deriving dataSource OrderItem from table: MASTERDETAIL_ORDERITEM
    === 2012-01-03 08:58:08,199 [l0-3] DEBUG PoolableSQLConnectionFactory - Returning pooled Connection
    === 2012-01-03 08:58:08,199 [l0-3] INFO  SQLDSGenerator - Fetching column metadata for table: MASTERDETAIL_ORDERITEM
    === 2012-01-03 08:58:08,199 [l0-3] INFO  SQLDSGenerator - =============Using catalog: null
    === 2012-01-03 08:58:08,217 [l0-3] INFO  SQLDSGenerator - Fetching column metadata for MASTERDETAIL_ORDERITEM complete
    === 2012-01-03 08:58:08,220 [l0-3] WARN  SQLDataSource - ds:isc.DataSource.create({
        serverType:"sql",
        generatedBy:"SC_SNAPSHOT-2012-01-03_v8.3d/PowerEdition Deployment 2012-01-03",
        schema:"PUBLIC",
        dbName:null,
        ID:"OrderItem_inheritsFrom",
        dataSourceVersion:"1",
        fields:[
            {
                primaryKey:true,
                name:"PK",
                type:"integer"
            },
            {
                name:"ITEMDESCRIPTION",
                length:255,
                type:"text"
            },
            {
                name:"QUANTITY",
                type:"integer"
            },
            {
                name:"UNITPRICE",
                type:"float"
            },
            {
                name:"ORDERID",
                type:"integer"
            }
        ]
    })
    
    === 2012-01-03 08:58:08,227 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/ds/Order.ds.xml: 2ms
    === 2012-01-03 08:58:08,314 [l0-3] INFO  Compression - /loadDataSources.jsp: 3798 -> 847 bytes
    === 2012-01-03 08:58:21,505 [l0-3] INFO  RequestContext - URL: '/GridValidation/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:21,546 [l0-3] DEBUG XML - Parsed XML from (in memory stream): 0ms
    === 2012-01-03 08:58:21,562 [l0-3] DEBUG XML - Parsed XML from __USE_CONTAINER__/GridValidation/sc/system/schema/List.ds.xml: 16ms
    === 2012-01-03 08:58:21,593 [l0-3] DEBUG RPCManager - Processing 1 requests.
    === 2012-01-03 08:58:21,609 [l0-3] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        criteria:{
        },
        operationConfig:{
            dataSource:"Order",
            operationType:"fetch",
            textMatchStyle:"substring"
        },
        startRow:0,
        endRow:75,
        componentId:"isc_ListGrid_0",
        appID:"builtinApplication",
        operation:"Order_fetch",
        oldValues:{
        }
    }
    === 2012-01-03 08:58:21,609 [l0-3] INFO  IDACall - Performing 1 operation(s)
    === 2012-01-03 08:58:21,640 [l0-3] DEBUG AppBase - [builtinApplication.Order_fetch] No userTypes defined, allowing anyone access to all operations for this application
    === 2012-01-03 08:58:21,640 [l0-3] DEBUG AppBase - [builtinApplication.Order_fetch] No public zero-argument method named '_Order_fetch' found, performing generic datasource operation
    === 2012-01-03 08:58:21,640 [l0-3] INFO  SQLDataSource - [builtinApplication.Order_fetch] Performing fetch operation with
        criteria: {}    values: {}
    === 2012-01-03 08:58:21,656 [l0-3] INFO  SQLWhereClause - [builtinApplication.Order_fetch] empty condition
    === 2012-01-03 08:58:21,656 [l0-3] INFO  SQLDataSource - [builtinApplication.Order_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
    === 2012-01-03 08:58:21,843 [l0-3] DEBUG SQLDataSource - [builtinApplication.Order_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE $defaultWhereClause
    === 2012-01-03 08:58:21,843 [l0-3] DEBUG SQLDataSource - [builtinApplication.Order_fetch] Eval'd row count query: SELECT COUNT(*) FROM MASTERDETAIL_ORDER WHERE ('1'='1')
    === 2012-01-03 08:58:21,843 [l0-3] DEBUG PoolableSQLConnectionFactory - [builtinApplication.Order_fetch] Returning pooled Connection
    === 2012-01-03 08:58:21,843 [l0-3] INFO  SQLDriver - [builtinApplication.Order_fetch] Executing SQL query on 'GridValidationData': SELECT COUNT(*) FROM MASTERDETAIL_ORDER WHERE ('1'='1')
    === 2012-01-03 08:58:21,858 [l0-3] DEBUG SQLDataSource - [builtinApplication.Order_fetch] Using SQL Limit query
    === 2012-01-03 08:58:21,858 [l0-3] DEBUG SQLDataSource - [builtinApplication.Order_fetch] SQL windowed select rows 0->75, result size 75. Query: SELECT LIMIT 0 75  MASTERDETAIL_ORDER.CUSTOMERNAME, MASTERDETAIL_ORDER.ORDERDATE, MASTERDETAIL_ORDER.ORDERID, MASTERDETAIL_ORDER.TRACKINGNUMBER FROM MASTERDETAIL_ORDER WHERE ('1'='1')
    === 2012-01-03 08:58:21,858 [l0-3] DEBUG PoolableSQLConnectionFactory - [builtinApplication.Order_fetch] Returning pooled Connection
    === 2012-01-03 08:58:21,858 [l0-3] INFO  DSResponse - [builtinApplication.Order_fetch] DSResponse: List with 10 items
    === 2012-01-03 08:58:21,858 [l0-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
    === 2012-01-03 08:58:21,874 [l0-3] DEBUG RPCManager - non-DMI response, dropExtraFields: false
    === 2012-01-03 08:58:21,890 [l0-3] INFO  Compression - /GridValidation/sc/IDACall: 1256 -> 412 bytes
    === 2012-01-03 08:58:21,921 [l0-3] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/ListGrid/headerSprite.png
    === 2012-01-03 08:58:22,061 [l0-4] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/EnterpriseBlue/images/ListGrid/header.png
    === 2012-01-03 08:58:22,092 [l0-2] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/EnterpriseBlue/images/loadingSmall.gif
    === 2012-01-03 08:58:22,092 [l0-7] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/EnterpriseBlue/images/blank.gif
    === 2012-01-03 08:58:41,608 [l0-2] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/EnterpriseBlue/images/DynamicForm/date_control.png
    === 2012-01-03 08:58:43,606 [l0-2] INFO  Download - Returning 304: Not modified on conditional get of: __USE_CONTAINER__/GridValidation/sc/skins/EnterpriseBlue/images/actions/exclamation.png
    === 2012-01-03 08:58:55,324 [l0-2] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_start.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:55,326 [l0-4] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_end.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:55,342 [l0-2] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_start.png
    === 2012-01-03 08:58:55,343 [l0-4] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_end.png
    === 2012-01-03 08:58:55,344 [l0-7] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_stretch.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:55,353 [l0-7] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_stretch.png
    === 2012-01-03 08:58:55,498 [l0-7] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_stretch.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:55,519 [l0-7] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Over_stretch.png
    === 2012-01-03 08:58:56,092 [l0-7] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/blank.gif', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,098 [l0-4] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_T.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,099 [l0-7] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/blank.gif
    === 2012-01-03 08:58:56,100 [l0-2] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_TR.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,101 [l0-3] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_TL.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,112 [l0-4] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_T.png
    === 2012-01-03 08:58:56,118 [l0-4] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_BL.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,122 [l0-2] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_TR.png
    === 2012-01-03 08:58:56,110 [l0-5] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_R.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,123 [l0-2] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_B.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,126 [l0-3] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_TL.png
    === 2012-01-03 08:58:56,127 [l0-3] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Selected_Over_start.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,132 [l0-2] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_B.png
    === 2012-01-03 08:58:56,109 [l0-7] INFO  RequestContext - URL: '/GridValidation/sc/system/development/ISC_ServerLogViewer.js', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,133 [l0-2] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Selected_Over_stretch.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,101 [l0-1] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_L.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,137 [l0-3] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Selected_Over_start.png
    === 2012-01-03 08:58:56,138 [l0-3] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Selected_Over_end.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,125 [l0-4] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_BL.png
    === 2012-01-03 08:58:56,140 [l0-2] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Selected_Over_stretch.png
    === 2012-01-03 08:58:56,141 [l0-4] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/Window/window_BR.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,143 [l0-1] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_L.png
    === 2012-01-03 08:58:56,148 [l0-3] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Tab/top/tab_Selected_Over_end.png
    === 2012-01-03 08:58:56,148 [l0-5] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_R.png
    === 2012-01-03 08:58:56,149 [l0-7] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/system/development/ISC_ServerLogViewer.js
    === 2012-01-03 08:58:56,150 [l0-7] INFO  Compression - /GridValidation/sc/system/development/ISC_ServerLogViewer.js: 8925 -> 3078 bytes
    === 2012-01-03 08:58:56,150 [l0-4] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/Window/window_BR.png
    === 2012-01-03 08:58:56,314 [l0-4] INFO  RequestContext - URL: '/GridValidation/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,419 [l0-7] INFO  RequestContext - URL: '/GridValidation/sc/skins/Enterprise/images/pickers/comboBoxPicker.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    === 2012-01-03 08:58:56,426 [l0-7] INFO  Download - done streaming: __USE_CONTAINER__/GridValidation/sc/skins/Enterprise/images/pickers/comboBoxPicker.png
    === 2012-01-03 08:58:56,455 [l0-4] INFO  Compression - /GridValidation/sc/IDACall: 81 -> 86 bytes
    === 2012-01-03 08:58:56,488 [l0-4] INFO  RequestContext - URL: '/GridValidation/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1': Moz (Gecko) with Accept-Encoding header
    Code:
    08:58:05.087:INFO:Log:initialized
    08:58:05.128:WARN:Log:NOTE: Firebug is enabled. Firebug greatly slows the performance of applications that make heavy use of JavaScript. Isomorphic highly recommends Firebug for troubleshooting, but Firebug and other development tools should be disabled when assessing the real-world performance of SmartClient applications.
    08:58:05.545:WARN:Log:New Class ID: 'EditPane' collides with ID of existing Class object '[DataSource ID:EditPane]'.  Existing object will be replaced.
    This conflict would be avoided by disabling ISC Simple Names mode.  See documentation for further information.
    08:58:05.579:WARN:Log:New Class ID: 'IAutoFitButton' collides with ID of existing Class object '[Class IAutoFitButton]'.  Existing object will be replaced.
    08:58:05.579:WARN:Log:New Class ID: 'HeaderImgButton' collides with ID of existing Class object '[Class HeaderImgButton]'.  Existing object will be replaced.
    08:58:08.318:INFO:Log:isc.Page is loaded
    Code:
    [SPAM] [GridValidation] - Resolving com.google.gwt.validation.client.constraints.AbstractDecimalMaxValidator
        [SPAM] [GridValidation] - Found type 'com.google.gwt.validation.client.constraints.AbstractDecimalMaxValidator'
            [SPAM] [GridValidation] - Found type 'javax.validation.constraints.DecimalMax'
                [WARN] [GridValidation] - Detected warnings related to 'javax.validation.Constraint'.   Is validation-<version>.jar on the classpath?
                [INFO] [GridValidation] - Specify -logLevel DEBUG to see all errors.
                [WARN] [GridValidation] - Ignoring unresolvable annotation type javax.validation.Constraint
    [INFO] [GridValidation] - Your *.gwt.xml module configuration prohibits the use of the current doucment rendering mode (document.compatMode=' CSS1Compat').<br>Modify your application's host HTML page doctype, or update your custom 'document.compatMode' configuration property settings.
    [INFO] [GridValidation] - Module GridValidation has been loaded
    [ERROR] [GridValidation] - Uncaught exception escaped
    Code:
    08:58:47.210 [ERROR] [GridValidation] Uncaught exception escaped
    java.lang.IllegalArgumentException: invoke arguments: JS value of type int, expected com.google.gwt.core.client.JavaScriptObject
        at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
        at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        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:292)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
        at java.lang.Thread.run(Thread.java:662)

    Find complete test case at http://wiki.smartclient.com/download...validation.zip
    Last edited by bbruyn; 3 Jan 2012, 08:12.

    #2
    Note how the date value has been submitted to the server as a String (as shown in the server logs). This suggests that the field type is not being detected as "date" based on your SQL schema (which doesn't seem to be in the test case). Setting an explicit type="date" on the field would probably correct this, however, if you think we should have guess "date" was the right type based on the SQL schema, please let us know what the schema was.

    Comment


      #3
      Right. Also from the server logs:

      === 2012-01-03 08:58:08,195 [l0-3] WARN SQLDataSource - ds:isc.DataSource.create({
      serverType:"sql",
      generatedBy:"SC_SNAPSHOT-2012-01-03_v8.3d/PowerEdition Deployment 2012-01-03",
      schema:"PUBLIC",
      dbName:null,
      ID:"Order_inheritsFrom",
      dataSourceVersion:"1",
      fields:[
      {
      primaryKey:true,
      name:"ORDERID",
      type:"integer"
      },
      {
      name:"CUSTOMERNAME",
      length:255,
      type:"text"
      },
      {
      name:"ORDERDATE",
      type:"date"
      },
      {
      name:"TRACKINGNUMBER",
      type:"integer"
      }
      ]
      })

      The schema is the hsqldb schema from the samples dist - but it is in the testcase at WEB-INF/db/hsqldb.

      In any case, I've also set the field type explicitly with the same result.

      Comment


        #4
        Something is definitely not right here. General ListGrid editing of "date" fields is obviously not out-and-out broken in the 3.0 release, so we think that test was not actually performed against 3.0. Similarly we're not seeing an issue with a JavaScript error on every save of a "date" field in the latest.

        Both problems, if real, would have triggered failures on dozens of automated tests and we would also have dozens of users reporting the issue..

        So you should sanity check your environment, specifically, use the instructions in the FAQ to verify that you're actually delivering updated .js files to the browser, and look for mixed versions being delivered.

        Comment


          #5
          Were you able to run the test case successfully on your end then?

          I've done all the usual clear cache, GWT compile, etc. with no change. FWIW, the version/dates (Version SC_SNAPSHOT-2012-01-03_v8.3d/PowerEdition Deployment (2012-01-03)) all check out for the following files:

          ISC_Calendars.js
          ISC_Containers
          ISC_Core.js
          ISC_Databinding.js
          ISC_Forms.js
          ISC_Foundation.js
          ISC_Grids.js
          ISC_RichTextEditor.js

          Reaching, I thought there might be a problem with my gwt inherits, so pared it down to the following with the same result:

          <inherits name='com.google.gwt.user.User'/>
          <inherits name="com.smartgwtpower.SmartGwtPower"/>

          Note that I don't have any problem if I build with the 2.5-RELEASE version.
          Last edited by bbruyn; 4 Jan 2012, 10:13.

          Comment


            #6
            It's probably worth repeating that the net result, after clearing the 'uncaught exception' dialog by clicking 'ok', looks correct: The validation was applied and I find the error marker in the right place with the 'must be a date' prompt.

            Comment


              #7
              Looks like this is only happening in development mode. IE 9 and Firefox 7.0.1.

              Eclipse 3.7.1
              Google Plugin for Eclipse 2.5.0v201112160242-rel-r37
              Last edited by bbruyn; 5 Jan 2012, 09:24.

              Comment


                #8
                Just so you don't think we're ignoring you, we are looking into this

                Comment


                  #9
                  We looked at this by incorporating the resources in a normal (non-Mavenized) project and didn't reproduce a problem.

                  One source of a difference (aside from Maven) is that we didn't have your SQL schema so we made our own. But this is unlikely to be the difference.

                  One thing to check on your end is whether the live response from the .jsp that loads your DataSources correctly shows the field as type:"date", or seems in any other way messed up (you could post it here).

                  Comment


                    #10
                    I'm not sure that makes much sense - sounds like something in the GWT stack is expecting a JavaScriptObject, but got an int back. The question is why does it want a JavaScriptObject. I don't doubt all this has something to do with the Maven setup. I've been looking, but I'm not smart enough to figure out the internals...

                    In any case, the .jsp result looks okay:

                    Code:
                    isc.DataSource.create({ fmt:"urn:jsptld:http://java.sun.com/jsp/jstl/fmt", ID:"Order", autoDeriveSchema:true, inheritsFrom:isc.DataSource.create({ serverType:"sql", generatedBy:"SC_SNAPSHOT-2012-01-05_v8.3d/PowerEdition Deployment 2012-01-05", schema:"PUBLIC", dbName:null, ID:"Order_inheritsFrom", dataSourceVersion:"1", fields:[ { primaryKey:true, name:"ORDERID", type:"integer" }, { name:"CUSTOMERNAME", length:255, type:"text" }, { name:"ORDERDATE", type:"date" }, { name:"TRACKINGNUMBER", type:"integer" } ] }) , fields:[ { canEdit:false, name:"ORDERID", primaryKey:true, type:"sequence", title:"Order #", prompt:"Order's unique identifier" }, { name:"CUSTOMERNAME", title:"Customer Name", prompt:"Customer's legal or DBA name" }, { name:"ORDERDATE", title:"Order Date", prompt:"Date the order was placed" }, { name:"TRACKINGNUMBER", title:"Tracking Number", prompt:"Tracking number provided by carrier at pickup from warehouse facility" } ], serverType:"sql" }) isc.DataSource.create({ fmt:"urn:jsptld:http://java.sun.com/jsp/jstl/fmt", ID:"OrderItem", autoDeriveSchema:true, inheritsFrom:isc.DataSource.create({ serverType:"sql", generatedBy:"SC_SNAPSHOT-2012-01-05_v8.3d/PowerEdition Deployment 2012-01-05", schema:"PUBLIC", dbName:null, ID:"OrderItem_inheritsFrom", dataSourceVersion:"1", fields:[ { primaryKey:true, name:"PK", type:"integer" }, { name:"ITEMDESCRIPTION", length:255, type:"text" }, { name:"QUANTITY", type:"integer" }, { name:"UNITPRICE", type:"float" }, { name:"ORDERID", type:"integer" } ] }) , fields:[ { hidden:true, name:"PK", primaryKey:true, type:"sequence", title:"Item #", prompt:"Order Item's unique identifier" }, { canEdit:false, foreignKey:"Order.ORDERID", name:"ORDERID", required:true, title:"Order #", prompt:"Order's unique identifier" }, { includeFrom:"Order.CUSTOMERNAME", name:"CUSTOMERNAME", title:"Customer Name", prompt:"Customer's legal or DBA name", canEdit:"false", type:"text" }, { name:"ITEMDESCRIPTION", required:true, title:"Description", prompt:"Short description of the item ordered" }, { name:"QUANTITY", required:true, title:"Quantity", prompt:"Number of units ordered" }, { name:"UNITPRICE", required:true, title:"Price per unit", prompt:"Dollar amount charged for each unit ordered" } ], serverType:"sql" })
                    With regard to the db schema - it is the same hsql schema provided in the SmartGWT samples, and is included in the test case.

                    Comment


                      #11
                      Actually the .jsp response is not OK - look:

                      Code:
                      { name:"ORDERDATE", title:"Order Date", prompt:"Date the order was placed" },
                      No type:"date". This would definitely cause the problem where the value of this field arrives at the server as a String.

                      You previously said that explicitly adding type="date" to the field definition in the .ds.xml does not solve the problem. If you add it now, do you see the .jsp response change to include type="date"? If not, maybe the problem has been that your .jsp responses have been *cached* somewhere (server or browser side) and this has been creating confusion when testing?

                      Comment


                        #12
                        Interesting. What should I make of the following then, from the same response?

                        Code:
                        { name:"ORDERDATE", type:"date" }

                        Comment


                          #13
                          In any case, explicitly defining the field as type date

                          Code:
                          <field name="ORDERDATE" type="date">
                                      <title><fmt:message key="orderDate.title"/></title>
                                      <prompt><fmt:message key="orderDate.prompt"/></prompt>
                          </field>
                          does impact the response from the jsp

                          Code:
                          isc.DataSource.create({ fmt:"urn:jsptld:http://java.sun.com/jsp/jstl/fmt", ID:"Order", autoDeriveSchema:true, inheritsFrom:isc.DataSource.create({ serverType:"sql", generatedBy:"SC_SNAPSHOT-2012-01-05_v8.3d/PowerEdition Deployment 2012-01-05", schema:"PUBLIC", dbName:null, ID:"Order_inheritsFrom", dataSourceVersion:"1", fields:[ { primaryKey:true, name:"ORDERID", type:"integer" }, { name:"CUSTOMERNAME", length:255, type:"text" }, { name:"ORDERDATE", type:"date" }, { name:"TRACKINGNUMBER", type:"integer" } ] }) , fields:[ { canEdit:false, name:"ORDERID", primaryKey:true, type:"sequence", title:"Order #", prompt:"Order's unique identifier" }, { name:"CUSTOMERNAME", title:"Customer Name", prompt:"Customer's legal or DBA name" }, { name:"ORDERDATE", type:"date", title:"Order Date", prompt:"Date the order was placed" }, { name:"TRACKINGNUMBER", title:"Tracking Number", prompt:"Tracking number provided by carrier at pickup from warehouse facility" } ], serverType:"sql" }) isc.DataSource.create({ fmt:"urn:jsptld:http://java.sun.com/jsp/jstl/fmt", ID:"OrderItem", autoDeriveSchema:true, inheritsFrom:isc.DataSource.create({ serverType:"sql", generatedBy:"SC_SNAPSHOT-2012-01-05_v8.3d/PowerEdition Deployment 2012-01-05", schema:"PUBLIC", dbName:null, ID:"OrderItem_inheritsFrom", dataSourceVersion:"1", fields:[ { primaryKey:true, name:"PK", type:"integer" }, { name:"ITEMDESCRIPTION", length:255, type:"text" }, { name:"QUANTITY", type:"integer" }, { name:"UNITPRICE", type:"float" }, { name:"ORDERID", type:"integer" } ] }) , fields:[ { hidden:true, name:"PK", primaryKey:true, type:"sequence", title:"Item #", prompt:"Order Item's unique identifier" }, { canEdit:false, foreignKey:"Order.ORDERID", name:"ORDERID", required:true, title:"Order #", prompt:"Order's unique identifier" }, { includeFrom:"Order.CUSTOMERNAME", name:"CUSTOMERNAME", title:"Customer Name", prompt:"Customer's legal or DBA name", canEdit:"false", type:"text" }, { name:"ITEMDESCRIPTION", required:true, title:"Description", prompt:"Short description of the item ordered" }, { name:"QUANTITY", required:true, title:"Quantity", prompt:"Number of units ordered" }, { name:"UNITPRICE", required:true, title:"Price per unit", prompt:"Dollar amount charged for each unit ordered" } ], serverType:"sql" })
                          but the result is the same

                          Comment


                            #14
                            Whoops, you are correct, the .jsp response is fine (it's correct that type="date" only appears in the implicit parent DataSource).

                            Just to clarify what you're seeing:

                            1) when you run the test case with what was intended to be the 2.5 or 3.0 release (modulo something weird with Eclipse/Maven) you see the date value arriving at the server as a String

                            2) when you run with the latest, you see the date arrive at the server as a date as expected (prints out in the server log like "new Date(5415421521)"), however, when you enter an invalid value while editing, there's a JavaScript exception *in GWT Development mode only*

                            All correct?
                            Last edited by Isomorphic; 12 Jan 2012, 17:27.

                            Comment


                              #15
                              Close. No problems with 2.5 - only with 3.0 and on.

                              Comment

                              Working...
                              X