You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John Smith <jo...@yahoo.com> on 2005/01/28 00:27:41 UTC

Tapestry page

I am using the Border component in my Tapestry
application. My requirement is that I should be able
to print the page without the border (just the
content)  if needed. My solution was to have a link in
every page,basically it calls the page without the
border component. Do I need to have a link in every
page or is there an easier way to achieve this in
Tapestry.
Thanks,
John


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry page

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
CSS is the way to go with this type of thing.  Don't concern yourself 
with doing tricky things with the Border at all.  Make a print media 
stylesheet that hides all the border pieces.  This is maybe a bit too 
idealistic - and you may need other changes or you need to accommodate 
browsers that are too dumb to do the print stylesheet properly.  But, 
you should give the CSS route your attention and if that isn't quite 
good enough, then worry about other tricks.

Your approach is way overkill, though.  Have your Border component take 
a parameter, perhaps, that says whether the mode is print or not.  Or 
perhaps it could key off a request parameter that says &print=yes.  I 
haven't thought through these suggestions fully - but whatever you do, 
don't make your solution complicated, labor intensive, or duplicative.  
Anytime you feel there ought to be an easier way, there is.

	Erik


On Jan 27, 2005, at 6:27 PM, John Smith wrote:

> I am using the Border component in my Tapestry
> application. My requirement is that I should be able
> to print the page without the border (just the
> content)  if needed. My solution was to have a link in
> every page,basically it calls the page without the
> border component. Do I need to have a link in every
> page or is there an easier way to achieve this in
> Tapestry.
> Thanks,
> John
>
>
> 		
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org