MyFaces Core
  1. MyFaces Core
  2. MYFACES-2583

f:ajax cannot retrieve clientId from component

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

      1. MyFaces_Test.war
        2.68 MB
        Ganesh Jung

        Activity

        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jakob Korherr made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Jakob Korherr [ jakobkorherr ]
        Fix Version/s 2.0.0-beta-3 [ 12314776 ]
        Resolution Fixed [ 1 ]
        Ganesh Jung made changes -
        Field Original Value New Value
        Attachment MyFaces_Test.war [ 12437586 ]
        Ganesh Jung created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development