• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF h:outputLink issue.  RSS feed

 
Kunjal Shah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Our environment -- WPS 5.1 -- JSF portlet designed using RAD 6.0

I am trying to create a link to an external website in our JSF portlet using hutputLink tag, but somehow the href generated by <hutputLink/> is appended by the context path "/wps/PA_1_0_342/jsp/" ...

This is relevant JSF code...




and the html code generated ...
<a href="/wps/PA_1_0_342/jsp/http//bl-nt-iwdev1/iw-cc/newform?area_path=/folder/te mplatedata]Create a New Article</a>

Any ideas/suggestions to remove the context path? I tried to use the javascript onClick event but that dosent seem to work with context path in value....

Also I have tried using hxutputLinkEx tag but having the same issue with url appended by context path. I verified that I dont have the context path in my backing bean function -- getDcrEditPath.
 
mpika
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I had the same issue with the jsf h:commandLink.
I resolve mine in writing full url adress. For example for Google link I wrote
'http://www.google.com'.
Hope this will help. Cheers !
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cyr mp", please check your private messages.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!