Use firebug, see where exactly the request goes, try the same URL from a new tab, and if it should go somewhere else, correct it.
Best regards,
Blama
Announcement
Collapse
No announcement yet.
X
-
Load listgrid from xml file
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();
Thanks in advanceTags: None
Leave a comment: