It's actually more simple than that. It's part of the html specification that you can apply a media type to your css files.

http://www.w3.org/TR/REC-CSS2/media.html#x0

So when you print the page by browser, it's using the specified css for printing. This has nothing todo with wicket.. Sometimes users need a little hint, and you can insert a print button or the likes just running a javascript telling the browser to print..

regards Nino

Kaspar Fischer wrote:
I was thinking of your approach 1 (sorry, I should have mentioned).
So I have a link "print version". When I click it, how does it
pass the information to Wicket? How does the page know which CSS
file to show?

I guess linking to "<pagename>.html?print=true" and inspecting the
PageParameters is not the Wicket way to do it, right?!

Thanks,
Kaspar

On 03.03.2008, at 13:14, Nino Saturnino Martinez Vazquez Wael wrote:

It's been up on several occacions.. There are a couple of ways to this.

  1. Have a special css for printing (specify media style print)
  2. Display a special page containing the information

I think 1's nice when its simple stuff that needs printing, WYSIWYG. But on occasion sometimes it's just not adequate doing it that way and you goto number 2 (for example if you do not have all the data wanted to be printed on the page)..

Kaspar Fischer wrote:
How do you realize a "print version" link on pages? Could somebody sketch
his/her solution, please?
Thanks,
Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
-Wicket for love
-Jme for fun

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
-Wicket for love
-Jme for fun

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to