Not sure if this is confined to portlets or not but I found this in the PanelPositionedRenderer.encodeBegin method:
if (isChanged(facesContext))
{
// Force the re rendering of the entire component. This is due to a strange quick with positioned
// panel. When an element is moved in the same list then it container element moves with it
// When the update occurs the elements are replaced but because the containers have moved
// then the result looks the same. (But a refresh shows otherwise)
Node node = domContext.createTextNode(
"<!-- " + (new Random().nextInt(1000)) + "-->");
root.appendChild(node);
}
It appears that the call to createTextNode is being escaped, leading to the comment actually being displayed.
Not sure if this is confined to portlets or not but I found this in the PanelPositionedRenderer.encodeBegin method:
if (isChanged(facesContext))
{ // Force the re rendering of the entire component. This is due to a strange quick with positioned // panel. When an element is moved in the same list then it container element moves with it // When the update occurs the elements are replaced but because the containers have moved // then the result looks the same. (But a refresh shows otherwise) Node node = domContext.createTextNode( "<!-- " + (new Random().nextInt(1000)) + "-->"); root.appendChild(node); }It appears that the call to createTextNode is being escaped, leading to the comment actually being displayed.