Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3521

javax.faces.ViewState is not updated after ajaxResponse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.6
    • 2.1.7
    • JSR-314
    • None
    • all

    Description

      click 2x times on link

      <h:form>
      <script>
      var x= new String("a")
      </script>
      <script>
      (1==3)? 'd':'e';
      </script>
      <h:commandLink value="link">
      <f:ajax render="@form"/>
      </h:commandLink>
      </h:form>

      I'm not sure that is bug but works in jsf-ri.
      In real scenario problem occurs for example if AUTO_SCROLL in contex-param is set to true and rich:tooltip is used.

      Rendered HTML markup:

      <script>
      <!--
      new RichFaces.ui.Tooltip("j_id_v:j_id_3y",{"ajax":

      {"incId":"1"}

      ,"target":"j_id_v:j_id_3y","offset":[10,10] } )
      //-->
      </script>
      <script>
      <!--
      (!window.myfaces) ? window.myfaces = {} : null;(!myfaces.core) ? myfaces.core = {} : null;(!myfaces.core.config) ? myfaces.core.config = {} : null;myfaces.core.config.autoScroll = true;
      //-->
      </script>

      see
      https://issues.jboss.org/browse/RF-12130

      Attachments

        1. test_js.rar
          4 kB
          wojtask

        Activity

          People

            Unassigned Unassigned
            wojtask9 wojtask
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: