有人知道如何在页面加载时不展开任何panelBarItem吗?我还无法升级到Richfaces 4.0,需要针对3.3.3进行此修复。我试图使用panelBar的selectedPanel属性并将其设置为我不渲染的panelBarItem但只是渲染列表中的第一个panelBarItem。有什么想法吗?
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html 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:genx="http://genx.findmespot.com/facelet-taglib"
xmlns:rich="http://richfaces.org/rich"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:sec="http://sourceforge.net/projects/jsf-comp/acegijsf">
<ui:composition template="#{layoutBean.template}">
<ui:define name="content">
<rich:panelBar height="400" width="650">
<rich:panelBarItem >
<f:facet name="label">
<h:outputFormat escape="false" value="#{bundle['featureConfig.tracking.header.text']}"/>
</f:facet>
panel1
</rich:panelBarItem>
<rich:panelBarItem>
<f:facet name="label">
<h:outputFormat escape="false" value="#{bundle['featureConfig.newMovementAlertSettings.header.text']}"/>
</f:facet>
panel2
</rich:panelBarItem>
<rich:panelBarItem>
<f:facet name="label">
<h:outputFormat escape="false" value="#{bundle['featureConfig.newMovementAlertContacts.header.text']}"/>
</f:facet>
panel2
</rich:panelBarItem>
<rich:panelBarItem>
<f:facet name="label">
<h:outputFormat escape="false" value="#{bundle['featureConfig.dockMode.header.text']}"/>
</f:facet>
panel3
</rich:panelBarItem>
<rich:panelBarItem>
<f:facet name="label">
<h:outputFormat escape="false" value="#{bundle['featureConfig.altitude.header.text']}"/>
</f:facet>
panel4
</rich:panelBarItem>
</rich:panelBar>
</ui:define>
</ui:composition>
</html>