trouble with a4j:include
ajanz Aug 31, 2009 4:23 AMi try to integrate a page via a4j:include. but when i do that the a4j:commandbutton doesn't work any more.
first the page is
<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<a4j:form>
<h:outputLabel value="Funktionsstatistik" style="font-size:21px" />
<br/>
<a4j:log level="ALL" popup="false" />
<a4j:commandButton action="#{Profiler.clear}" status="globalStatus" bypassUpdates="true" immediate="true" value="Zurücksetzen" reRender="profiletable,counter" ></a4j:commandButton>
<a4j:region id="profileregion">
<h:outputText value="#{Profiler.count}" id="counter" />
<rich:extendedDataTable value="#{Profiler.profiledata}" var="data" id="profiletable"
onRowMouseOver="this.style.backgroundColor='#FFFF99'" rows="0"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
cellpadding="0" cellspacing="0"
width="100%" border="0">
<rich:column sortBy="#{data.name}" style="text-align:left;" label="Name" width="200px" >
<f:facet name="header" >
<h:outputText value="Funktion" />
</f:facet>
<h:outputText value="#{data.name}" />
</rich:column>
<rich:column sortBy="#{data.count}" style="text-align:left;" label="Anzahl" >
<f:facet name="header" >
<h:outputText value="Anzahl" />
</f:facet>
<h:outputText value="#{data.count}" />
</rich:column>
<rich:column sortBy="#{data.avg}" style="text-align:left;" label="Durchschnitt" >
<f:facet name="header" >
<h:outputText value="Durchschnitt" />
</f:facet>
<h:outputText value="#{data.avg}" >
<f:convertNumber minFractionDigits="3"/>
</h:outputText>
</rich:column>
<rich:column sortBy="#{data.min}" style="text-align:left;" label="Minimum" >
<f:facet name="header" >
<h:outputText value="Minimum" />
</f:facet>
<h:outputText value="#{data.min}" >
<f:convertNumber minFractionDigits="3"/>
</h:outputText>
</rich:column>
<rich:column sortBy="#{data.max}" style="text-align:left;" label="Maximum" >
<f:facet name="header" >
<h:outputText value="Maximum" />
</f:facet>
<h:outputText value="#{data.max}" >
<f:convertNumber minFractionDigits="3"/>
</h:outputText>
</rich:column>
<rich:column sortBy="#{data.total}" style="text-align:left;" label="Gesamt" >
<f:facet name="header" >
<h:outputText value="Gesamt" />
</f:facet>
<h:outputText value="#{data.total}" >
<f:convertNumber minFractionDigits="3"/>
</h:outputText>
</rich:column>
</rich:extendedDataTable>
</a4j:region>
</a4j:form>
</ui:composition>
so i removed the a4j:form and set on my page
<a4j:form >
<a4j:include viewId="#{AdminClient.page}" />
</a4j:form>
but then the commandbutton doesn't work any more. what am i doing wrong?