gwt2 - Window Location getParameter is always null in GWT/GXT Project? -
I am working on GWT / GXT, I am trying to practice some sample examples.
This URL is the project
http://127.0.0.1:8888/Opera_Star.html?gwt.codesvr=127.0.0.1:9997 Module Loads on Public Zero () {Map & lt; String, entry & gt; Project = new fastmap & lt; Entry & gt; (); ProjectModel ProjectModel = New ProjectModel (); (Int i = 0; i & lt; projectModel.getChildren (). Size (); i ++) {// 1 children login class login category = (login category) project model .getChildren (). Get (i); (Int j = 0; j & lt; loginCategory.getChildren (). Size (); j ++) {// 2 children entry entry = (entry) loginCategory.getChildren (). Get (j); Project.put (entry.getId (), entry); }} Registry. Registry (model, project model); String id = window.path. Tag operator ("id"); If (id == null) {id = XDOM.getBody (). GetId (); } Entry entry = project.get (id); If (enter == tap) {return; }
Can anyone tell me that string id = window? place. Jupiter ("id");
id = XDOM.getBody () for
, setParameter
Windows.Location
GetId ();
I am getting the id zero
< Div class = "post-text" itemprop = "text">
Your EntryPoint
class
Private static map & lt; String, string & gt; QueryParams = New Hashmop & lt; String, string & gt; (); Fixed {Map & lt; String, list & lt; String & gt; & Gt; ParamsMap = Window.Off Location .getParameterMap (); (String key: paramsMap.keySet ()) {list & lt; String & gt; Values = paramsMap.get (key); If (values.size ()> gt; 0) {string value = values.get (0); QueryParams.put (key.toLowerCase (), value); QueryParams.put (key, value); }}}
I have a URL & amp; Id = foo, how to add it to url?
host How to get the base URL of the page?
GWT.getHostPageBaseURL (); //http://127.0.0.1:8888/
Comments
Post a Comment