On 10/27/2011 8:30 PM, Mike Dee wrote:
I really don't like the idea of popping up a new window and then
feeding it HTML. In this case it works nicely because the main page
has HTML in it and the popup simply shows the same HTML but without
the UI.
However, I can think of situations where there is a celltable with
data and I want to print the celltable contents - in a printer
friendly format. Now, there is no HTML (that could be fed into a
popup). That HTML would have to be created. Remember I want to
leverage the browser's ability to print HTML.
I guess there are two options:
1) Clicking a button (to popup the printer friendly window) would have
to create roughly equivalent HTML (as in the celltable) and feed it
into the popup window.
OR
2) Have the popup window do that logic. This where I was thinking of
using another module. But I'm not sure how to do that. Another idea
is to simply put the logic in a JSP. Then I'd need to check on how
session sharing works between JSP and GWT.
You'll have to decide if you want your report to be the logical
equivalent of a "Print Screen" or formatted to the dimensions of a piece
of paper.
The problem isn't new, I've seen it in multiple reincarnations over the
years. The inevitable result is basically your 3rd option. The client
sends the appropriate key information to the server which responds with
the formatted data. The idea is that the server renders the data in a
format that is substantially different from what's displayed on the
screen. The server's advantage is that it's in a position to include
information (perhaps it augments the session data with other database
queries) that is not present on the client.
--
You received this message because you are subscribed to the Google Groups "Google
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.