0 Replies Latest reply on Jan 25, 2013 5:59 PM by Camille Wall

    ColorPicker widget causes FileUpload to no longer function

    Camille Wall Newbie

      I have been using richfaces for many years now and have run into a problem I just cannot explain.  I have a form that contains a rich:colorPicker and a rich:fileUpload widget.  It appears the colorPicker widget is causing the fileUpload to not be able to upload a file, but when I delete the colorPicker everything works fine.  The main browser I need to support is IE, where this combination does not work, however the fileUpload seems to work without a problem in the latest version of Firefox.

       

      I realize I am using an older version of richfaces and JBoss, but I am constrained and cannot update.

      Richfaces version: 3.3.1

      JBoss AS: 4.2.3

       

      xhtml snipit

       

      <h:form>

       

           <h:outputLabel id="primaryColorLabel" for="primaryColorPicker"

             value="Primary Color:"

             styleClass="focusedInstruction"/>

          <rich:colorPicker id="primaryColorPicker" colorMode="hex" value="#{myBean.primaryColor}"/>

       

       

          <h:outputLabel id="uploadLogoWidgetLabel" for="smallUploadDocumentWidget"

             styleClass="auditLabel" value="Logo (.png, .gif, .jpeg):"

             binding="#{myBean.fileLogoSelectorOutput}"/>

         <rich:fileUpload id="uploadDocumentWidget" addControlLabel="Browse"

                  fileUploadListener="#{myBean.fileUploadlistener}"

                  listWidth="400" listHeight="210"

                  maxFilesQuantity="1"

                  acceptedTypes="png, gif, jpg"

                  immediateUpload="true"

                  allowFlash="false">

                  <a4j:support id="supportOnUploadComplete" event="onuploadcomplete"

                      reRender="fileUploadInfo, #{addButtonReRender}" />

                  <a4j:support id="supportOnClear" event="onclear"

                      reRender="uploadDocumentWidget, fileUploadInfo">

                      <a4j:actionparam id="clearParam" name="fname" noEscape="true"

                          value="(event.memo.entry)?event.memo.entry.fileName:'' "

                          assignTo="#{myBean.fileName}"

                          actionListener="#{myBean.clearUploadFile}" />

                  </a4j:support>

                  <f:facet name="label">

                      <h:outputText id="uploadDocLabel"

                          value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}"></h:outputText>

                  </f:facet>

              </rich:fileUpload>

       

           <a4j:commandButton id="commandBtnSaveTheme"

                                  value="Save"

                                  action="#{myBean.saveTheme}"

                                  reRender="poll,panelGroupPollRerender,addItemRegion"/>

      </h:form>