I am working GWT/GXT I am trying to practise some sample Examples.
This is url of the project
http://127.0.0.1:8888/Opera_Star.html?gwt.codesvr=127.0.0.1:9997
public void onModuleLoad() {
Map<String, Entry> project = new FastMap<Entry>();
ProjectModel projectModel = new ProjectModel();
for (int i = 0; i < projectModel.getChildren().size(); i++) {// 1 children
LoginCategory loginCategory = (LoginCategory) projectModel
.getChildren().get(i);
for (int j = 0; j < loginCategory.getChildren().size(); j++) {// 2 children
Entry entry = (Entry) loginCategory.getChildren().get(j);
project.put(entry.getId(), entry);
}
}
Registry.register(MODEL, projectModel);
String id = Window.Location.getParameter("id");
if (id == null) {
id = XDOM.getBody().getId();
}
Entry entry = project.get(id);
if (entry == null) {
return;
}
Can Anybody tell me What is String id = Window.Location.getParameter("id");
, How to setParameter
for Windows.Location
What is id = XDOM.getBody().getId();
I am getting Id null.