Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-204

JspTilesViewHandlerImpl create view for CSS external files (<link></link>) and it causes problem in forms containing input elements with non-ascii caracters entered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.1.1
    • Tiles
    • None
    • Linux, MyFaces 1.1.1, JDK 1.5, Tomcat 5.5

    Description

      Strangely, JspTilesViewHandler tries to create a view for CSS external file (<link></link>). This behavior causes a problem with InputForm and InputText with non-ascii caracters entered (éàè for example). For example, if I enter "bébé" I get "bébé" after postback of the form.

      If I delete my external link for my CSS, everything works fine.

      I'm quite sure it is not an encoding problem. I have tried to use "accept" and "enctyp" for the form. I have set the encoding of my JSP (<%@ page contentType="text/html;charset=UTF-8" language="java" %>) and I have set the html head with content-type (<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"/>) but without any success. Only the deletion of the external CSS works to solve the problem.

      Below is the logging output (first with CSS, second without CSS)

      First call:

      2006-03-20 11:59:59 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspStateManagerImpl - No tree structure state found in client request
      2006-03-20 11:59:59 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspViewHandlerImpl - Created view /test1.jsp
      2006-03-20 11:59:59 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - JspTilesViewHandlerImpl init
      2006-03-20 11:59:59 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - Reading tiles definitions
      2006-03-20 12:00:00 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - Dispatching to /mainLayout.jsp
      2006-03-20 12:00:04 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspStateManagerImpl - No tree structure state found in client request
      2006-03-20 12:00:04 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspViewHandlerImpl - Created view /css/default.css
      2006-03-20 12:00:04 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - Dispatching to /css/default.css

      Postback:

      2006-03-20 12:00:10 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspStateManagerImpl - Tree structure restored from client request
      2006-03-20 12:00:10 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - Dispatching to /mainLayout.jsp
      2006-03-20 12:00:10 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspStateManagerImpl - No tree structure state found in client request
      2006-03-20 12:00:10 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspViewHandlerImpl - Created view /css/default.css
      2006-03-20 12:00:10 [http-8084-Processor22] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - Dispatching to /css/default.css

      First call:

      2006-03-20 11:58:10 [http-8084-Processor20] DEBUG org.apache.myfaces.application.jsp.JspStateManagerImpl - No tree structure state found in client request
      2006-03-20 11:58:10 [http-8084-Processor20] DEBUG org.apache.myfaces.application.jsp.JspViewHandlerImpl - Created view /test1.jsp
      2006-03-20 11:58:10 [http-8084-Processor20] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - Dispatching to /mainLayout.jsp

      Postback:

      2006-03-20 11:58:15 [http-8084-Processor20] DEBUG org.apache.myfaces.application.jsp.JspStateManagerImpl - Tree structure restored from client request
      2006-03-20 11:58:15 [http-8084-Processor20] DEBUG org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl - Dispatching to /mainLayout.jsp

      Attachments

        Activity

          People

            Unassigned Unassigned
            daucourt Philippe Daucourt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: