3 Replies Latest reply on Jun 18, 2007 2:58 PM by ryanskeller

    simpleTogglePanel and selectOneChoise

    proxima84

      Hello.
      I have a problem in interaction of RichFaces and Trinidad components:
      When I put "tr:selectOneChoice" inside of "rich:simpleTogglePanel" with an attribute "switchType="ajax"". I get a reset of a selected value in "selectOneChoice" on closing and opening of a panel.
      My code:

      <?xml version='1.0' encoding='windows-1251'?>
      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:tr="http://myfaces.apache.org/trinidad"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich">
       <f:loadBundle basename="ru.csbi.webapp.resources.UIResources" var="res" />
      
       <jsp:directive.page contentType="text/html;charset=windows-1251" />
       <f:view>
       <tr:document>
       <h:form>
       <rich:simpleTogglePanel switchType="ajax" label="panel" value="panel" >
       <tr:selectOneChoice label="Label"
       unselectedLabel="None" immediate="true" >
       <tr:selectItem label="First" value="1"/>
       <tr:selectItem label="Second" value="2"/>
       <tr:selectItem label="Third" value="3"/>
       </tr:selectOneChoice>
      
       </rich:simpleTogglePanel>
      
       </h:form>
       </tr:document>
       </f:view>
      </jsp:root>
      
      



      Can anyone tell me - why does it happen and what shall I do for saving selected value?