Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12931

rich:fileupload broken with jsf.js changes in Mojarra 2.1.21

    XMLWordPrintable

    Details

    • Sprint:
      4.3.2.Final Release

      Description

      On recent versions of Mojarra the following simple fileupload facelet page produces an javascript error:

      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:rich="http://richfaces.org/rich"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:a4j="http://richfaces.org/a4j"
            xmlns:c="http://java.sun.com/jsp/jstl/core">
          <f:view>
              <h:head>
      
              </h:head>
              <h:body>
                  <script type="text/javascript">
                      jsf.ajax.addOnError(function(e) {
                          console.log(e);
                          alert("An error occured:\n" + e.errorName + '\n' + e.description);
                      });
                  </script>
                  <h:form>
                      <rich:fileUpload/>
                  </h:form>
              </h:body>
          </f:view>
      </html>
      

      The problem seems to be that the context.element parameter is undefined in jsf.ajax.response. Probably due to RichFaces' Javascript extensions.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lfryc Lukáš Fryč
                Reporter:
                fkaempfer Frederick Kämpfer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified