I'm using smartGWT 2.5 to develope a module, my html start page is as below:
<html>
<head>
<title>Test App</title>
<script> var isomorphicDir = "testApp/sc/"; </script>
<script src="testApp/sc/modules/ISC_Core.js"></script>
<script src="testApp/sc/modules/ISC_Foundation.js"></script>
<script src="testApp/sc/modules/ISC_Containers.js"></script>
<script src="testApp/sc/modules/ISC_Grids.js"></script>
<script src="testApp/sc/modules/ISC_Forms.js"></script>
<script src="testApp/sc/modules/ISC_RichTextEditor.js"></script>
<script src="testApp/sc/modules/ISC_DataBinding.js"></script>
<script>
currentSkin = "Enterprise";
document.write("<"+"script src=\"testApp/sc/skins/" + currentSkin + "/load_skin.js?isc_version=7.1.js\"><"+"/script>");
</script>
<script src="testApp/testApp.nocache.js"></script>
</head>
<body>
<iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
</body>
</html>
& this is my entryPoing implementation :
public class testApp extends SmartGwtEntryPoint {
@Override
public void onModuleLoad() {
final DynamicForm form = new DynamicForm();
form.setWidth100();
form.setHeight100();
ButtonItem loginButton = new ButtonItem("loginButton", "Login");
loginButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
SC.say("Test!");
}
});
form.setFields(loginButton);
VLayout mainLayout = new VLayout();
mainLayout.setHeight100();
mainLayout.setWidth100();
mainLayout.addMember(form);
mainLayout.draw();
}
}
My start page successfully initiates & shows the Login button of the created form, but the problem is that it does NOT work with mouse clicks(but works with keyboard key press), seems that the button does not receive any of mouse events.
I've this problem ONLY in chrome & safari, but it works correctly in firefox.
any idea?
<html>
<head>
<title>Test App</title>
<script> var isomorphicDir = "testApp/sc/"; </script>
<script src="testApp/sc/modules/ISC_Core.js"></script>
<script src="testApp/sc/modules/ISC_Foundation.js"></script>
<script src="testApp/sc/modules/ISC_Containers.js"></script>
<script src="testApp/sc/modules/ISC_Grids.js"></script>
<script src="testApp/sc/modules/ISC_Forms.js"></script>
<script src="testApp/sc/modules/ISC_RichTextEditor.js"></script>
<script src="testApp/sc/modules/ISC_DataBinding.js"></script>
<script>
currentSkin = "Enterprise";
document.write("<"+"script src=\"testApp/sc/skins/" + currentSkin + "/load_skin.js?isc_version=7.1.js\"><"+"/script>");
</script>
<script src="testApp/testApp.nocache.js"></script>
</head>
<body>
<iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
</body>
</html>
& this is my entryPoing implementation :
public class testApp extends SmartGwtEntryPoint {
@Override
public void onModuleLoad() {
final DynamicForm form = new DynamicForm();
form.setWidth100();
form.setHeight100();
ButtonItem loginButton = new ButtonItem("loginButton", "Login");
loginButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
SC.say("Test!");
}
});
form.setFields(loginButton);
VLayout mainLayout = new VLayout();
mainLayout.setHeight100();
mainLayout.setWidth100();
mainLayout.addMember(form);
mainLayout.draw();
}
}
My start page successfully initiates & shows the Login button of the created form, but the problem is that it does NOT work with mouse clicks(but works with keyboard key press), seems that the button does not receive any of mouse events.
I've this problem ONLY in chrome & safari, but it works correctly in firefox.
any idea?
Comment