Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XPages disableOutput tag issue

Has anyone experienced an issue with disableOutputTag property where if you disable output tag for a computed field control inside a repeat control and have ssjs computed content inside that tag, it won't compute the content? Is disableOutputtag property only meant to work with static content inside a repeat control or is it a bug?

like image 959
pipalia Avatar asked Mar 14 '12 11:03

pipalia


2 Answers

I don't know whether its a bug or not, but you can emulate the behavior of disableOutputTag by removing the ID attribute from and setting the disableTheme attribute to true. Maybe this helps you in short term.

EDIT: You can refer here for more information.

like image 172
Naveen Avatar answered Sep 23 '22 20:09

Naveen


Not only does this happen when placing the xp:Text control inside a repeat but in also when you create a new XPage, add a xp:text onto it and define its value like:

<xp:text value="This is a test" disableOutputTag="true"/>

In the above example the xp:text will disappear. This is not what you would have expected. I would expect that only the value would be visible on the rendered page. But I think I can explain why this happens. Since there are no tags defined (disableoutputtag) somewhere in the rendered of this component it states that it should not generate anything. Because it can not bind its id to 'nothing' and so on.

Anyway, I could not think of a scenario where I would like to render plain text without any surrounding tags. It should at least be surrounded by a span or paragraph (<p>) tag so you can style it. And an ID would be nice so I can change the contents with a partial refresh.

like image 31
jjtbsomhorst Avatar answered Sep 23 '22 20:09

jjtbsomhorst