4 Replies Latest reply on Sep 16, 2011 7:59 AM by anton.leliuk

    Suggestionbox prevents form submit on Opera 9.64

    morman

      Hi Everybody.

      I have following problem on Opera 9.64. I have form with 2 inputText component's and to one I've attached suggestionbox component. If I allow to suggestion box appear I am unable to submit form (simply no action is taken), even if I don't select any option from box. If I provide inputs not allowing to suggestion box to appear, everything works fine.

      All works fine on FFX and Chrome (not tested on IE), so I don't think that it is a problem with my code. Only on Opera I have problems.

      Does anybode have similar issue, and knows some workaround?

      I've tested on RichFaces 3.3.1.GA.

      Regards,
      Michal

        • 1. Re: Suggestionbox prevents form submit on Opera 9.64
          ilya_shaikovsky

          any js errors in opera client side log?

          • 2. Re: Suggestionbox prevents form submit on Opera 9.64
            morman

            Nope. None js errors in opera error console.

            • 3. Re: Suggestionbox prevents form submit on Opera 9.64
              ilya_shaikovsky

              ok.. show the code please.

              • 4. Re: Suggestionbox prevents form submit on Opera 9.64
                anton.leliuk

                I have the same problem in Opera 11.51. I've tested on RichFaces 3.3.1 GA and RichFaces 3.3.3 GA

                 

                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                <ui:composition xmlns="http://www.w3.org/1999/xhtml"

                          xmlns:ui="http://java.sun.com/jsf/facelets"

                          xmlns:h="http://java.sun.com/jsf/html"

                          xmlns:f="http://java.sun.com/jsf/core"

                          xmlns:c="http://java.sun.com/jstl/core"

                xmlns:a4j="http://richfaces.org/a4j"

                xmlns:rich="http://richfaces.org/rich">

                 

                      <h:form id="#{id}" rendered="#{rendered}">

                <h:panelGroup rendered="#{rendered}">

                <h:inputText id="#{prefix}_#{field.fieldDef.code}" value="#{field.value}" maxlength="#{maxlength}">

                <a4j:support event="onblur"

                ajaxSingle="#{field.fieldDef.getA4jSupportOptionsForEvent('onblur').ajaxSingle}"

                limitToList="#{field.fieldDef.getA4jSupportOptionsForEvent('onblur').limitToList}"

                disabled="#{field.fieldDef.getA4jSupportOptionsForEvent('onblur').disabled}"

                reRender="#{field.fieldDef.getA4jSupportOptionsForEvent('onblur').reRenderIds}"/>

                <a4j:support event="onkeyup"

                ajaxSingle="#{field.fieldDef.getA4jSupportOptionsForEvent('onkeyup').ajaxSingle}"

                limitToList="#{field.fieldDef.getA4jSupportOptionsForEvent('onkeyup').limitToList}"

                disabled="#{field.fieldDef.getA4jSupportOptionsForEvent('onkeyup').disabled}"

                reRender="#{field.fieldDef.getA4jSupportOptionsForEvent('onkeyup').reRenderIds}"/>

                </h:inputText>

                 

                <rich:suggestionbox id="#{prefix}_#{field.fieldDef.code}SuggestionFieldBox"

                immediate="true"

                for="#{prefix}_#{field.fieldDef.code}"

                suggestionAction="#{suggestbox.autocomplete}"

                var="result"

                fetchValue="#{result.name}"

                minChars="2"

                shadowOpacity="4"

                shadowDepth="4"

                border="1"

                width="200"

                height="100"

                cellpadding="2"

                cellspacing="2"

                requestDelay="500">

                <h:column>

                <h:outputText value="#{result.name}"/>

                </h:column>

                </rich:suggestionbox>

                </h:panelGroup>

                <h:panelGroup>

                <a4j:htmlCommandLink id="backButton" action="back" value="Назад" immediate="true"/>

                <a4j:htmlCommandLink id="saveButton" action="save" value="Сохранить" />

                <a4j:htmlCommandLink id="saveAfterIcrButton" action="saveContractAfterIcr" style="display: none;"/>

                </h:panelGroup>

                     </h:form>

                 

                </ui:composition>

                After selecting a value from suggestionBox and click on the button saveButton not submit form