ICEfaces
  1. ICEfaces
  2. ICE-5137

ICEfaces 2.0 large initial page update

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha1
    • Fix Version/s: 2.0-Alpha2, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2.0

      Description


      Soon after loading the auction demo, it can be seen to squirm briefly and then settle into regular clock updates.

        Activity

        Hide
        Ted Goddard added a comment -

        Analysis of the initial update shows it to be due to the DOM update propagating up to the entire form. This is due to initial URL-rewriting prior to JSESSIONID cookie establishment:

        <form action="/auction/auction.jsf;jsessionid=F4A4B758C8687B8F6486A4993F8CF058" enctype="application/x-www-form-urlencoded" id="iceForm" method="post" name="iceForm">

        changes to

        <form action="/auction/auction.jsf" enctype="application/x-www-form-urlencoded" id="iceForm" method="post" name="iceForm">

        The easiest way to resolve this is likely to establish the session on the first request. We currently redirect from index.html:

        <meta http-equiv="Refresh" content="0;url=auction.jsf">

        but redirection from index.jsp should be investigated.

        Show
        Ted Goddard added a comment - Analysis of the initial update shows it to be due to the DOM update propagating up to the entire form. This is due to initial URL-rewriting prior to JSESSIONID cookie establishment: <form action="/auction/auction.jsf;jsessionid=F4A4B758C8687B8F6486A4993F8CF058" enctype="application/x-www-form-urlencoded" id="iceForm" method="post" name="iceForm"> changes to <form action="/auction/auction.jsf" enctype="application/x-www-form-urlencoded" id="iceForm" method="post" name="iceForm"> The easiest way to resolve this is likely to establish the session on the first request. We currently redirect from index.html: <meta http-equiv="Refresh" content="0;url=auction.jsf"> but redirection from index.jsp should be investigated.
        Hide
        Ted Goddard added a comment -

        There may be cases where a Servlet-mapped welcome page are supported (such as Servlet 3.0), however this would still suffer from the JSESSIONID establishment problem and would subject a critical feature (loading the first page of the application) to a Servlet 3.0 requirement.

        <welcome-file-list>
        <welcome-file>auction.jsf</welcome-file>
        </welcome-file-list>

        Show
        Ted Goddard added a comment - There may be cases where a Servlet-mapped welcome page are supported (such as Servlet 3.0), however this would still suffer from the JSESSIONID establishment problem and would subject a critical feature (loading the first page of the application) to a Servlet 3.0 requirement. <welcome-file-list> <welcome-file>auction.jsf</welcome-file> </welcome-file-list>
        Hide
        Ted Goddard added a comment -

        Using index.jsp as follows is effective at establishing a session prior to JSF rendering:

        <%
        response.sendRedirect("auction.jsf");
        %>

        Show
        Ted Goddard added a comment - Using index.jsp as follows is effective at establishing a session prior to JSF rendering: <% response.sendRedirect("auction.jsf"); %>
        Hide
        Ted Goddard added a comment -

        Sample application template also modified. Extra index.html files removed.

        Show
        Ted Goddard added a comment - Sample application template also modified. Extra index.html files removed.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: