About a4j:repeater error
quickinfor Mar 7, 2008 10:48 PMI develope system use richface 3.1.2 .it run normal in tomcat 6.0.14,
when i use richface 3.1.4 or 3.2 , it occured in tomcat 6.0.14. so i find that a4j:repeat can not done in richface 3.1.4 or 3.2 at all.who may help me ? thanks the first. my source code the following:
<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:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
.rightalign {
width: 10%;
text-align: left;
}
.leftalign {
width: 90%;
text-align: left;
}
<f:view>
<h:form>
<h:panelGrid styleClass="panel_menu">
<rich:panelBar id="mainmenu" height="350" width="250" selectedPanel="#{GenTree.currentGroup}">
<a4j:repeat var="menu" value="#{GenTree.userMenu}">
<rich:panelBarItem name="#{menu.menuId}" label="#{menu.menumsg}" contentClass="height:50p">
<h:panelGrid columns="2" width="100%">
<a4j:repeat var="childmenu" value="#{GenTree.userChildMenu}"
binding="#{GenTree.repeater}">
<h:panelGrid columns="2" width="100%" columnClasses="rightalign,leftalign">
<h:graphicImage value="/images/#{childmenu.subMenuId==null?'ico_panel.gif' : 'ico_tabpanel.gif'}"
></h:graphicImage>
<h:outputLink style="display:block;height:20p"
value="#{GenTree.currentDir}/pages/fnd/ConentMenu.jsf">
#{childmenu.subMenuId==null?childmenu.functionName : childmenu.childMenuDesc}
<f:param value="#{childmenu.subMenuId}" name="subMenuId" />
<f:param value="#{childmenu.functionName}" name="functionName" />
<f:param value="#{GenTree.currentDir}#{childmenu.basePath}/" name="url" />
<f:param value="/images/#{childmenu.iconFile}" name="iconFile" />
<f:param value="#{GenTree.currentDir}" name="currenDir" />
<f:param value="#{childmenu.functionFile}" name="functionFile" />
<f:param value="#{menu.menuId}" name="parentID" />
<f:param value="#{GenTree.currentGroup}" name="parentgroup" />
<f:param value="#{childmenu.subMenuId==null?childmenu.functionName : childmenu.childMenuDesc}" name="parentmenudesc" />
<f:param value="#{childmenu.childMenuMsg}" name="parentmenu" />
</h:outputLink>
</h:panelGrid>
</a4j:repeat>
</h:panelGrid>
</rich:panelBarItem>
</a4j:repeat>
</rich:panelBar>
</h:panelGrid>
</h:form>
</f:view>
</ui:composition>