ICEfaces
  1. ICEfaces
  2. ICE-10060

Duplicate input ice_fileEntry_encodedURL on forms with fileEntry

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.BETA
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Icefaces 4 from trunk, Tomcat 7, Myfaces 2.2.3
    • Workaround Description:
      Hide
      FileEntryFormSubmit should be extended with id check

      form.getAttributes().put(FormSubmit.DISABLE_CAPTURE_SUBMIT, "true");
      <UIOutput urlOutput = new UIOutput() {
      >UIOutput urlOutput = (UIOutput)form.findComponent(ENCODED_URL_ID);
      >if (urlOutput==null){
      > urlOutput = new UIOutput() {
                  public void encodeBegin(FacesContext context) throws IOException {
      (...)
              output.setTransient(true);
              form.getChildren().add(2, output);
      > }
          }

      Show
      FileEntryFormSubmit should be extended with id check form.getAttributes().put(FormSubmit.DISABLE_CAPTURE_SUBMIT, "true"); <UIOutput urlOutput = new UIOutput() { >UIOutput urlOutput = (UIOutput)form.findComponent(ENCODED_URL_ID); >if (urlOutput==null){ > urlOutput = new UIOutput() {             public void encodeBegin(FacesContext context) throws IOException { (...)         output.setTransient(true);         form.getChildren().add(2, output); > }     }

      Description

      I got form with FileEntry. This form sometimes stop responding on user pushButtons actions afters some uploads and return to this form.
      The reason I found is in response. Sometimes partial response contains duplicated fileEntry components. Example below.

      <form action="/in-web/za.iface" enctype="multipart/form-data" id="email" method="post" name="email">
      <input id="email:ice_fileEntry_encodedURL" name="ice.fileEntry.encodedURL" type="hidden" value="/inscpm-web/zadania.iface?ice.fileEntry.multipart=true" />
      <span id="email:_captureFileOnsubmit">
      <script>ice.ace.fileentry.captureFormOnsubmit('email', 'email:hiddenIframe', 'phvwiai7n:11j1', '/inscpm-web/javax.faces.resource/org.icefaces.ace.component.fileentry.progress.email::vsjcjptu.txt.iface');</script>
      </span>
      <iframe id="email:hiddenIframe" name="email:hiddenIframe" src="about:blank" style="display:none;"/>
      <input id="email:ice_fileEntry_encodedURL" name="ice.fileEntry.encodedURL" type="hidden" value="/inscpm-web/zadania.iface?ice.fileEntry.multipart=true" />
      <span id="email:_captureFileOnsubmit">
      <script>ice.ace.fileentry.captureFormOnsubmit('email', 'email:hiddenIframe', 'phvwiai7n:11j1', '/inscpm-web/javax.faces.resource/org.icefaces.ace.component.fileentry.progress.email::vsjcjptu.txt.iface');</script>
      </span>
      <iframe id="email:hiddenIframe" name="email:hiddenIframe" src="about:blank" style="display:none;"/>
      <input autocomplete="off" name="ice.window" type="hidden" value="pmhvwia56f" />
      <input autocomplete="off" name="ice.view" type="hidden" value="vsjcjptu" />
      1. patch1
        0.2 kB
        Krashan Brahmanjara

        Activity

        Hide
        Krashan Brahmanjara added a comment -

        Patch

        Show
        Krashan Brahmanjara added a comment - Patch

          People

          • Assignee:
            Unassigned
            Reporter:
            Krashan Brahmanjara
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: