Announcement

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

    SelectItem, valueMapEnum, and multiple="true"

    Hello,

    I have a multiple value enum field type defined in the DS XML as:

    Code:
    <field name="statusBitmask" type="enum" valueMapEnum="com.xxxxx.StatusValueMap" multiple="true" required="true"></field>
    In the client, I have the following SelectItem:

    Code:
    SelectItem bitmask = new SelectItem("statusBitmask");
    bitmask.setMultiple(Boolean.TRUE);
    bitmask.setMultipleAppearance(MultipleAppearance.GRID);
    When I load up the form, all of the enum values are visible and upon submitting the form the expected values are sent to the server for the selected enum values.

    However, whenever I click on one of the entries in the SelectItem, I get the following warning in the development mode console:

    Code:
    12:33:59.682 [ERROR] [opswise] 12:33:59.681:ICHG6:WARN:NativeSelectItem:isc_NativeSelectItem_0[statusBitmask]:compareValues - this is a multiple FormItem but compareValues was called with a non-null first argument `value1` that is not an array.
    
    com.smartgwt.client.core.JsObject$SGWT_WARN: 12:33:59.681:ICHG6:WARN:NativeSelectItem:isc_NativeSelectItem_0[statusBitmask]:compareValues - this is a multiple FormItem but compareValues was called with a non-null first argument `value1` that is not an array.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Thread.java:744)
    SmartClient Version: v9.1p_2014-06-17/Pro Deployment (built 2014-06-17)

    Is something incorrect with my configuration?

    Thanks

    #2
    I switched to use MultipleAppearance.PICKLIST instead of MultipleAppearance.GRID and I no longer get that warning.

    Comment

    Working...
    X