Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weird behaviour of links - there is URL appended to every link displayed on page

 
Sancho Pansa
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the problem:

Take a look at: http://postimage.org/image/zclhvutfl/

The question is how to get rid of appending the urls to links?? They are appended to every link in application. I.e. there should be only "Index" and "Time" word in the links, but there is also appended path to them. In Firebug I can see that everything is OK, but the links render as you see on above screenshot.

Im using Apache MyFaces and PrimeFaces on Tomcat 7. I already tried to remove PROJECT_STAGE=development from web.xml, but that was not the issue.
 
Brendan Healey
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It's impossible to say without seeing a code fragment showing how these links are generated.
 
Sancho Pansa
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example:


or:



It also happens when i use h:commandLink etc. This is appended to EVERY link in application, even in primefaces calendar component, the "#" is added to every "day" field in it! Any suggestions?
 
Brendan Healey
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't help you as I don't use primefaces any more. Anyone? (actually this is cross-posted on stackoverflow...)
 
Sancho Pansa
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Primefaces are not the issue. When I'm using MyFaces components, such as h:commandLink it also happens and I think this issue is more connected to MyFaces than to Primefaces. Maybe it is some kind of MyFaces implementation specific behavior? And maybe somewhere is a param I have to set to get rid of it?
 
Sancho Pansa
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOLVED: it was just z blueprint css style for <a>

a:link:after, a:visited:after { content: " (" attr(href) ")"; font-size: 90%; }

sounds funny, but I'm working with blueprint for one year now, but versions I had eariler didn't have this feature ;-)
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic