ICEfaces
  1. ICEfaces
  2. ICE-7182

The ICEfaces form decorations are not added during postbacks when running under MyFaces 2.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1-Beta, 3.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2 MyFaces 2
    • Assignee Priority:
      P1

      Description

      On normal stock h: components, ICEfaces 'decorates' forms in order to add stuff needed for form submission. This includes:

            <input name="ice.window" type="hidden" value="fbgs26iu6l" />
            <input name="ice.view" type="hidden" value="veamhp42" />
            <script id="hForm:hForm_captureSubmit" type="text/javascript">
            ice.captureSubmit('hForm',false);ice.captureEnterKey('hForm');</script>

      This work is done in a class called FormSubmit and is implemented as SystemEventListener that listens for HtmlForm components that trigger PostAddToViewEvents:

      public class FormSubmit implements SystemEventListener {

              <system-event-listener>
                  <system-event-listener-class>org.icefaces.impl.event.FormSubmit</system-event-listener-class>
                  <system-event-class>javax.faces.event.PostAddToViewEvent</system-event-class>
              </system-event-listener>

      While this strategy appears to work fine in Mojarra, the form decorations are not being applied when running under MyFaces and the Ajax request is a postback.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #25390 Thu Sep 01 16:35:10 MDT 2011 deryk.sinotte ICE-7182: ensure ICEfaces form information is added during Ajax updates when running under MyFaces
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml
          Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/FormSubmit.java

            People

            • Assignee:
              Deryk Sinotte
              Reporter:
              Deryk Sinotte
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: