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

Load listgrid from xml file

$
0
0
Hi all,

I'm using smartgwt 4.0p.

I'm facing the following issue:

I'm trying to load a listgrid from an xml file. When running the code in my eclipse environnement in development mode, all works fine. But when the application is deployed in jboss on unix machine, i get an HTTP 404 error "imports/xml/warrantyData.xml" (see attached file for details)
Code:

DataSource dataSource = new DataSource();
                        dataSource.setInheritsFrom(schemaDS);
                        dataSource.setUseParentFieldOrder(true);
                        dataSource.setDataFormat(DSDataFormat.XML);
                        dataSource.setRecordXPath("//coWarranty");
                        dataSource.setDataURL("imports/xml/warrantyData.xml");

                        DataSourceTextField itemID = new DataSourceTextField("id");
                        itemID.setHidden(true);
                        itemID.setPrimaryKey(true);

                        listGrid.setDataSource(dataSource);
                        listGrid.fetchData();

Any hint about this?

Thanks in advance

Attached Images
File Type: png bug_import.png (14.1 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles