xPages Text Field and & URL

I am using an xPage to deliver content from a form on the web. I have a text field on the form which, depending on user-driven content, may contain a URL in addition to other textual content.

When I deliver the document with content type Notes, I can click on the URL to open the relevant page.

When delivering the document via an xPage, using a Computed Field to display the content, the link is just text. I assume this is because it is within an xp:text tag.

Is there any way to render anything beginning “http://” within a Notes Item to a link on an xPage, or any Core Control that will do it?

Obviously the Link Control will make the whole field’s contents a link, not just the URL; it will also mean I need to traverse the field to find any URL, and means I have to limit the user to only entering one URL in the field.

Subject: Set the content type to HTML

Hi Paul,

On the Computed Field property tab, under options (there is only 1 option), change the content type to HTML. That should do it…

-John

Subject: Excellent, thanks a lot