]
Nick Belaevski commented on RF-10847:
-------------------------------------
Applies to:
- collapsiblePanel
- togglePanel
- accordion
- tabPanel
switchable panels: only panels which should appears on the
client(current or ones with client mode) should be rendered.
-----------------------------------------------------------------------------------------------------------------------
Key: RF-10847
URL:
https://issues.jboss.org/browse/RF-10847
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-panels-layout-themes
Affects Versions: 4.0.0.Final
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
Priority: Critical
Labels: design, tran
Fix For: 4.0.1.Milestone1
base functionality.
see forum thread.
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
</h:head>
<h:body>
<h:form id="mainForm">
<script type="text/javascript">
alert("OUTSIDE Tab!");
</script>
<rich:tabPanel switchType="client">
<rich:tab>
<script type="text/javascript">
alert("INSIDE Tab!");
</script>
asdasdasd
</rich:tab>
</rich:tabPanel>
<a4j:commandButton value="CLICK HERE" immediate="true"
render="@none"/>
<h:commandButton value="CLICK HERE"
immediate="true">
<f:ajax/>
</h:commandButton>
</h:form>
<a4j:log></a4j:log>
</h:body>
</html>
Even render="@none" not prevents from rendering. I see next in log
Element update for id=mainForm:j_idt9
<update id="mainForm:j_idt9"><![CDATA[<div
id="mainForm:j_idt9" class="rf-tab"><div
class="rf-tab-cnt" id="mainForm:j_idt9:content"> <script
type="text/javascript"> alert("INSIDE Tab!"); </script>
asdasdasd </div><script type="text/javascript">new
RichFaces.ui.Tab("mainForm:j_idt9",{"index":0,"leave":null,"togglePanelId":"mainForm:j_idt8","switchMode":"client","name":"j_idt9","enter":null,"disabled":false}
)</script></div>]]></update>
For f:ajax works just fine.
Still not fixed! That should be reviewed and solved in not long term as there were really
too much threads in 3.3.x and now we implemented the same issue again :(
--
This message is automatically generated by JIRA.
For more information on JIRA, see: