Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.8RC1, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      Throughout the forums, users are complaining about the fact that ValueChangeEvents happen before UPDATE_MODEL_VALUES, so if they programmatically set the values for other input components, then those values will be stomped over with the decoded (converted and validated) values. There are two main solutions, to clear out the submitted values on the target components, or to re-queue the ValueChangeEvent to INVOKE_APPLICATION, which requires bean code modifications.

      What would be simpler is to add a component, ice:eventSetPhase, which could override UIComponentBase.queueEvent(FacesEvent), and reset the PhaseId on the FacesEvents passing through. That way, ValueChangeEvents from child components could be flipped to INVOKE_APPLICATION.

      By default it would change all FacesEvents to INVOKE_APPLICATION, but it would have two attributes to optionally constrain this behaviour. The "events" attribute would be a space delimited list of class types to act on, and the "phase" attribute would be the PhaseId to set the FacesEvents to.

      Here's a discussion on the topic in the JSF RI dev mailing list:
      https://javaserverfaces.dev.java.net/servlets/ReadMsg?list=dev&msgNo=1750

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #18241 Wed Jan 28 12:03:58 MST 2009 mark.collette ICE-3486 : ice:setEventPhase
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/jsp/web/WEB-INF/includes/content/navigation.jspx
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice/components/SetEventPhase-component.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/facelets-enh/src/org/icefaces/application/showcase/view/jaxb/resources/application_structure_es.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/common-src/org/icefaces/application/showcase/view/resources/messages_es.properties
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/portlets/web/Components_SetEventPhase.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/component/conf/META-INF/facelet/icefaces.taglib.xml
        Commit graph ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/seteventphase
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/faces-config.xml
        Commit graph ADD /icefaces/trunk/icefaces/component/doc/es/setEventPhase.html
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/custom/setEventPhase-renderer.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/facelets-enh/src/org/icefaces/application/showcase/view/jaxb/resources/application_structure_en.xml
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/custom/setEventPhase-component.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/facelets-enh/src/org/icefaces/application/showcase/view/jaxb/resources/application_structure.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/jsp/web/showcase.jspx
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/common-src/org/icefaces/application/showcase/view/bean/examples/component/setEventPhase
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/portlets/conf/liferay/liferay-portlet.xml
        Commit graph ADD /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-setEventPhase-props.xml
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/common-web/WEB-INF/includes/examples/custom/setEventPhase.jspx
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/common-src/org/icefaces/application/showcase/view/bean/examples/component/setEventPhase/SetEventPhaseBean.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/portlets/conf/portlet.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/common-src/org/icefaces/application/showcase/view/resources/messages_en.properties
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/common-web/WEB-INF/faces-config-example-beans.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/portlets/conf/liferay/liferay-display.xml
        Commit graph ADD /icefaces/trunk/icefaces/component/doc/setEventPhase.html
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/extended-faces-config.xml
        Commit graph ADD /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/seteventphase/SetEventPhase.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/facelets/web/WEB-INF/includes/content/navigation.jspx
        Commit graph ADD /icefaces/trunk/icefaces/component/doc/en/setEventPhase.html
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/faces-config-base.xml

          People

          • Assignee:
            Unassigned
            Reporter:
            Mark Collette
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: