url - How to let placeManager.revealPlace open a request in a New Tab, in GWTP? -


in gwtp, can go new url by:

    placerequest request = new placerequest(nametokens.mytok).with("param1","123");     placemanager.revealplace(request); 

however, these above codes open new url (ex: abc.com#mytok;param1=123) current tab. question how let placemanager open new url new tab?

there other solution can found on internet not sure one. can

    string url = window.location.createurlbuilder()     .sethash("mytok;param1="+url.encodequerystring("123"))     .buildstring();      window.open(url, "_blank", null); 

i think 2nd solution not elegant since have manually put param url ourselves, while in 1st one, params wrapped inside .with method.

so how let placemanager.revealplace open request in new tab, in gwtp?

why not just:

string url = window.location.createurlbuilder().sethash(placemanager.buildhistorytoken(request)).buildstring(); window.open(url, "_blank", null); 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -