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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19678 Fri Nov 13 10:12:14 MST 2009 ted.goddard redirect to index.jsp to establish JSESSIONID (ICE-5137)
        Files Changed
        Commit graph ADD /icefaces/scratchpads/glimmer/samples/basic/src/main/webapp/index.jsp
        Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/basic/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/samples/auctionMonitor/web/index.jsp
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/samples/component-showcase/web/index.jsp
        Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/auction/src/main/webapp/WEB-INF/web.xml
        Commit graph ADD /icefaces/scratchpads/glimmer/samples/auction/src/main/webapp/index.jsp
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19679 Fri Nov 13 10:16:35 MST 2009 ted.goddard modified project template for first page redirection (ICE-5137)
        Files Changed
        Commit graph DEL /icefaces/scratchpads/glimmer/samples/build/template/src/main/webapp/index.html
        Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/build/template/src/main/webapp/WEB-INF/web.xml
        Commit graph ADD /icefaces/scratchpads/glimmer/samples/build/template/src/main/webapp/index.jsp
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19681 Fri Nov 13 10:19:19 MST 2009 ted.goddard removed index.html files (ICE-5137)
        Files Changed
        Commit graph DEL /icefaces/scratchpads/glimmer/compat/samples/component-showcase/web/index.html
        Commit graph DEL /icefaces/scratchpads/glimmer/samples/basic/src/main/webapp/index.html
        Commit graph DEL /icefaces/scratchpads/glimmer/samples/auction/src/main/webapp/index.html
        Ted Goddard created issue -
        Ted Goddard made changes -
        Field Original Value New Value
        Assignee Ted Goddard [ ted.goddard ]
        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.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0-Alpha2 [ 10214 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19828 Mon Nov 30 15:45:19 MST 2009 ted.goddard rename mobileChat to .xhtml (ICE-5137)
        Files Changed
        Commit graph ADD /icefaces/scratchpads/glimmer/compat/samples/auctionMonitor/web/mobileChat.xhtml
        Commit graph DEL /icefaces/scratchpads/glimmer/compat/samples/auctionMonitor/web/mobileChat.jspx
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19829 Mon Nov 30 15:45:56 MST 2009 ted.goddard h:head and h:body tags (ICE-5137)
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/samples/auctionMonitor/web/mobileChat.xhtml
        Ken Fyten made changes -
        Fix Version/s 2.0.0 [ 10230 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: