5 Replies Latest reply on Apr 24, 2007 11:44 AM by raffaele.camanzo

    SuggestionBox working in IE?

    james_hays

      I know IE 6 is in the supported browser list and unfortunately, I have to support it a little longer while in my application. Does anybody have the suggestionBox working in IE 6?

      It's working fine in FireFox, but no request is sent out from the field in IE. I've checked this using Fiddler.

      If somebody has this working, let me know and I'll dig into it. Otherwise, I'm going to submit it as a bug.

      Thanks,

      James

        • 1. Re: SuggestionBox working in IE?
          james_hays

          It also does not work in the RichFaces demo app.

          • 2. Re: SuggestionBox working in IE?

            Would you check the demo that is on livedemo site:
            http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf?c=suggestionBox
            It works in my IE6 except the location on the screen. The location problem links with absolute layout of the panel the input field locates on. This was a bug that already fixed in SVN.

            • 3. Re: SuggestionBox working in IE?
              james_hays

               

              "SergeySmirnov" wrote:
              Would you check the demo that is on livedemo site:
              http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf?c=suggestionBox
              It works in my IE6 except the location on the screen. The location problem links with absolute layout of the panel the input field locates on. This was a bug that already fixed in SVN.


              Yep, works as you described, positioning issue and all.

              Is the positioning issue fixed in SVN?

              • 4. Re: SuggestionBox working in IE?

                Yes, I see the diff is already applied.

                However, if you have no absolute layout for parent elements, this will not effect your page anyhow.

                • 5. Re: SuggestionBox working in IE?
                  raffaele.camanzo

                  Hi All,

                  maybe I'm doing something wrong, but I'm facing the same problem on IE7 in a particular condition; i.e. everything works correctly on Firefox but the A4J request is not sent on IE7.

                  Here's the scenario: we have some functionalities we want to reuse in our pages, to do so we include these blocks of xhtml using ui:include in this way:

                  the container:

                  <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:s="http://jboss.com/products/seam/taglib"
                   xmlns:t="http://myfaces.apache.org/tomahawk"
                   xmlns:c="http://java.sun.com/jstl/core"
                   xmlns:rich="http://richfaces.ajax4jsf.org/rich"
                   xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
                   template="layout.xhtml">
                  
                  
                  <ui:define name="contextmanager">
                  
                   <div style="height: 5px"></div>
                   <s:fragment rendered="#{inserimentoIncassi.cdInput}">
                   <a4j:region>
                   <h:form>
                   <h:panelGrid columns="5">
                   <h:outputText value="#{ii.inserisci}" />
                  
                   <ui:include src="include/infoDebitori.xhtml" />
                  
                   <h:commandLink action="#{inserimentoIncassi.caricaInfo}" value="#{ii.visualizza}" >
                   <s:conversationId />
                   </h:commandLink>
                   </h:panelGrid>
                   </h:form>
                   </a4j:region>
                   </s:fragment>
                   <div style="height: 5px"></div>
                  ...
                  
                  


                  The functionality included:
                  <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:s="http://jboss.com/products/seam/taglib"
                   xmlns:c="http://java.sun.com/jstl/core"
                   xmlns:rich="http://richfaces.ajax4jsf.org/rich">
                  
                   <h:inputText value="#{infoDebitori.debitoreSel}" id="suggestInputText"/>
                   <rich:suggestionbox for="suggestInputText"
                   suggestionAction="#{infoDebitori.autocompleteDebitoreSel}"
                   var="suggestItem"
                   fetchValue="#{suggestItem.cdDebitore}">
                   <h:column>
                   <h:outputText value="#{suggestItem.soggetto.denominazione}"/>
                   </h:column>
                   </rich:suggestionbox>
                  
                  </ui:composition>
                  
                  


                  IE7 does not work (no request sent) and returns the javascript error:
                  "'popup' is null or not an object"
                  (brutal translation from the Italian IE7 message)


                  I tried to use also a4j:include but happens the same (and I don't think this is the purpose, am I right?).

                  Help appreciated.
                  Regards,
                  Raffaele Camanzo