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

f:ajax cannot retrieve clientId from component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-2
    • 2.0.0-beta-3
    • JSR-314
    • None
    • JSF

    Description

      This code:
      <h:form id="myForm">
      <h:inputText value="#

      {myBean.test}">
      <f:ajax render="#{myBean.bindingMyTest.clientId}" event="keyup"/>
      </h:inputText>
      <h:inputText id="myText" value="#{myBean.test}

      " binding="#

      {myBean.bindingMyTest}

      " />
      </h:form>

      produces java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection

      while this works:
      <h:form id="myForm">
      <h:inputText value="#

      {myBean.test}">
      <f:ajax render="myForm:myText" event="keyup"/>
      </h:inputText>
      <h:inputText id="myText" value="#{myBean.test}

      "/>
      </h:form>

      On Mojarra both work fine. My guess is here's some problem with the special lifecycle of bindings properties.

      Attachments

        1. MyFaces_Test.war
          2.68 MB
          Ganesh Jung

        Activity

          People

            jakobkorherr Jakob Korherr
            ganesh.jung Ganesh Jung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: