*/
private URL applicationUrl;
+ /**
+ * The ID of the portlet window that this application runs in.
+ */
+ private String portletWindowId;
+
/**
* Name of the theme currently used by the application.
*/
*/
private Terminal.ErrorListener errorHandler = this;
+ // TODO Document me!
+ public String getPortletWindowId() {
+ return portletWindowId;
+ }
+
+ // TODO Document me!
+ public void setPortletWindowId(String portletWindowId) {
+ this.portletWindowId = portletWindowId;
+ }
+
/**
* <p>
* Gets a window by name. Returns <code>null</code> if the application is
private String communicationErrorUrl;
private boolean useDebugIdInDom = true;
private boolean usePortletURLs = false;
- private String portletActionURLBase;
+ private String portletUidlURLBase;
private Class<? extends Paintable>[] classes = new Class[1024];
return usePortletURLs;
}
- public String getPortletActionURLBase() {
- return portletActionURLBase;
+ public String getPortletUidlURLBase() {
+ return portletUidlURLBase;
}
public String getRootPanelId() {
if($wnd.vaadin.vaadinConfigurations && $wnd.vaadin.vaadinConfigurations[id]) {
var jsobj = $wnd.vaadin.vaadinConfigurations[id];
var uri = jsobj.appUri;
- if(uri[uri.length -1] != "/") {
+ if(uri != null && uri[uri.length -1] != "/") {
uri = uri + "/";
}
this.@com.vaadin.terminal.gwt.client.ApplicationConfiguration::appUri = uri;
if (jsobj.usePortletURLs) {
this.@com.vaadin.terminal.gwt.client.ApplicationConfiguration::usePortletURLs = jsobj.usePortletURLs;
}
- if (jsobj.portletActionURLBase) {
- this.@com.vaadin.terminal.gwt.client.ApplicationConfiguration::portletActionURLBase = jsobj.portletActionURLBase;
+ if (jsobj.portletUidlURLBase) {
+ this.@com.vaadin.terminal.gwt.client.ApplicationConfiguration::portletUidlURLBase = jsobj.portletUidlURLBase;
}
} else {
$wnd.alert("Vaadin app failed to initialize: " + this.id);
console.log("Making UIDL Request with params: " + rd);
String uri;
if (configuration.usePortletURLs()) {
- uri = configuration.getPortletActionURLBase() + "&UIDL=true";
+ uri = configuration.getPortletUidlURLBase();
} else {
uri = getAppUri() + "UIDL" + configuration.getPathInfo();
}