[richfaces-issues] [JBoss JIRA] Updated: (RF-10847) CLONE - switchable panels: only panels which should appears on the client(current or ones with client mode) should be rendered.

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Tue Apr 5 05:29:33 EDT 2011


     [ https://issues.jboss.org/browse/RF-10847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilya Shaikovsky updated RF-10847:
---------------------------------

            Fix Version/s:     (was: 4.0.0.Milestone6)
        Affects Version/s: 4.0.0.Final
                               (was: 4.0.0.Milestone5)
              Description: 
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 :(

  was:
base functionality.

see forum thread.

consider panels with "client" mode

                  Affects: [Release Notes]
    JBoss Forum Reference: http://community.jboss.org/message/597585#597585  (was: http://community.jboss.org/thread/161106?tstart=0)


> CLONE - 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
>   Original Estimate: 6 hours
>  Remaining Estimate: 6 hours
>
> 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: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list