Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions gxweb/src/main/java/com/genexus/webpanels/GXWebPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -1207,14 +1207,11 @@ public void popup(String url) {
}

public void popup(String url, Object[] returnParms) {
IGXWindow win = new GXWindow();
win.setUrl(url);
win.setReturnParms(returnParms);
newWindow(win);
WebFrontendUtils.popup(url, returnParms, httpContext);
}

public void newWindow(IGXWindow win) {
((HttpContextWeb) httpContext).redirect_impl(win.getUrl(), win);
WebFrontendUtils.newWindow(win, httpContext);
}

}
14 changes: 14 additions & 0 deletions gxweb/src/main/java/com/genexus/webpanels/WebFrontendUtils.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.genexus.webpanels;

import com.genexus.*;
import com.genexus.common.interfaces.IGXWindow;
import com.genexus.internet.HttpContext;

public class WebFrontendUtils
{
Expand Down Expand Up @@ -51,4 +53,16 @@ public static GXWebComponent getWebComponent(Class caller, String name, int remo
return new GXWebComponentNull(remoteHandle, context);
}
}

public static void popup(String url, Object[] returnParms, HttpContext httpContext) {
IGXWindow win = new GXWindow();
win.setUrl(url);
win.setReturnParms(returnParms);
newWindow(win, httpContext);
}

public static void newWindow(IGXWindow win, HttpContext httpContext) {
((HttpContextWeb) httpContext).redirect_impl(win.getUrl(), win);
}

}