Let me put the question in other words so, it may help remove it as a duplicate,
Is there a way to to use Xpages custom converter to display URL in text box as a hyperlink.
Asked
Active
Viewed 260 times
3

Eric McCormick
- 2,716
- 2
- 19
- 37

user3379225
- 101
- 5
-
it has to "behave" like a link or it just needs to look like a link? i mean, what should happen if you click it? – lacexd Sep 06 '16 at 12:31
-
3@Rayon please unmark this as a duplicate. It's not. This is about a custom converter in XPages, not a JavaScript solution. The JavaScript solution is inadvisable as it would require duplication of code across applications and within application. XPages best practice is to use a custom converter coded in Java / SSJS or ideally is an OSGi plugin and applied to components via a theme. – Paul Stephen Withers Sep 06 '16 at 12:36
-
it should behave like a link – user3379225 Sep 06 '16 at 12:39
-
1@Rayon - as Paul Withers said - this is not a duplicate question. This has nothing to do with the question you linked to as this is NOT a JavaScript question. This is a question on XPages technology and server side rendering. – David Leedy Sep 06 '16 at 13:05
-
hope if duplicate is not removed from here will get some hint on notesin9.com or http://www.intec.co.uk/ – user3379225 Sep 06 '16 at 13:28
-
1I sent a note to the moderators to try and remove the duplicate flag. If not you can always re-ask and just use xpages tags and not the javascript tag because that person doesn't have a clue about what you're trying to do. the only answer I can give you us "custom renderer". This was featured on NotesIn9 156 and 174 as well as also 63 an 64 I believe. I'd start with the more recent shows. – David Leedy Sep 06 '16 at 13:34
-
1Hi @All, My sincere apologies guys. I have voted to re-open this question.. – Rayon Sep 06 '16 at 16:22
-
I added my vote to re-open, and I think that did the trick. – Richard Schwartz Sep 06 '16 at 17:24
1 Answers
1
No, a converter converts data types... you would need a custom renderer to write out the needed anchor tags around your link.
What type of control are you using? If a <text>
control (computed field) you can specify it as html for the content type and wrap your value you are getting from somewhere around the appropriate <a>
tags.