SmartClient Version: v11.0p_2016-04-06/PowerEdition Deployment (built 2016-04-06) - Apache Tomcat/7.0.50
It's a bug, that does not happen on SmartGWT 5.x (PowerEdition)
We use a Custom IDACall:
When e Update (or Delete) operation is performed, the dsRequest.getHttpServletRequest() returns null.
For Fetch operations it works fine.
Can somebody confirm if it works (or not) in any other SmartGWT version?
It's a bug, that does not happen on SmartGWT 5.x (PowerEdition)
We use a Custom IDACall:
Code:
public void initDynamicDSGenerator() {
DataSource.addDynamicDSGenerator(new DynamicDSGenerator() {
@Override
public DataSource getDataSource(String id, DSRequest dsRequest) {
DataSource ds = null;
try {
if (dsRequest != null) {
HttpSession session =[B] dsRequest.getHttpServletRequest().[/B]getSession();
String dbUser = (String) session.getAttribute(DB_USER);
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(dsRequest.getServletContext().getResourceAsStream("/ds/" + id + ".ds.xml"));
doc.getDocumentElement().setAttribute("dbName", dbUser + "_db");
ds = DataSource.fromXML(doc);
}
} catch (Exception ex) {
//ex.printStackTrace();
Logger.getLogger(getClass().getName()).error(ex.getMessage(), ex);
}
return ds;
}
});
}
For Fetch operations it works fine.
Can somebody confirm if it works (or not) in any other SmartGWT version?
Comment