2012-08-16 52 views
0

我想使用丰富的手风琴作为导航页面,如http://showcase.richfaces.org/。当用户点击链接时,我想用户可以通过exadel来保存丰富的手风琴状态。我如何实现这种行为?使用Richfaces 4.如何存储丰富的状态:手风琴项目?

<rich:accordion switchType="ajax"> 
          <rich:accordionItem header="Daily Sales" >       
           <h:outputLink value="../GKPI/R.xhtml">1. R</h:outputLink> <br></br>                
          </rich:accordionItem> 

          <rich:accordionItem header="Weekly Sales" > 
           <h:outputLink value="../GKPIW/CR.xhtml">1. CR</h:outputLink> <br></br>        
          </rich:accordionItem> 
    </rich:accordion> 

回答

0

解决方法是添加activeItem =“#{bean.activeItem}”,其中activeItem是托管bean中的字符串变量。

<rich:accordion switchType="ajax" activeItem="#{kpilist.activeItem}" > 
</rich:accordion>