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

valueChangeNotifier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Like valueChangeListener but will fire valueChange event AFTER the UPDATE_MODEL phase.

      Its not correctly packaged and it didnt use the right package names yet , though, functional.
      It would be great if there is a developer which will review this code so I/he can prepare it for addition to tomahawk.

      Maybe Simon? (as you state you do have the same needs)

      It requires a phase listener installed in your fase-config. I am sure we can hide this from the user after we packaged it

      faces-config

      <lifecycle>
      <phase-listener>com.ops.OPSJ.jsflib.PhaseListener</phase-listener>
      </lifecycle>

      TLD

      <tag>
      <name>valueChangeNotifier</name>
      <tag-class>com.ops.OPSJ.jsflib.valueChangeNotifier.ValueChangeNotifierTag</tag-class>
      <body-content>JSP</body-content>
      <description>
      <p>
      Add a value change listener which will be fired AFTER UPDATE_MODEL.
      Only "method" valueChange listeners are supported currently.
      </p>
      e.g. myBean.myMethoListener
      </description>
      <attribute>
      <name>name</name>
      <required>true</required>
      <rtexprvalue>false</rtexprvalue>
      </attribute>
      </tag>

      Attachments

        1. ValueChangeCollector.java
          2 kB
          Mario Ivankovits
        2. ValueChangeManager.java
          4 kB
          Mario Ivankovits
        3. ValueChangeNotifierTag.java
          4 kB
          Mario Ivankovits
        4. ValueChangePhaseListener.java
          1 kB
          Mario Ivankovits

        Activity

          People

            matzew Matthias Wessendorf
            imario Mario Ivankovits
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: