[
https://jira.jboss.org/jira/browse/RF-3978?page=com.atlassian.jira.plugin...
]
Alexander Smirnov resolved RF-3978.
-----------------------------------
Resolution: Won't Fix
For a correct updates with layout="none" reRender attribute should be set to
a4j:outputPanel id.
There is working code:
<h:selectBooleanCheckbox value="#{bean.checked}">
<a4j:support event="onclick" reRender="panel" />
</h:selectBooleanCheckbox>
<a4j:outputPanel id="panel" ajaxRendered="false"
layout="none">
<h:outputText id="text" value="#{bean.text2}"
rendered="#{bean.checked}"/>
</a4j:outputPanel>
Fix ajax OutputPanel layout=none behavior.
-------------------------------------------
Key: RF-3978
URL:
https://jira.jboss.org/jira/browse/RF-3978
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Alexander Smirnov
Assignee: Alexander Smirnov
Fix For: 3.2.2
Documentation says that in order to use outputPanel as a place holder for un-rendered
components the layout="none" attrribute should be used.
This works only from rendered="false" to rendered="true" but not the
other way, so once a component is rendered there is no way to un-render it with ajax
request.
The RichFaces demo explains how to use the layout="none" attribute but then
shows a completely different way to use the outputPanel... WITHOUT the
layout="none" attribute.
http://livedemo.exadel.com/richfaces-demo/richfaces/outputPanel.jsf?c=out...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira