Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10847

switchable panels: only panels which should appears on the client(current or ones with client mode) should be rendered.

    Details

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nbelaevski Nick Belaevski
                  Reporter:
                  ilya_shaikovsky Ilya Shaikovsky
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: