xuzhf / crmdipity

Automatically exported from code.google.com/p/crmdipity
0 stars 0 forks source link

gwt-multipage annotation - AccountEntryPoint class - Window.open() #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Need to sort out the regex for the AccountEntryPoint class annotation.

This is also related to the call to Window.open() in the AccountsPresenter 
class.

@UrlPatternEntryPoint(value = 
"Account.html(\\\\?locale=(en|de|fr))?((&|\\\\?)gwt.codesvr=127.0.0.1:9997)?")
// @UrlPatternEntryPoint(value = "Account.html\\\\?accountId=.*;activity=.*e.*")
public class AccountEntryPoint implements EntryPoint {

// String url = getRelativeURL("Account.html");
String url = getRelativeURL("Account.html?accountId=3;activity=edit");
Window.open(url, "_blank", "width=760, height=480");

Log.debug("Window.open() : " + url);

Original issue reported on code.google.com by rob.ferg...@gtempaccount.com on 21 Nov 2010 at 8:20

GoogleCodeExporter commented 9 years ago
Fixed in Milestone 0.0.4

Original comment by rob.ferg...@gtempaccount.com on 13 Jan 2011 at 7:09

GoogleCodeExporter commented 9 years ago

Should be:

@UrlPatternEntryPoint(value = 
"(Account.html)?(\\\\?accountId=[0-9]+&activity=edit)?")
public class AccountEntryPoint implements EntryPoint {

...

}

Original comment by rob.ferg...@gtempaccount.com on 18 Jan 2011 at 12:48