This may help you:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/eea48bafbe8eed63

On Mar 23, 5:44 am, Magius <[email protected]> wrote:
> Ummm, it seems complex.
> The DialogBox it's a layer placed on top of the current window, but
> it's part of the window and I don't know how to print only it (you
> could manipulate the rest of the elements using css to not print them
> but I think it not a good idea).
>
> Probably the best approach is to open another window with only the
> contents of the dialogBox.
> But you need to pass arguments to the new Window(date,
> action=showDetails, ...).
>
> One way is:
>    1. to open a new window with the URL of a generic jsp (.../
> generic.jsp?date=xxx&action=showDetails&...)
>    2. to generate in the jsp an GWT-HTML page with a additional js-
> variable storing the parameters. The page can use your current
> EntryPoint.
>   3. to modify the EntryPoint to check if the js-variable exists in
> the page and, in this case, to render only the DialogBox inside the
> Panel instead of starting the whole application. The parameters are
> available in the page.
>   4. to call to the print option of the navigator.
>
> Another way is:
>    1. to send to the server the parameters using RPC and to store them
> in session
>    2. to open a new window using a static GWT-HTML page (with a
> different tittle or an additional js-variable or anything that could
> be used as a flag). The page can use your current EntryPoint.
>   3. to modify the EntryPoint to check if the HTML page has the flag
> and, in this case, to render only the DialogBox inside the Panel
> instead of starting the whole application. The parameters are
> avialable in the user session.
>   4. to call to the print option of the navigator.
>
> There are more approach but I cannot imagine anyone more simple.
> I hope it helps!
>
> On Mar 22, 7:48 pm, "[email protected]"
>
> <[email protected]> wrote:
> > I'm writing a programm with gwt in Eclipse. It is a calendar where you
> > can add dates. I also implemented a method to show an overview of all
> > dates. At the moment it is shown in a Dialogbox. Now I want that
> > overview to be printed. So I have to questions
> > 1. Can I print a dialogbox? If yes HOW?
>
> > 2. If not: can I open a new window, where the overview is included?
> > How can I do this? I saw the function Window.open (URL...) but how can
> > I say what the URL is? I don't know what is the name of it. How to
> > create a new Window? Can you give me a piece of code?
>
> > Many questions and hopefully many answers.
>
> > I hope you can help me
>
> > Thanks for now
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to