I normally use css for print friendly pages:

http://meyerweb.com/eric/articles/webrev/200001.html
http://alistapart.com/articles/goingtoprint/

Frank


On 1/21/07, MClark00 <[EMAIL PROTECTED]> wrote:


Hi,

I'd like to support the ability to have a 'Printable Version' link on all
pages which make sense to print in my application.  My first thought on
how
to do this would be to have the content of those pages always be a panel,
and then I could do something like this, where PrintablePage is a simple
empty page which includes one div called contentPanel.

Panel contentPanel = new FooPanel("contentPanel");
add( contentPanel );

add( new Link("printableVersion"){

   public void onClick(){
      setResponsePage( new PrintablePage(contentPanel) );
   }

});


I'm still a wicket beginner, so if there is a better strategy for this
please let me know.  I searched the forum and reference guide and couldn't
find one.

Thanks!

Matt
--
View this message in context:
http://www.nabble.com/Strategy-for-printable-pages-tf3049342.html#a8476340
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to