6 Replies Latest reply on Jun 1, 2008 9:50 PM by infinity2heaven

    retaining values in <s:selectItems

    infinity2heaven Novice
      <h:selectOneMenu id="fof" value="#{selectedFof}">    
      
        <s:selectItems value="#{fofsQuery.resultList}" var="fof" label="#{fof.name}"/>
      
        <s:convertEntity/>                    
      
      </h:selectOneMenu>
      
      



      The first time the page loads, it defaults to first value, which is fine. But this page can be redirected from another page, the SFSB of which is outjecting this value to a session scope.


      declaration of selectedFof in SFSB (conversation)


      @In(required=false) @Out(required=false, scope=ScopeType.SESSION)
      
      private Fof selectedFof;



      the value is being injected correctly to the page from the other SFSB (when I print #{selectedFof}, however the dropdown doesn't retain that value.


      Any ideas?