ICEfaces
  1. ICEfaces
  2. ICE-10417

icecore:defaultAction doesn't submit form field values

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: EE-4.0.0.GA, 4.1
    • Component/s: ICECORE-Components
    • Labels:
      None
    • Environment:
      Tomcat

      Description

      Previously this component would submit the contents of its parent form to the server when the designated key was pressed. Now there is still a submit to the server, but none of the fields are sent.

      <h:form id="regForm">
        <ace:textEntry id="nameIn" value="#{userBean.name}"/>
        <icecore:defaultAction actionListener="#{userController.register}" key="Enter"/>
      </h:form>

      In the above case in 3.3 we would see the name being sent to the server, whereas in 4.0 the submit looks like:
      f:defaultActionOnEnter=
      ice.event.alt=false
      ice.event.captured=f:defaultActionOnEnter
      ice.event.ctrl=false
      ice.event.keycode=13
      ice.event.meta=false
      ice.event.shift=false
      ice.event.target=f:passField_input
      ice.event.type=onkeydown
      ice.focus=f:passField_input
      ice.submit.serialization=element
      ice.submit.type=ice.se
      ice.view=3i37mg2wl:i6
      ice.view=3i37mg2wl:i6
      ice.window=c3i37mfmi6
      ice.window=c3i37mfmi6
      javax.faces.ClientWindow=c3i37mfmi6
      javax.faces.ViewState=-8340356029913225045:8446322854127289620
      javax.faces.partial.ajax=true
      javax.faces.partial.event=keydown
      javax.faces.partial.execute=f:defaultActionOnEnter
      javax.faces.partial.render=@all
      javax.faces.source=f:defaultActionOnEnter
      v3i37mg2wl-i6-single-submit=v3i37mg2wl-i6-single-submit

      So it's missing something like:

      regForm:nameInInput_input

        Activity

        Hide
        Mircea Toma added a comment -

        Modified ice.captureKeypress function to use the newly introduced submitExecuteForm function for submitting the captured key events. submitExecuteForm fully submits the form with render=@all execute=@form AJAX attributes.

        Show
        Mircea Toma added a comment - Modified ice.captureKeypress function to use the newly introduced submitExecuteForm function for submitting the captured key events. submitExecuteForm fully submits the form with render=@all execute=@form AJAX attributes.
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r43654. Tomcat 7, IE 11, FF 33, Chrome 39.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r43654. Tomcat 7, IE 11, FF 33, Chrome 39.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carlo Guglielmin
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: