I get a blank replacement sometimes when the rendering fails on the server. Try to refresh the page (if you are using server side state saving) to render the page without AA. If there is an error during render, you will be able to see it there. Unfortunately AA usually swallows errors (the filter does not log them).
I am having no issues with AA at the moment, so it should be working fine. On 4/25/06, Dudu <[EMAIL PROTECTED]> wrote: > Hi, > I build a test applicaton with ajaxAnywhere, and something is missing, I > don't know. > > When I click on button, to ajaxed zone be refreshed, the "loading" label is > showed at top of the page, the backing methods is called(I see on the logs) > but when the "loading" label dissapear, nothing is putted on the ajaxed zone > =(. The ajaxed zone turn to void. > > I follow al steps of this link too: > http://wiki.apache.org/myfaces/Integrating_Ajaxanywhere > > this is my code: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <%@ page contentType="text/html;charset=windows-1252"%> > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> > <%@ taglib uri=" http://java.sun.com/jsf/core" prefix="f"%> > <%@ taglib uri="http://ajaxanywhere.sourceforge.net/" > prefix="aa"%> > <f:view > > <html> > <head> > <meta http-equiv="Content-Type" > content="text/html; charset=windows-1252"/> > <script type="text/javascript" src=" aa.js"></script> > <title>index</title> > </head> > <body> > <span id=cnt>0</span> seconds since last page refresh. <script> > var sec=0; function counter(){ > setTimeout("counter();",1000); > document.getElementById("cnt").innerHTML = sec++; > } > counter(); > > </script> > <h:form id="main"> > <p> > <h:commandButton value="commandButton1" id="botaoAjax" > > actionListener="#{page_Index.action}" action="null" /> > </p> > <p> > <aa:zoneJSF id="ajaxZone"> > <h:outputText value="#{page_Index.texto}" id="zonetorefresh"/> > </aa:zoneJSF> > </p> > </h:form><script type="text/javascript"> > ajaxAnywhere.getZonesToReload = function(url, submitButton) { > if (typeof submitButton != 'undefined') { > if (submitButton.type == 'submit') { > if (submitButton.id.search('main:botaoAjax') != -1) { > return 'ajaxZone'; > } > } > } > return null; > } > //var elements = new Array(); > //elements.push(document.getElementById('main:botaoAjax')); > ajaxAnywhere.formName = 'main'; > ajaxAnywhere.substituteFormSubmitFunction(); > //ajaxAnywhere.substituteSubmitButtonsBehavior(true, > elements); > ajaxAnywhere.substituteSubmitButtonsBehavior(true); > </script></body> > </html> > </f:view> > <%-- > oracle-jdev-comment:preferred-managed-bean-name:page_Index--%> > > > this is my web.xml > <?xml version = '1.0' encoding = 'windows-1252'?> > <web-app xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"> > <description>Empty web.xml file for Web Application</description> > <servlet> > <servlet-name>Faces Servlet</servlet-name> > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>Faces Servlet</servlet-name> > <url-pattern>/faces/*</url-pattern> > </servlet-mapping> > <filter> > <filter-name>AjaxAnywhere</filter-name> > <filter-class>org.ajaxanywhere.AAFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>AjaxAnywhere</filter-name> > <url-pattern>/faces/*</url-pattern> > </filter-mapping> > <session-config> > <session-timeout>35</session-timeout> > </session-config> > <mime-mapping> > <extension>html</extension> > <mime-type>text/html</mime-type> > </mime-mapping> > <mime-mapping> > <extension>txt</extension> > <mime-type>text/plain</mime-type> > </mime-mapping> > </web-app> > > The ajax anywhere.jar is int the lib path too...and the aa.js was extracted > from the jar too. > > Other question: There are other ajax framework to faces? is the ajaxAnywhere > the better free? > > thanks a lot >

