1 2 Previous Next 17 Replies Latest reply: Nov 5, 2012 7:25 AM by Renan Barbalho RSS

    autoSuggestBehavior operation

    Renan Barbalho
      Hi guys,

      I've a problem.
      I've a jspx page that some adf components and they work fine in Google Chrome and Firefox but they don't work in Internet Explore in special the operation AutoSuggest. I'm using the operation under a inputComboboxListOfValues this way:
                <af:popup id="p1" binding="#{backingBeanScope.backing_mainPage.p1}" contentDelivery="lazyUncached">
                      <af:dialog id="d2" binding="#{backingBeanScope.backing_mainPage.d2}" title="Definir Localidade"
                                 closeIconVisible="false" type="yesNo" affirmativeTextAndAccessKey="Definir"
                                 cancelTextAndAccessKey="Cancelar"
                                 dialogListener="#{backingBeanScope.backing_mainPage.definirLocalidade}">
                          <f:facet name="buttonBar"/>
                          <af:panelGroupLayout id="pgl3" binding="#{backingBeanScope.backing_mainPage.pgl3}" layout="vertical"
                                               halign="left">
                              <af:selectOneChoice value="#{bindings.Estado.inputValue}" label="Estado"
                                                  required="#{bindings.Estado.hints.mandatory}" shortDesc="ESTADO - UF"
                                                  id="soc1" binding="#{backingBeanScope.backing_mainPage.soc1}"
                                                  autoSubmit="true" contentStyle="width:200px;">
                                  <f:selectItems value="#{bindings.Estado.items}" id="si1"/>
                              </af:selectOneChoice>
                              <af:inputComboboxListOfValues id="iclov1"
                                                            popupTitle="Search and Select: #{bindings.Municipio1.hints.label}"
                                                            value="#{bindings.Municipio1.inputValue}"
                                                            label="#{bindings.Municipio1.hints.label}"
                                                            model="#{bindings.Municipio1.listOfValuesModel}"
                                                            required="#{bindings.Municipio1.hints.mandatory}"
                                                            columns="#{bindings.Municipio1.hints.displayWidth}"
                                                            shortDesc="#{bindings.Municipio1.hints.tooltip}"
                                                            binding="#{backingBeanScope.backing_mainPage.iclov1}"
                                                            contentStyle="width:200px;" autoSubmit="true"
                                                            partialTriggers="soc1">
                                  <f:validator binding="#{bindings.Municipio1.validator}"/>
                                  <af:autoSuggestBehavior suggestedItems="#{bindings.Municipio1.suggestedItems}"/>
                              </af:inputComboboxListOfValues>
                              <af:selectOneChoice value="#{bindings.Localidade.inputValue}" label="Localidade"
                                                  required="#{bindings.Localidade.hints.mandatory}"
                                                  shortDesc="LOCALIDADE - CNL - ESTADO" id="soc3"
                                                  binding="#{backingBeanScope.backing_mainPage.soc3}" autoSubmit="true"
                                                  contentStyle="width:400px;" partialTriggers="iclov1"
                                                  valueChangeListener="#{backingBeanScope.backing_mainPage.recuperaInformacoes}">
                                  <f:selectItems value="#{bindings.Localidade.items}" id="si3"/>
                              </af:selectOneChoice>
                          </af:panelGroupLayout>
                      </af:dialog>
                  </af:popup>
      I tried rebuild this page and the operation doesn't work.

      Anybody see any problem in code?

      Jdev version: 11.1.2.2.0

      Regards,

      Renan
        • 1. Re: autoSuggestBehavior operation
          in the line of fire
          Which version of IE ?
          • 2. Re: autoSuggestBehavior operation
            Renan Barbalho
            Hi,

            My IE version is 9.0.8112.16421 (I imagine that is last version)! and my Jdev version is: 11.1.2.2.0

            Renan
            • 3. Re: autoSuggestBehavior operation
              donhoyt
              The fact that it is auto-suggesting in Firefox and Google suggests the code is good (it looks good). So this feels like a Browser issue. Seems silly, but did you check the IE Security settings and make sure you aren't blocking JavaScript, Popup Blocking? Also, make sure that you aren't running the page in "Compatibility Mode" in IE.
              I'm using IE 9.0.8112 and I see Auto-suggesting occurring using the same technique you are (although it's clunky and often doesn't list all hits it should (I can see them in the poplist))
              In 11.1.2 "SuggestedItems" is really there for backward compatibility (easier, but deprecated). They recommend you use "SuggestItems" instead (which, sadly, involves you coding ALL the plumbing). (Perhaps because the SuggestedItems mechanism is iffy)

              In IE, is the Poplist showing all the LOV values that it should?

              Edited by: donhoyt on Jul 5, 2012 6:50 AM
              • 4. Re: autoSuggestBehavior operation
                Renan Barbalho
                Hi,

                My security settings are OK.
                The combobox shows all values created by LOV.

                Renan
                • 5. Re: autoSuggestBehavior operation
                  Renan Barbalho
                  Guys,

                  Anybody have a idea?

                  Renan
                  • 6. Re: autoSuggestBehavior operation
                    vinod_t_krishnan
                    what is the version of Ie that you are using.. i check in Ie with autosuggest and it works for me. give us more info to drill down.
                    • 7. Re: autoSuggestBehavior operation
                      Shay Shmeltzer-Oracle
                      Can you see if the auto suggest demo in the ADF faces components demo works on your browser. If it does then maybe it is something in your code, if it doesn't maybe something in your browser setting.
                      • 8. Re: autoSuggestBehavior operation
                        Renan Barbalho
                        Hi Shay,

                        The demo page works fine in my browser. Do you have idea about this problem? Do you have any tip to me find this error?

                        My project uses ADF Taskflow, page fragments and ADF components (Business Components and ADF Rich Faces).

                        this is another page that doesn't work:
                        <?xml version='1.0' encoding='UTF-8'?>
                        <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                        xmlns:f="http://java.sun.com/jsf/core">
                            <af:pageTemplate viewId="/templates/singleTemplateMenu.jspx" id="pt1">
                                <f:facet name="table">
                                    <af:panelGroupLayout id="pgl1" layout="vertical">
                                        <af:panelFormLayout id="pfl1" labelWidth="90">
                                            <af:inputText label="Localidade:" id="it1" value="#{sessionScope.nomeLocalidadeDef}"
                                                          readOnly="true"/>
                                            <af:inputComboboxListOfValues id="logradouroId"
                                                                          popupTitle="Search and Select: #{bindings.Logradouro.hints.label}"
                                                                          value="#{bindings.Logradouro.inputValue}"
                                                                          label="Logradouro:"
                                                                          model="#{bindings.Logradouro.listOfValuesModel}"
                                                                          required="#{bindings.Logradouro.hints.mandatory}"
                                                                          columns="#{bindings.Logradouro.hints.displayWidth}"
                                                                          shortDesc="#{bindings.Logradouro.hints.tooltip}" showRequired="true"
                                                                          contentStyle="width:370px;" autoSubmit="true" autoComplete="on">
                                                <f:validator binding="#{bindings.Logradouro.validator}"/>
                                                <af:autoSuggestBehavior suggestedItems="#{bindings.Logradouro.suggestedItems}"/>
                                            </af:inputComboboxListOfValues>
                                            <af:inputComboboxListOfValues id="numImovel1Id"
                                                                          popupTitle="Search and Select: #{bindings.NumImovel1.hints.label}"
                                                                          value="#{bindings.NumImovel1.inputValue}"
                                                                          label="Número:"
                                                                          model="#{bindings.NumImovel1.listOfValuesModel}"
                                                                          columns="#{bindings.NumImovel1.hints.displayWidth}"
                                                                          shortDesc="NÚMERO"
                                                                          binding="#{backingBeanScope.backing_fragments_interfacededicacao.numImovel1Id}"
                                                                          required="true" autoSubmit="true" contentStyle="width:80px;"
                                                                          showRequired="true">
                                                <af:autoSuggestBehavior suggestedItems="#{bindings.NumImovel1.suggestedItems}"/>
                                            </af:inputComboboxListOfValues>
                                            <af:selectOneChoice value="#{bindings.Compl1.inputValue}" label="Complemento 1:"
                                                                required="#{bindings.Compl1.hints.mandatory}"
                                                                shortDesc="#{bindings.Compl1.hints.tooltip}" id="soc1"
                                                                contentStyle="width:120px;" autoSubmit="true">
                                                <f:selectItems value="#{bindings.Compl1.items}" id="si1"/>
                                            </af:selectOneChoice>
                                            <af:inputText value="#{bindings.ComplValor1.inputValue}" label="Compl. Valor 1:"
                                                          required="#{bindings.ComplValor1.hints.mandatory}"
                                                          columns="15"
                                                          maximumLength="#{bindings.ComplValor1.hints.precision}"
                                                          shortDesc="#{bindings.ComplValor1.hints.tooltip}" id="it2">
                                                <f:validator binding="#{bindings.ComplValor1.validator}"/>
                                            </af:inputText>
                                            <af:selectOneChoice value="#{bindings.Compl2.inputValue}" label="Complemento 2:"
                                                                required="#{bindings.Compl2.hints.mandatory}"
                                                                shortDesc="#{bindings.Compl2.hints.tooltip}" id="soc2"
                                                                contentStyle="width:120px;" autoSubmit="true">
                                                <f:selectItems value="#{bindings.Compl2.items}" id="si2"/>
                                            </af:selectOneChoice>
                                            <af:inputText value="#{bindings.ComplValor2.inputValue}" label="Compl. Valor 2:"
                                                          required="#{bindings.ComplValor2.hints.mandatory}"
                                                          columns="15"
                                                          maximumLength="#{bindings.ComplValor2.hints.precision}"
                                                          shortDesc="#{bindings.ComplValor2.hints.tooltip}" id="it3">
                                                <f:validator binding="#{bindings.ComplValor2.validator}"/>
                                            </af:inputText>
                                            <af:selectOneChoice value="#{bindings.Compl3.inputValue}" label="Complemento 3:"
                                                                required="#{bindings.Compl3.hints.mandatory}"
                                                                shortDesc="#{bindings.Compl3.hints.tooltip}" id="soc3"
                                                                contentStyle="width:120px;" autoSubmit="true">
                                                <f:selectItems value="#{bindings.Compl3.items}" id="si3"/>
                                            </af:selectOneChoice>
                                            <af:inputText value="#{bindings.ComplValor3.inputValue}" label="Compl. Valor 3:"
                                                          required="#{bindings.ComplValor3.hints.mandatory}"
                                                          columns="15"
                                                          maximumLength="#{bindings.ComplValor3.hints.precision}"
                                                          shortDesc="#{bindings.ComplValor3.hints.tooltip}" id="it4">
                                                <f:validator binding="#{bindings.ComplValor3.validator}"/>
                                            </af:inputText>
                                            <af:selectOneChoice value="#{bindings.Bairro.inputValue}" label="#{bindings.Bairro.label}"
                                                                required="#{bindings.Bairro.hints.mandatory}"
                                                                shortDesc="#{bindings.Bairro.hints.tooltip}" id="soc4"
                                                                contentStyle="width:300px;" autoSubmit="true"
                                                                partialTriggers="logradouroId">
                                                <f:selectItems value="#{bindings.Bairro.items}" id="si4"/>
                                            </af:selectOneChoice>
                                        </af:panelFormLayout>
                                        <af:panelGroupLayout id="pgl2" layout="horizontal">
                                            <af:inputText value="#{bindings.QtdeFacil.inputValue}" label="Qtd. Facilidades"
                                                          required="#{bindings.QtdeFacil.hints.mandatory}"
                                                          columns="5"
                                                          maximumLength="#{bindings.QtdeFacil.hints.precision}"
                                                          shortDesc="#{bindings.QtdeFacil.hints.tooltip}" id="it5" autoSubmit="true"
                                                          showRequired="true">
                                                <f:validator binding="#{bindings.QtdeFacil.validator}"/>
                                            </af:inputText>
                                            <af:spacer width="10" height="10" id="s1"/>
                                            <af:inputText value="#{bindings.Os.inputValue}" label="O.S."
                                                          required="#{bindings.Os.hints.mandatory}" columns="10"
                                                          maximumLength="#{bindings.Os.hints.precision}"
                                                          shortDesc="#{bindings.Os.hints.tooltip}" id="it6" readOnly="true">
                                                <f:validator binding="#{bindings.Os.validator}"/>
                                            </af:inputText>
                                        </af:panelGroupLayout>
                                    </af:panelGroupLayout>
                                </f:facet>
                                <f:facet name="buttons"/>
                                <f:facet name="menu">
                                    <af:toolbar id="t1" inlineStyle="background-color:Scrollbar;">
                                        <af:commandToolbarButton id="ctb1"
                                                                 icon="/imgs/botoes/BT_PTO_OFER_NAVEGADOR.png"
                                                                 shortDesc="Navegador" action="seleciona-pof"
                                                                 disabledIcon="/imgs/botoes/desabilitados/BT_DES_PTO_OFER_NAVEGADOR.png">
                                            <af:setPropertyListener from="NAVEGADOR" to="#{pageFlowScope.defFluxoPoF}" type="action"/>
                                            <af:setPropertyListener to="#{sessionScope.validarPinos}" from="NAO" type="action"/>
                                        </af:commandToolbarButton>
                                        <af:commandToolbarButton id="ctb2"
                                                                 icon="/imgs/botoes/BT_PTO_OFER_GRAFICAMENTE.png"
                                                                 shortDesc="Espacialidade" action="seleciona-pof"
                                                                 disabledIcon="/imgs/botoes/desabilitados/BT_DES_PTO_OFER_GRAFICAMENTE.png">
                                            <af:setPropertyListener from="GRAFICAMENTE" to="#{pageFlowScope.defFluxoPoF}" type="action"/>
                                        </af:commandToolbarButton>
                                        <af:commandToolbarButton id="ctb3"
                                                                 icon="/imgs/botoes/BT_LOCALIZA_END.png"
                                                                 shortDesc="Pesquisa de Endereço"
                                                                 disabledIcon="/imgs/botoes/desabilitados/BT_DES_LOCALIZA_END.png"/>
                                        <af:commandToolbarButton id="ctb4"
                                                                 icon="/imgs/botoes/BT_DEDICA_FAC_P_END.png"
                                                                 shortDesc="Dedica Facilidade para o Endereço"
                                                                 action="seguir-processo"
                                                                 disabledIcon="/imgs/botoes/desabilitados/BT_DES_DEDICA_FAC_P_END.png">
                                            <af:setPropertyListener from="DEDICA_FAC_PARA_END" to="#{pageFlowScope.tipoDedicacao}"
                                                                    type="action"/>
                                        </af:commandToolbarButton>
                                        <af:commandToolbarButton id="ctb5"
                                                                 icon="/imgs/botoes/BT_DEDICA_FAC_DO_END.png"
                                                                 shortDesc="Dedica Facilidade do Endereço" action="seguir-processo"
                                                                 disabledIcon="/imgs/botoes/desabilitados/BT_DES_DEDICA_FAC_DO_END.png">
                                            <af:setPropertyListener from="DEDICA_FAC_DO_END" to="#{pageFlowScope.tipoDedicacao}" type="action"/>
                                        </af:commandToolbarButton>
                                        <af:commandToolbarButton id="ctb6"
                                                                 icon="/imgs/botoes/BT_REMOVE_DEDICACAO_DO_END.png"
                                                                 shortDesc="Remove Dedicação do Endereço" action="seguir-processo"
                                                                 disabledIcon="/imgs/botoes/desabilitados/BT_DES_REMOVE_DEDICACAO_DO_END.png">
                                            <af:setPropertyListener from="REMOVE_DEDICACAO_DO_END" to="#{pageFlowScope.tipoDedicacao}"
                                                                    type="action"/>
                                        </af:commandToolbarButton>
                                        <af:commandToolbarButton id="ctb7"
                                                                 icon="/imgs/botoes/BT_REMOVE_DEDICACAO_DO_PINO.png"
                                                                 shortDesc="Remove Dedicação Pino" action="remove-dedica-do-pino"
                                                                 disabledIcon="/imgs/botoes/desabilitados/BT_DES_REMOVE_DEDICACAO_DO_PINO.png"/>
                                        <af:commandToolbarButton id="ctb8" 
                                                                icon="/imgs/botoes/BT_SAIR.png"
                                                                action="sair"
                                                                shortDesc="Sair" disabledIcon="/imgs/botoes/desabilitados/BT_DES_SAIR.png"/>
                                    </af:toolbar>
                                </f:facet>
                                <f:attribute name="tituloPadrao" value="Dedicação de Facilidades"/>
                                <f:attribute name="largura" value="width:500px;"/>
                                <f:attribute name="habilitaBotoes" value="false"/>
                            </af:pageTemplate>
                            <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_fragments_interfacededicacao-->
                        </ui:composition>
                        Regards,

                        Renan
                        • 9. Re: autoSuggestBehavior operation
                          vinod_t_krishnan
                          can u try with maxSuggestedItems="5" for the autosuggestbehavior.. and why are you having a autocomplete=on for the inputcomboboxlistofvalues
                          • 10. Re: autoSuggestBehavior operation
                            Renan Barbalho
                            Hi,

                            I tried put maxSuggestedItems="5" and put autocomplete="on" but it doesn't solve my problem.

                            any idea?


                            Renan
                            • 11. Re: autoSuggestBehavior operation
                              vinod_t_krishnan
                              i wanted u to remove the autocomplete, autosubmit, partialTriggers from inputComboboxlistofvalues and see if it works
                              • 12. Re: autoSuggestBehavior operation
                                adfLearner
                                Hi
                                If you can reproduce the issue with Hr schema and upload that sample application. It will be easy for looking in to the issue.

                                Thanks,
                                Rajdeep
                                • 13. Re: autoSuggestBehavior operation
                                  Renan Barbalho
                                  Hi guys,

                                  I made a sample application, the application is using schema HR, execute the lovsuggest.jspx to run.

                                  You can get download of application in:

                                  ftp://177.102.140.26

                                  user: adf
                                  password: adf233

                                  The file is: InputComboSuggest.zip

                                  Renan

                                  I'm using JDeveloper 11.1.2.1.0 and Oracle XE 10g!!!!
                                  • 14. Re: autoSuggestBehavior operation
                                    Renan Barbalho
                                    Hi guys,

                                    Any new idea?


                                    Renan
                                    1 2 Previous Next