wood burning stoves 2.0*
The moose likes JSF and the fly likes Why is outputLink not outputting correctly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Why is outputLink not outputting correctly?" Watch "Why is outputLink not outputting correctly?" New topic
Author

Why is outputLink not outputting correctly?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I have this JSF:

<hutputLink value='#{ConfigLoginBean.logoutURL}'>Sign Out</hutputLink>

but what is being output to the browser is

Sign Out<a id="_idJsp2:_idJsp4" name="_idJsp2:_idJsp4" href="https://rhonti:8020/npsconfiggui/jsp/login.jsf?logout=true"></a>

I'm sure this is something really obvious, but could you advise me how to get my "Sign Out" link to be hyperlinked?

Thanks, - Dave
Andres Quinones
Ranch Hand

Joined: Oct 09, 2006
Posts: 57
This should work for you.

<hutputLink value="#{ConfigLoginBean.logoutURL}"> <hutputText value="Sign Out"/> </hutputLink>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why is outputLink not outputting correctly?
 
Similar Threads
Link to a file using h:outputLink tag.
cannot access site from subdirectory
How to pass parameters between pages
JSF Navigation issue
sending values to java script