[
https://issues.jboss.org/browse/RF-13769?page=com.atlassian.jira.plugin.s...
]
Michal Petrov commented on RF-13769:
------------------------------------
The pre-rendering happens because the components that don't render children
wouldn't render the placeholder in the first place. We need to cancel the second
rendering during {{RendererBase.encodeEnd}} but it's a final method so we cannot
override it. It jumps straight into {{PlaceholderRender.doEncodeEnd}} which is the
CDK-generated method (and we need it for the first rendering). I am not sure where to
insert the check.
placeholder with empty @selector renders twice
----------------------------------------------
Key: RF-13769
URL:
https://issues.jboss.org/browse/RF-13769
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.5.0.Alpha3
Reporter: Michal Petrov
Fix For: 4.5.0.Beta1
{code}
<component>
<rich:placeholder>
</component>
{code}
will result in
{code}
<span> … placeholder JS code … </span>
<element>
<span> … placeholder JS code … </span>
</element>
{code}
Doesn't affect components that don't render children (eg. inputText).
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)