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

f:ajax doesn't render scripts when h:head is not present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0-beta-3
    • None
    • JSR-314
    • None
    • Java/Javascript resource rendering

    Description

      If a page has no h:head and contains a f:ajax we omit the jsf.js script resource

      example:

      <!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:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      <h:body>
      <h:form id="myForm">
      <h:inputText id="myTest1" value="#

      {myBean.test}">
      <f:ajax render="myTest2" />
      </h:inputText>
      <h:inputText value="#{myBean.test}

      " id="myTest2" />
      </h:form>
      </h:body>
      </html>

      Attachments

        1. MyFaces_Test.war
          2.70 MB
          Ganesh Jung

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              ganesh.jung Ganesh Jung
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: