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

f:ajax cannot retrieve clientId from component

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta-2
    • Fix Version/s: 2.0.0-beta-3
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: