a4j:status not working
balteo Jun 5, 2007 11:14 AMHere is my first page:
<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@taglib prefix="a4j" uri="https://ajax4jsf.dev.java.net/ajax"%> <%@taglib prefix="rich" uri="http://richfaces.ajax4jsf.org/rich"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Application Protide</title> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css"/> <script type="text/javascript" src="${pageContext.request.contextPath}/js/prototype.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/js/scriptaculous.js?load=effects"></script> </head> <body> <f:view> <a4j:outputPanel id="main-panel" layout="block"> <a4j:region id="main-region"> <h:panelGrid columns="2" border="0" width="100%" styleClass="protideHeader" id="page-header"> <h:graphicImage value="images/calfi.gif"/> <a4j:status id="top-status"> <f:facet name="start"> <h:graphicImage value="images/ajax-loader.gif"/> </f:facet> </a4j:status> </h:panelGrid> <f:verbatim><br/><br/></f:verbatim> <jsp:include page="includes/home/input-screen.jsp"/> <f:verbatim><br/><br/><br/><br/></f:verbatim> <jsp:include page="includes/home/output-screen.jsp"/> </a4j:region> </a4j:outputPanel> </f:view> </body> </html>
then one level down:
<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@taglib prefix="a4j" uri="https://ajax4jsf.dev.java.net/ajax"%> <f:subview id="ecran-saisie"> <h:form id="ecran-saisie-form"> <jsp:include page="../input-screen/caracteristiques-contrat.jsp"/> <f:verbatim><br/><br/></f:verbatim> <jsp:include page="../input-screen/details.jsp"/> <f:verbatim><br/><br/></f:verbatim> <jsp:include page="../input-screen/comptes.jsp"/> <f:verbatim><br/><br/></f:verbatim> <jsp:include page="../input-screen/buttons.jsp"/> </h:form> </f:subview>
then one other level down:
<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@taglib prefix="a4j" uri="https://ajax4jsf.dev.java.net/ajax"%> <f:subview id="buttons"> <h:panelGrid id="buttons-panel" columns="4" border="1" width="100%"> <a4j:region id="buttons-region"> <a4j:status id="bottom-status"> <f:facet name="start"> <h:graphicImage value="images/ajax-loader.gif"/> </f:facet> <f:facet name="stop"> <h:graphicImage value="images/stop.gif"/> </f:facet> </a4j:status> <h:commandButton value="Submit me !!" action="#{ContractManagedBean.debugAction}"/> <a4j:commandButton value="Save me !!" action="#{ContractManagedBean.saveContractAction}" reRender="main-panel"/> <h:commandButton value="Reset me !!" type="reset"/> <f:facet name="footer"> <h:outputText value="here will go the messages"/> </f:facet> </a4j:region> </h:panelGrid> </f:subview>
NONE of my a4j:status work with the above code....
Again let me point out that there is a dearth of documentation about ajax for jsf. There is nothing in the documentation that would allow me to sort the above problem.
So PLEASE HELP!!!
Julien.