Announcement

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

    #16
    re: #1 - No. The buildItemEdit() method that sets up the form is only called once during onModuleLoad. It's only in a separate method to break up the code for easier maintenance.

    re: #2 - No. The form is defined along with all of the other components before the main layout is drawn.

    And it is actually working in GWT hosted mode; just not once it is compiled.

    Comment


      #17
      This has got to be a core GWT bug. What is your exact GWT version and can you try it against any other GWT version?

      Comment


        #18
        I'm using GWT 1.7.1. Downloading 1.7.0 now and will let you know if that makes a difference.

        Comment


          #19
          Nothing is simple. I'm using a Mac and with GWT 1.7.0 "You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X." So, while I can't verify that it works in GWT Hosted Mode (without digging myself in deeper), I can verify that compiling it with GWT 1.7.0 and Java 1.5 (which is actually still 1.6 on the Mac) does not fix the problem.
          Last edited by jay.l.fisher; 30 Nov 2009, 16:12.

          Comment


            #20
            Its quite strange indeed. Can you try the following and report the results :

            Code:
            DataSourceField dsField = ipItemMasterDS.getField(dsFields[i]);
            
            String canEditStr = dsField.getAttribute("canEdit");
            Boolean canEdit = dsField.getAttributeAsBoolean("canEdit");
            
            JavaScriptObject jso = dsField.getJsObj();
            
            String propertiesStr = JSOHelper.getPropertiesAsString(jso);
            
            SC.logEchoAll(jso); // see what is reported in the dev console logs
            Sanjiv
            Attached Files
            Last edited by sjivan; 30 Nov 2009, 20:15.

            Comment


              #21
              Here is what the log shows.
              07:27:41.387:WARN:Log:{canEdit: true,
              canFilter: true,
              editorType: "TextItem",
              length: 25,
              name: "IDES",
              title: "Description",
              type: "text",
              validators: Array[1]}
              07:27:41.390:WARN:Log:{canEdit: false,
              canFilter: true,
              name: "IRET",
              title: "Retail",
              type: "currency",
              validators: Array[1]}
              07:27:41.391:WARN:Log:{canEdit: false,
              canFilter: true,
              name: "IFRI",
              title: "1st Receipt",
              type: "date",
              useTextField: "true",
              validators: Array[1]}
              07:27:41.391:WARN:Log:{canEdit: false,
              canFilter: true,
              name: "ITIU",
              title: "On Hand",
              type: "integer",
              validators: Array[1]}
              07:27:41.392:WARN:Log:{canEdit: false,
              canFilter: true,
              name: "ISLU1",
              title: "Week",
              type: "integer",
              validators: Array[1]}
              07:27:41.393:WARN:Log:{canEdit: false,
              canFilter: true,
              name: "ISLU2",
              title: "Month",
              type: "integer",
              validators: Array[1]}
              07:27:41.394:WARN:Log:{canEdit: false,
              canFilter: true,
              name: "ISLU3",
              title: "Season",
              type: "integer",
              validators: Array[1]}
              07:27:41.394:WARN:Log:{canEdit: false,
              canFilter: true,
              name: "ISLU4",
              title: "Year",
              type: "integer",
              validators: Array[1]}
              07:27:41.395:WARN:Log:{canEdit: false,
              length: 10,
              name: "ISKU",
              primaryKey: true,
              title: "SKU",
              type: "integer",
              validators: Array[1]}
              07:27:41.396:WARN:Log:{canEdit: true,
              editorType: "TextItem",
              length: 15,
              name: "IVST",
              title: "Vendor Style",
              type: "text",
              validators: Array[1]}
              07:27:41.397:WARN:Log:{align: "left",
              canEdit: false,
              detail: true,
              displayField: "DNAM",
              foreignKey: "IPDIVSN.DDIV",
              length: 2,
              name: "IDIV",
              optionDataSource: "IPDIVSN",
              title: "Division",
              type: "integer",
              valueField: "DDIV",
              validators: Array[1]}
              07:27:41.397:WARN:Log:{align: "left",
              canEdit: false,
              detail: true,
              displayField: "DNAM",
              foreignKey: "IPDEPTS.DDPT",
              length: 3,
              name: "IDPT",
              optionDataSource: "IPDEPTS",
              title: "Department",
              type: "integer",
              valueField: "DDPT",
              validators: Array[1]}
              07:27:41.398:WARN:Log:{align: "left",
              canEdit: false,
              displayField: "CLNM",
              foreignKey: "IPCLASS.CCLS",
              length: 4,
              name: "ICLS",
              optionDataSource: "IPCLASS",
              title: "Class",
              type: "integer",
              valueField: "CCLS",
              validators: Array[1]}
              07:27:41.399:WARN:Log:{align: "left",
              canEdit: false,
              displayField: "VNAM",
              foreignKey: "IPMRVEN.VVEN",
              length: 5,
              name: "IVEN",
              optionDataSource: "IPMRVEN",
              title: "Vendor",
              type: "integer",
              valueField: "VVEN",
              validators: Array[1]}
              07:27:41.400:WARN:Log:{canEdit: false,
              length: 4,
              name: "ISTY",
              title: "Style",
              type: "noZeroSuppress4",
              validators: Array[1]}
              07:27:41.401:WARN:Log:{align: "left",
              canEdit: false,
              displayField: "CLRN",
              foreignKey: "IPCOLOR.CCLR",
              length: 3,
              name: "ICLR",
              optionDataSource: "IPCOLOR",
              title: "Color",
              type: "integer",
              valueField: "CCLR",
              validators: Array[1]}
              07:27:41.401:WARN:Log:{align: "left",
              canEdit: false,
              displayField: "SNAM",
              foreignKey: "IPSIZES.VVEN",
              length: 4,
              name: "ISIZ",
              optionDataSource: "IPSIZES",
              title: "Size",
              type: "integer",
              valueField: "SSIZ",
              validators: Array[1]}
              07:27:41.403:WARN:Log:{canEdit: false,
              detail: true,
              labelAsTitle: "true",
              name: "ISAL",
              title: "On sale?",
              type: "text",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.403:WARN:Log:{canEdit: false,
              detail: true,
              labelAsTitle: "true",
              name: "IMKD",
              title: "Marked Down?",
              type: "text",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.404:WARN:Log:{canEdit: false,
              detail: true,
              labelAsTitle: "true",
              name: "IHLD",
              title: "Item on hold?",
              type: "text",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.405:WARN:Log:{canEdit: false,
              detail: true,
              labelAsTitle: "true",
              name: "IREC",
              title: "Reclassed?",
              type: "text",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.426:WARN:Log:{canEdit: false,
              detail: true,
              name: "IPPS1",
              title: "Sales Week-1",
              type: "integer",
              validators: Array[1]}
              07:27:41.427:WARN:Log:{canEdit: false,
              detail: true,
              name: "IPPS2",
              title: "Sales Week-2",
              type: "integer",
              validators: Array[1]}
              07:27:41.428:WARN:Log:{canEdit: false,
              detail: true,
              name: "IPPS3",
              title: "Sales Week-3",
              type: "integer",
              validators: Array[1]}
              07:27:41.428:WARN:Log:{canEdit: false,
              detail: true,
              name: "IPPS4",
              title: "Sales Week-4",
              type: "integer",
              validators: Array[1]}
              07:27:41.429:WARN:Log:{canEdit: false,
              detail: true,
              name: "IPPS5",
              title: "Sales Week-5",
              type: "integer",
              validators: Array[1]}
              07:27:41.429:WARN:Log:{align: "left",
              canEdit: true,
              editorType: "SelectItem",
              name: "IATT01",
              title: "Season",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.431:WARN:Log:{align: "left",
              canEdit: true,
              editorType: "SelectItem",
              name: "IATT02",
              title: "Status",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.432:WARN:Log:{align: "left",
              canEdit: true,
              editorType: "SelectItem",
              name: "IATT03",
              title: "Pricing",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.433:WARN:Log:{align: "left",
              canEdit: true,
              editorType: "SelectItem",
              name: "IATT04",
              title: "Branding",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.434:WARN:Log:{align: "left",
              canEdit: true,
              editorType: "SelectItem",
              name: "IATT05",
              title: "Buyer",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.435:WARN:Log:{align: "left",
              canEdit: true,
              detail: true,
              editorType: "SelectItem",
              name: "IATT06",
              title: "Fabric",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.436:WARN:Log:{align: "left",
              canEdit: true,
              detail: true,
              editorType: "SelectItem",
              name: "IATT07",
              title: "Pricing Tier",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.438:WARN:Log:{align: "left",
              canEdit: true,
              detail: true,
              editorType: "SelectItem",
              name: "IATT08",
              title: "B2C attribute",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.439:WARN:Log:{align: "left",
              canEdit: true,
              detail: true,
              editorType: "SelectItem",
              name: "IATT09",
              title: "Price Band",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.440:WARN:Log:{align: "left",
              canEdit: true,
              detail: true,
              editorType: "SelectItem",
              name: "IATT10",
              title: "Hanging Type",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}
              07:27:41.441:WARN:Log:{align: "left",
              canEdit: true,
              detail: true,
              editorType: "SelectItem",
              name: "IATT11",
              title: "Season Year",
              type: "enum",
              valueMap: Obj,
              validators: Array[1]}

              Comment


                #22
                Some additional log entries that I *think* are unrelated. I can't tell what the messages about "bad or negative height" are referring to, nor the class ID collision.
                Code:
                07:49:49.040:INFO:Log:initialized
                07:49:49.195:WARN:AutoObserver:Use addInterfaceProperties() to add methods to interface [Class AutoObserver]
                07:49:56.297:WARN:Log:New Class ID: 'IAutoFitButton' collides with ID of existing Class object '[Class IAutoFitButton]'.  Existing object will be replaced.
                07:49:56.318:INFO:Log:isc.Page is loaded
                07:49:57.763:WARN:PaneContainer:isc_OID_15_paneContainer:ignoring bad or negative height: -18 [enable 'sizing' log for stack trace]
                07:49:57.766:WARN:PaneContainer:isc_OID_15_paneContainer:ignoring bad or negative height: -18 [enable 'sizing' log for stack trace]
                07:49:57.767:WARN:PaneContainer:isc_OID_15_paneContainer:ignoring bad or negative height: -18 [enable 'sizing' log for stack trace]

                Comment


                  #23
                  Jay,
                  Can you add logs for the other variables too.

                  Code:
                  DataSourceField dsField = ipItemMasterDS.getField(dsFields[i]);
                  
                  String canEditStr = dsField.getAttribute("canEdit");
                  
                  SC.logWarn("canEditStr:" + canEditStr);
                  
                  Boolean canEdit = dsField.getAttributeAsBoolean("canEdit");
                  
                  SC.logWarn("canEditBoolean:" + canEditStr);
                  
                  JavaScriptObject jso = dsField.getJsObj();
                  
                  String propertiesStr = JSOHelper.getPropertiesAsString(jso);
                  
                  SC.logEchoAll(jso); // see what is reported in the dev console logs

                  Comment


                    #24
                    I added this ...
                    Code:
                    String canEditStr = dsField.getAttribute("canEdit");
                    SC.logWarn("canEditStr:" + canEditStr);
                    Boolean canEdit = dsField.getAttributeAsBoolean("canEdit");
                    SC.logWarn("canEditBoolean:" + canEdit);
                    JavaScriptObject jso = dsField.getJsObj();
                    String propertiesStr = JSOHelper.getPropertiesAsString(jso);
                    SC.logWarn("propertiesStr:" + propertiesStr);
                    SC.logEchoAll(jso); // see what is reported in the dev console logs
                    and here is the log ...
                    Code:
                    10:25:31.577:INFO:Log:initialized
                    10:25:31.730:WARN:AutoObserver:Use addInterfaceProperties() to add methods to interface [Class AutoObserver]
                    10:25:39.378:WARN:Log:New Class ID: 'IAutoFitButton' collides with ID of existing Class object '[Class IAutoFitButton]'.  Existing object will be replaced.
                    10:25:39.492:INFO:Log:isc.Page is loaded
                    10:25:50.398:WARN:Log:canEditStr:true
                    10:25:50.398:WARN:Log:canEditBoolean:true
                    10:25:50.398:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    editorType
                    length
                    name
                    title
                    type
                    $61
                    $62
                    validators}
                    10:25:50.400:WARN:Log:{canEdit: true,
                    canFilter: true,
                    editorType: "TextItem",
                    length: 25,
                    name: "IDES",
                    title: "Description",
                    type: "text",
                    validators: Array[1]}
                    10:25:50.404:WARN:Log:canEditStr:false
                    10:25:50.404:WARN:Log:canEditBoolean:false
                    10:25:50.404:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    name
                    title
                    type
                    $61
                    $62
                    $63
                    $64
                    validators}
                    10:25:50.404:WARN:Log:{canEdit: false,
                    canFilter: true,
                    name: "IRET",
                    title: "Retail",
                    type: "currency",
                    validators: Array[1]}
                    10:25:50.405:WARN:Log:canEditStr:false
                    10:25:50.405:WARN:Log:canEditBoolean:false
                    10:25:50.405:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    name
                    title
                    type
                    useTextField
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.405:WARN:Log:{canEdit: false,
                    canFilter: true,
                    name: "IFRI",
                    title: "1st Receipt",
                    type: "date",
                    useTextField: "true",
                    validators: Array[1]}
                    10:25:50.406:WARN:Log:canEditStr:false
                    10:25:50.406:WARN:Log:canEditBoolean:false
                    10:25:50.406:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.406:WARN:Log:{canEdit: false,
                    canFilter: true,
                    name: "ITIU",
                    title: "On Hand",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.407:WARN:Log:canEditStr:false
                    10:25:50.407:WARN:Log:canEditBoolean:false
                    10:25:50.407:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.407:WARN:Log:{canEdit: false,
                    canFilter: true,
                    name: "ISLU1",
                    title: "Week",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.408:WARN:Log:canEditStr:false
                    10:25:50.408:WARN:Log:canEditBoolean:false
                    10:25:50.408:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.408:WARN:Log:{canEdit: false,
                    canFilter: true,
                    name: "ISLU2",
                    title: "Month",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.409:WARN:Log:canEditStr:false
                    10:25:50.409:WARN:Log:canEditBoolean:false
                    10:25:50.409:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.409:WARN:Log:{canEdit: false,
                    canFilter: true,
                    name: "ISLU3",
                    title: "Season",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.410:WARN:Log:canEditStr:false
                    10:25:50.410:WARN:Log:canEditBoolean:false
                    10:25:50.410:WARN:Log:propertiesStr:{
                    canEdit
                    canFilter
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.410:WARN:Log:{canEdit: false,
                    canFilter: true,
                    name: "ISLU4",
                    title: "Year",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.411:WARN:Log:canEditStr:false
                    10:25:50.411:WARN:Log:canEditBoolean:false
                    10:25:50.411:WARN:Log:propertiesStr:{
                    canEdit
                    length
                    name
                    primaryKey
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.412:WARN:Log:{canEdit: false,
                    length: 10,
                    name: "ISKU",
                    primaryKey: true,
                    title: "SKU",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.412:WARN:Log:canEditStr:true
                    10:25:50.412:WARN:Log:canEditBoolean:true
                    10:25:50.412:WARN:Log:propertiesStr:{
                    canEdit
                    editorType
                    length
                    name
                    title
                    type
                    $61
                    $62
                    validators}
                    10:25:50.413:WARN:Log:{canEdit: true,
                    editorType: "TextItem",
                    length: 15,
                    name: "IVST",
                    title: "Vendor Style",
                    type: "text",
                    validators: Array[1]}
                    10:25:50.414:WARN:Log:canEditStr:false
                    10:25:50.415:WARN:Log:canEditBoolean:false
                    10:25:50.415:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    displayField
                    foreignKey
                    length
                    name
                    optionDataSource
                    title
                    type
                    valueField
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.415:WARN:Log:{align: "left",
                    canEdit: false,
                    detail: true,
                    displayField: "DNAM",
                    foreignKey: "IPDIVSN.DDIV",
                    length: 2,
                    name: "IDIV",
                    optionDataSource: "IPDIVSN",
                    title: "Division",
                    type: "integer",
                    valueField: "DDIV",
                    validators: Array[1]}
                    10:25:50.416:WARN:Log:canEditStr:false
                    10:25:50.416:WARN:Log:canEditBoolean:false
                    10:25:50.416:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    displayField
                    foreignKey
                    length
                    name
                    optionDataSource
                    title
                    type
                    valueField
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.416:WARN:Log:{align: "left",
                    canEdit: false,
                    detail: true,
                    displayField: "DNAM",
                    foreignKey: "IPDEPTS.DDPT",
                    length: 3,
                    name: "IDPT",
                    optionDataSource: "IPDEPTS",
                    title: "Department",
                    type: "integer",
                    valueField: "DDPT",
                    validators: Array[1]}
                    10:25:50.417:WARN:Log:canEditStr:false
                    10:25:50.417:WARN:Log:canEditBoolean:false
                    10:25:50.417:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    displayField
                    foreignKey
                    length
                    name
                    optionDataSource
                    title
                    type
                    valueField
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.417:WARN:Log:{align: "left",
                    canEdit: false,
                    displayField: "CLNM",
                    foreignKey: "IPCLASS.CCLS",
                    length: 4,
                    name: "ICLS",
                    optionDataSource: "IPCLASS",
                    title: "Class",
                    type: "integer",
                    valueField: "CCLS",
                    validators: Array[1]}
                    10:25:50.418:WARN:Log:canEditStr:false
                    10:25:50.418:WARN:Log:canEditBoolean:false
                    10:25:50.418:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    displayField
                    foreignKey
                    length
                    name
                    optionDataSource
                    title
                    type
                    valueField
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.419:WARN:Log:{align: "left",
                    canEdit: false,
                    displayField: "VNAM",
                    foreignKey: "IPMRVEN.VVEN",
                    length: 5,
                    name: "IVEN",
                    optionDataSource: "IPMRVEN",
                    title: "Vendor",
                    type: "integer",
                    valueField: "VVEN",
                    validators: Array[1]}
                    10:25:50.419:WARN:Log:canEditStr:false
                    10:25:50.419:WARN:Log:canEditBoolean:false
                    10:25:50.420:WARN:Log:propertiesStr:{
                    canEdit
                    length
                    name
                    title
                    type
                    $61
                    $62
                    $63
                    $64
                    validators}
                    10:25:50.420:WARN:Log:{canEdit: false,
                    length: 4,
                    name: "ISTY",
                    title: "Style",
                    type: "noZeroSuppress4",
                    validators: Array[1]}
                    10:25:50.421:WARN:Log:canEditStr:false
                    10:25:50.421:WARN:Log:canEditBoolean:false
                    10:25:50.421:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    displayField
                    foreignKey
                    length
                    name
                    optionDataSource
                    title
                    type
                    valueField
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.421:WARN:Log:{align: "left",
                    canEdit: false,
                    displayField: "CLRN",
                    foreignKey: "IPCOLOR.CCLR",
                    length: 3,
                    name: "ICLR",
                    optionDataSource: "IPCOLOR",
                    title: "Color",
                    type: "integer",
                    valueField: "CCLR",
                    validators: Array[1]}
                    10:25:50.422:WARN:Log:canEditStr:false
                    10:25:50.422:WARN:Log:canEditBoolean:false
                    10:25:50.422:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    displayField
                    foreignKey
                    length
                    name
                    optionDataSource
                    title
                    type
                    valueField
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.422:WARN:Log:{align: "left",
                    canEdit: false,
                    displayField: "SNAM",
                    foreignKey: "IPSIZES.SSIZ",
                    length: 4,
                    name: "ISIZ",
                    optionDataSource: "IPSIZES",
                    title: "Size",
                    type: "integer",
                    valueField: "SSIZ",
                    validators: Array[1]}
                    10:25:50.423:WARN:Log:canEditStr:false
                    10:25:50.423:WARN:Log:canEditBoolean:false
                    10:25:50.423:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    labelAsTitle
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.424:WARN:Log:{canEdit: false,
                    detail: true,
                    labelAsTitle: "true",
                    name: "ISAL",
                    title: "On sale?",
                    type: "text",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.425:WARN:Log:canEditStr:false
                    10:25:50.425:WARN:Log:canEditBoolean:false
                    10:25:50.425:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    labelAsTitle
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.425:WARN:Log:{canEdit: false,
                    detail: true,
                    labelAsTitle: "true",
                    name: "IMKD",
                    title: "Marked Down?",
                    type: "text",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.426:WARN:Log:canEditStr:false
                    10:25:50.426:WARN:Log:canEditBoolean:false
                    10:25:50.426:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    labelAsTitle
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.426:WARN:Log:{canEdit: false,
                    detail: true,
                    labelAsTitle: "true",
                    name: "IHLD",
                    title: "Item on hold?",
                    type: "text",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.427:WARN:Log:canEditStr:false
                    10:25:50.427:WARN:Log:canEditBoolean:false
                    10:25:50.427:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    labelAsTitle
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.427:WARN:Log:{canEdit: false,
                    detail: true,
                    labelAsTitle: "true",
                    name: "IREC",
                    title: "Reclassed?",
                    type: "text",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.428:WARN:Log:canEditStr:false
                    10:25:50.428:WARN:Log:canEditBoolean:false
                    10:25:50.428:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.428:WARN:Log:{canEdit: false,
                    detail: true,
                    name: "IPPS1",
                    title: "Sales Week-1",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.429:WARN:Log:canEditStr:false
                    10:25:50.429:WARN:Log:canEditBoolean:false
                    10:25:50.429:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.429:WARN:Log:{canEdit: false,
                    detail: true,
                    name: "IPPS2",
                    title: "Sales Week-2",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.430:WARN:Log:canEditStr:false
                    10:25:50.430:WARN:Log:canEditBoolean:false
                    10:25:50.430:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.430:WARN:Log:{canEdit: false,
                    detail: true,
                    name: "IPPS3",
                    title: "Sales Week-3",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.431:WARN:Log:canEditStr:false
                    10:25:50.431:WARN:Log:canEditBoolean:false
                    10:25:50.431:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.431:WARN:Log:{canEdit: false,
                    detail: true,
                    name: "IPPS4",
                    title: "Sales Week-4",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.432:WARN:Log:canEditStr:false
                    10:25:50.432:WARN:Log:canEditBoolean:false
                    10:25:50.432:WARN:Log:propertiesStr:{
                    canEdit
                    detail
                    name
                    title
                    type
                    $61
                    $62
                    $64
                    validators}
                    10:25:50.432:WARN:Log:{canEdit: false,
                    detail: true,
                    name: "IPPS5",
                    title: "Sales Week-5",
                    type: "integer",
                    validators: Array[1]}
                    10:25:50.433:WARN:Log:canEditStr:true
                    10:25:50.433:WARN:Log:canEditBoolean:true
                    10:25:50.433:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.433:WARN:Log:{align: "left",
                    canEdit: true,
                    editorType: "SelectItem",
                    name: "IATT01",
                    title: "Season",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.435:WARN:Log:canEditStr:true
                    10:25:50.435:WARN:Log:canEditBoolean:true
                    10:25:50.435:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.435:WARN:Log:{align: "left",
                    canEdit: true,
                    editorType: "SelectItem",
                    name: "IATT02",
                    title: "Status",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.437:WARN:Log:canEditStr:true
                    10:25:50.437:WARN:Log:canEditBoolean:true
                    10:25:50.437:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.437:WARN:Log:{align: "left",
                    canEdit: true,
                    editorType: "SelectItem",
                    name: "IATT03",
                    title: "Pricing",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.439:WARN:Log:canEditStr:true
                    10:25:50.439:WARN:Log:canEditBoolean:true
                    10:25:50.439:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.439:WARN:Log:{align: "left",
                    canEdit: true,
                    editorType: "SelectItem",
                    name: "IATT04",
                    title: "Branding",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.440:WARN:Log:canEditStr:true
                    10:25:50.441:WARN:Log:canEditBoolean:true
                    10:25:50.441:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.441:WARN:Log:{align: "left",
                    canEdit: true,
                    editorType: "SelectItem",
                    name: "IATT05",
                    title: "Buyer",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.442:WARN:Log:canEditStr:true
                    10:25:50.442:WARN:Log:canEditBoolean:true
                    10:25:50.443:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.443:WARN:Log:{align: "left",
                    canEdit: true,
                    detail: true,
                    editorType: "SelectItem",
                    name: "IATT06",
                    title: "Fabric",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.444:WARN:Log:canEditStr:true
                    10:25:50.444:WARN:Log:canEditBoolean:true
                    10:25:50.444:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.445:WARN:Log:{align: "left",
                    canEdit: true,
                    detail: true,
                    editorType: "SelectItem",
                    name: "IATT07",
                    title: "Pricing Tier",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.446:WARN:Log:canEditStr:true
                    10:25:50.446:WARN:Log:canEditBoolean:true
                    10:25:50.446:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.446:WARN:Log:{align: "left",
                    canEdit: true,
                    detail: true,
                    editorType: "SelectItem",
                    name: "IATT08",
                    title: "B2C attribute",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.448:WARN:Log:canEditStr:true
                    10:25:50.448:WARN:Log:canEditBoolean:true
                    10:25:50.448:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.449:WARN:Log:{align: "left",
                    canEdit: true,
                    detail: true,
                    editorType: "SelectItem",
                    name: "IATT09",
                    title: "Price Band",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.450:WARN:Log:canEditStr:true
                    10:25:50.450:WARN:Log:canEditBoolean:true
                    10:25:50.450:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.451:WARN:Log:{align: "left",
                    canEdit: true,
                    detail: true,
                    editorType: "SelectItem",
                    name: "IATT10",
                    title: "Hanging Type",
                    type: "enum",
                    valueMap: Obj,
                    validators: Array[1]}
                    10:25:50.452:WARN:Log:canEditStr:true
                    10:25:50.452:WARN:Log:canEditBoolean:true
                    10:25:50.453:WARN:Log:propertiesStr:{
                    align
                    canEdit
                    detail
                    editorType
                    name
                    title
                    type
                    valueMap
                    $61
                    $62
                    validators}
                    10:25:50.453:WARN:Log:{align: "left",
                    canEdit: true,
                    detail: true,
                    editorType: "SelectItem",
                    name: "IATT11",
                    title: "Season Year", Obj
                    type: "enum",
                    valueMap:,
                    validators: Array[1]}
                    10:25:50.649:WARN:PaneContainer:isc_OID_15_paneContainer:ignoring bad or negative height: -18 [enable 'sizing' log for stack trace]
                    10:25:50.652:WARN:PaneContainer:isc_OID_15_paneContainer:ignoring bad or negative height: -18 [enable 'sizing' log for stack trace]
                    10:25:50.653:WARN:PaneContainer:isc_OID_15_paneContainer:ignoring bad or negative height: -18 [enable 'sizing' log for stack trace]

                    Comment


                      #25
                      dsField.getCanEdit() calls getAttributeAsBoolean("canEdit") which you reported as returning 'true' so it's hard to imagine that dsField.getCanEdit() is returning false. Can you add the following lines of code :

                      Code:
                      SC.logWarn("dsField.getCanEdit():" + dsField.getCanEdit())
                      
                      if(dsField.getCanEdit()) {
                         SC.logWarn(dsField.getName() + " is " + editable");
                      }
                      Code:
                          /**
                           * Whether this field can ever be edited by the user.  If set to <code>false</code>, no DataBound component will ever try
                           * to offer an editing interface for this field.
                           *
                           *
                           * @return Boolean
                           */
                          public Boolean getCanEdit()  {
                              return getAttributeAsBoolean("canEdit");
                          }

                      Comment


                        #26
                        Which field are you referring to? They all seem to be in agreement between getCanEdit and getAttributeAsBoolean("canEdit"). I added the code you suggested and here is the log. They are all in agreement.
                        Code:
                        11:02:30.955:WARN:Log:dsField.getCanEdit():true
                        11:02:30.956:WARN:Log:IDES is editable
                        11:02:30.959:WARN:Log:dsField.getCanEdit():false
                        11:02:30.959:WARN:Log:dsField.getCanEdit():false
                        11:02:30.960:WARN:Log:dsField.getCanEdit():false
                        11:02:30.961:WARN:Log:dsField.getCanEdit():false
                        11:02:30.961:WARN:Log:dsField.getCanEdit():false
                        11:02:30.962:WARN:Log:dsField.getCanEdit():false
                        11:02:30.963:WARN:Log:dsField.getCanEdit():false
                        11:02:30.963:WARN:Log:dsField.getCanEdit():false
                        11:02:30.964:WARN:Log:dsField.getCanEdit():true
                        11:02:30.965:WARN:Log:IVST is editable
                        11:02:30.966:WARN:Log:dsField.getCanEdit():false
                        11:02:30.967:WARN:Log:dsField.getCanEdit():false
                        11:02:30.968:WARN:Log:dsField.getCanEdit():false
                        11:02:30.969:WARN:Log:dsField.getCanEdit():false
                        11:02:30.969:WARN:Log:dsField.getCanEdit():false
                        11:02:30.971:WARN:Log:dsField.getCanEdit():false
                        11:02:30.971:WARN:Log:dsField.getCanEdit():false
                        11:02:30.972:WARN:Log:dsField.getCanEdit():false
                        11:02:30.973:WARN:Log:dsField.getCanEdit():false
                        11:02:30.973:WARN:Log:dsField.getCanEdit():false
                        11:02:30.974:WARN:Log:dsField.getCanEdit():false
                        11:02:30.975:WARN:Log:dsField.getCanEdit():false
                        11:02:30.975:WARN:Log:dsField.getCanEdit():false
                        11:02:30.976:WARN:Log:dsField.getCanEdit():false
                        11:02:30.976:WARN:Log:dsField.getCanEdit():false
                        11:02:30.977:WARN:Log:dsField.getCanEdit():false
                        11:02:30.978:WARN:Log:dsField.getCanEdit():true
                        11:02:30.978:WARN:Log:IATT01 is editable
                        11:02:30.980:WARN:Log:dsField.getCanEdit():true
                        11:02:30.980:WARN:Log:IATT02 is editable
                        11:02:30.981:WARN:Log:dsField.getCanEdit():true
                        11:02:30.981:WARN:Log:IATT03 is editable
                        11:02:30.983:WARN:Log:dsField.getCanEdit():true
                        11:02:30.983:WARN:Log:IATT04 is editable
                        11:02:30.984:WARN:Log:dsField.getCanEdit():true
                        11:02:30.984:WARN:Log:IATT05 is editable
                        11:02:30.985:WARN:Log:dsField.getCanEdit():true
                        11:02:30.985:WARN:Log:IATT06 is editable
                        11:02:30.987:WARN:Log:dsField.getCanEdit():true
                        11:02:30.987:WARN:Log:IATT07 is editable
                        11:02:30.988:WARN:Log:dsField.getCanEdit():true
                        11:02:30.988:WARN:Log:IATT08 is editable
                        11:02:30.989:WARN:Log:dsField.getCanEdit():true
                        11:02:30.989:WARN:Log:IATT09 is editable
                        11:02:30.991:WARN:Log:dsField.getCanEdit():true
                        11:02:30.991:WARN:Log:IATT10 is editable
                        11:02:30.992:WARN:Log:dsField.getCanEdit():true
                        11:02:30.992:WARN:Log:IATT11 is editable

                        Comment


                          #27
                          Jay,
                          I was unable to reproduce the problem. Your sample works fine in hosted and web mode. See the attached standalone version of your code. The LGPL version of SmartGWT has a starter HelloWorld project along with ant targets to run in hosted mode as well as to compile to a war.

                          Replace that HelloWorld with the attached class and build a war using the ant target "ant war". Then deploy in tomcat and confirm that it works for you.

                          I verified this on my OSX machine.

                          Sanjiv
                          Attached Files

                          Comment


                            #28
                            I tried running your HelloWorld both in my project (replacing my EntryPoint class with HelloWorld) and in a separate project starting with helloworld-1.5 from the smartgwt-1.3 folder (there isn't one in the smartgwtee-1.2.2 distribution that I'm using). Both exhibit the same behavior which is shown in the attached screen shot; the fields show up as non-editable text fields with the name as title. I had to change some classpath references from gwt-dev-windows.jar to gwt-dev-mac.jar to get it to run. I also tried changing the smartgwt.jar from the 1.2.2 version to 1.3 and the behavior is the same.
                            Attached Files

                            Comment


                              #29
                              Jay I think it's time to try a clean install on a new physical machine. We've tried your test case in a number of environments and they all work.

                              Comment


                                #30
                                Thanks for spending the time trying to track this down. I suspect it has something to do with my project setup. Can you point me to the latest version of SmartGWT EE that I can download. I think it may be a case of mixing SmartGWT EE 1.2.2 with SmartGWT 1.3. I don't have another mac and I'm loathe to drag out a Windows machine so I'd like to start with a clean new project on the mac, and if that doesn't work I'll try a different machine.

                                Comment

                                Working...
                                X