I was wondering if it is possible to embed a JSP inside a GWT dialog
box. I know that you can setHTML() inside a GWT dialog box, but can
you specify a JSP file?
component.setHTML("<iframe src='page.jsp'/>");
this more or less, with some styling (borders, scrollbars etc) should
do the trick
component.setHTML("<iframe src='page.jsp'/>");
this more or less, with some styling (borders, scrollbars etc) should
do the trick
On May 23, 5:36 pm, dablackgoku <johnj...@gmail.com> wrote:
Luc
Luc
On May 23, 4:36 pm, dablackgoku <johnj...@gmail.com> wrote:
One thing to note, which may be obvious, is that you can't actually
embed a JSP file in a GWT app. JSP and GWT being two different HTML
rendering technologies, JSP is rendered on the server and GWT is
rendered in the browser. When you embed JSP in a GWT dialog you are
actually embedding HTML that was generated from the server. This
means you need to make an HTTP GET request to the server for the JSP
page so that it is rendered and returns HTML. The two ways to make
this request are through an iframe or an HTTPrequest.
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
As has been suggested though, you can request it as a "static"
resource from the server. The method here has been and iframe, but
there is also a way to request static content programatically using an
HttpRequest.
There is an implementation out there already for doing just that, but
I'm not sure which extension module I noticed it in.
- Brill Pappin
On May 23, 10:36 am, dablackgoku <johnj...@gmail.com> wrote:
My JSP pages are tiled and contains JSF tags, thus I cannot strictly
iframe the JSP page. Instead, I had to iframe the whole XXX.faces url
so the JspTilesViewHandlerImpl render the JSP out correctly. Note
that the full URL address is required, otherwise it will try to pull
out the XXX.face file which doesnt exist. Here is my code..
private DockPanel rootPanel = new DockPanel();
HTML html = new HTML("<iframe src='" + GWT.getModuleBaseURL() +
"XXX.faces' height='100%' width='100%' scrolling='auto' frameborder=0 /
>");
rootPanel.add(html, DockPanel.NORTH);
rootPanel.setCellHeight(html, "100%");
this.add(rootPanel);
rootPanel.setSize("100%", "100%");
Creating a Frame object works as well, you will need to specify the
style.
private DockPanel rootPanel = new DockPanel();
Frame frame = new Frame();
frame.setUrl(GWT.getModuleBaseURL() + "XXX.faces");
frame.setStyleName(CONSTANT.STYLE_IFRAME_DIALOG);
rootPanel.add(frame, DockPanel.NORTH);
rootPanel.setCellHeight(html, "100%");
this.add(rootPanel);
rootPanel.setSize("100%", "100%");
John
> > you specify a JSP file?- Hide quoted text -
>
> - Show quoted text -