suggestionBox + ui:include/a4j:include problem in IE7
raffaele.camanzo Apr 25, 2007 11:52 AMHi All,
already posted as a reply to a similar post, I'm doing it again because maybe most of you did not read a reply to a closed issue.. if I'm wrong.. sorry for the double reading.
I'm facing a suggestionBox problem on IE7 in a particular condition but everything works correctly on Firefox: 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.
Help appreciated.
Regards,
Raffaele Camanzo