Get your CodeRanch badge!*
The moose likes JSF and the fly likes Creating invisible links and text on my JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Creating invisible links and text on my JSP" Watch "Creating invisible links and text on my JSP" New topic
Author

Creating invisible links and text on my JSP

Thiago Balducci
Greenhorn

Joined: Mar 22, 2010
Posts: 11
Hey there !

I've been trying to find a way to make invisible links ( including text elements inside it, not only the link itself) but the closer i got was to make the link itself invisible, these outputTexts i have inside it wont change no matter what i try ... is there a way to do this ?




The code above made the link invisible but my page would display " sssssss " normally :/ I've also tried to apply "cursor: default; text-decoration: none" to the text but the result is the same.



Any clues on this ? Thanks !
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60045
    
  65

<h:> is not part of JSP. I'm assuming this is a JSF tag. Please be sure to post JSF questions in the JSF forum. I will move this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Thiago Balducci
Greenhorn

Joined: Mar 22, 2010
Posts: 11
Oh snap, you are right, its JSF, sorry for the misunderstanding and thanks for moving it !
suresh dasari
Ranch Hand

Joined: Oct 05, 2009
Posts: 121

Hi,

Sorry, Is that you want the text to display on the page or not? I am confused.
if you dont want to display the text on the page it self, then you can handle it with css

Sun Certified Java Programmer with 93 percent
Ilari Moilanen
Ranch Hand

Joined: Apr 15, 2008
Posts: 198
I too do not understand what is your problem there. You say above that the code above hides the link but not the text inside. But I do not see how. Your code above hides nothing! And what do you mean by hiding the link? The text that is inside the link is the visible part of any link so what exactly have you hidden when you say you hide the link but not the text?

In any case using CSS you can hide the link (what ever that means) and the text inside by using display:none.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You could also do:


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating invisible links and text on my JSP
 
Similar Threads
CSS: specifiying the link (incl hover, visited) colors for a class
to remove hyperlink after the page is accessed.
passing parameters with LookupDispatchAction
h:outputLink link area in menu item too small - is there a workaround?
Remove the underline from the links