Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Lines displaying in SelectItem

$
0
0
I'm seeing the same problem described here:
http://forums.smartclient.com/showthread.php?t=26195

That post was for SmartClient; I'm seeing the issue using SmartGWT. Specifically, I see the issue using the EnterpriseBlue theme. With the SilverWave theme, for example, I do not see the issue.
The lines appear when the browser is in IE9 "Standards" mode.

Here is a simple example, using a datasource mapped to the AdventureWorks SQL Server sample db.

product.ds.xml
Code:

<DataSource ID="product" serverType="hibernate"
            beanClassName="com.hyperproductive.play.server.model.Product"
    >
    <fields>
        <field name="id" type="sequence" hidden="true" primaryKey="true"/>
        <field name="name" type="text"/>
        <field name="productNumber" type="text" title="SKU"/>
    </fields>
</DataSource>

module code
Code:

    public void onModuleLoad() {
        final DataSource products = DataSource.get("product");
       
        final DynamicForm form = new DynamicForm();
        final SelectItem selectProducts = new SelectItem("product");
        selectProducts.setOptionDataSource(products);
        selectProducts.setDisplayField("name");
        form.setItems(selectProducts);

        final IButton consoleButton = new IButton("Show Console");
        consoleButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                SC.showConsole();
            }
        });

        final VLayout layout = new VLayout();
        layout.setWidth100();
        layout.setHeight100();
        layout.setMembers(form, consoleButton);
        layout.draw();
    }

1. SmartClient Version: v8.3p_2013-06-13/Enterprise Deployment (built 2013-06-13)

2. IE 9

3. client-side only

4. no response processing error

5. no error logged

6. sample code above

Posts with incomplete information are much more likely to be ignored.

Viewing all articles
Browse latest Browse all 4756

Trending Articles