Just a note that you can accomplish something similar by using style-sheets
(for the printable version). We have the following line in all of our pages:
<link rel="stylesheet" media="print" href="/styles/print.css" type="text/css" />
Then, in out /styles/print.css, you can do something like:
A {
text-decoration: none;
}
To turn the underlines off on all links. When the user prints, all links won't
be underlined. (You can test it by printing or using the 'Print Preview'
option in IE)
This can also be used (if you properly id your overall page elements) to
hide/reveal things depending on the print status (like navigation panes/search
boxes, or a legal notice e.g. 'this page was printed from x website and the
information contained herein is copyright Y Inc.')
Neal
-----Original Message-----
From: Srikanth Madarapu [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 12:01 PM
To: MyFaces Discussion
Subject: RE: Disabling a Commandlink
I certainly DO. In one of my requirements I need to disable all the links on a
page when it is in printable mode.
Srikanth
-----Original Message-----
From: Robert Breidecker [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 11:47 AM
To: MyFaces Discussion
Subject: Disabling a Commandlink
Does anyone besides me see value in having a disabled attribute on commandlink
and outputlink? When disabled, the link component will generate plain text
instead of an anchor tag.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/