Thursday, 12 September 2013

JSF - Adding a link to a dialog box

JSF - Adding a link to a dialog box

I am adding a link to a dialog box which I have done, but I have an issue
where it is bringing in part of the URL which I don't want from Apache. I
need the link to go straight to the page.
The code is below:
<t:commandLink rendered="#{navigator.link}"
action="#{navigator.showLink}" target="tut">
<t:updateActionListener property="#{navigator.link}" value="TUT" />
<h:outputText escape="false" target="tut"
value="#{pqfn:format('TUTORIAL_LINK')}">#{s.displayName} </h:outputText>
</t:commandLink>
The problem is that the link will need to be frequently updated within the
database. So the text TUTORIAL_LINK points to a link in the database and
the escape='false' takes the HTML away and this should go straight to the
link. But this brings in
http://localhost/navigate/http://www.tutoriallink.com where as I need it
to just show http://www.tutoriallink.com.
Is there a better way of doing this?
Thanks.

No comments:

Post a Comment