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)
Any hint about this?
Thanks in advance
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();
Thanks in advance