0 Replies Latest reply on May 19, 2011 3:42 AM by undwood

    inplaceSelect reset value (3.3.3)

    undwood

      I have an inplaceSelect component in the page. The code like this.

       

      <a4j:jsFunction name="preSetChAccWarrant" oncomplete="setChAccWarrant();"/>
      <a4j:jsFunction name="setChAccWarrant" actionListener="#{consdocactions.setChAccWarrant}" reRender="chAccWarrant"/>
      
      <rich:inplaceSelect defaultLabel="#{messages['choose.label']}" value="#{consdocactions.invReport.chAccIdS}"
            styleClass="rich-inplace-200" layout="block" listWidth="200px" selectWidth="200px"
            onchange="preSetChAccWarrant();" id="chacc">
        <f:selectItems value="#{consdocactions.cls.chAccSign}"/>
      </rich:inplaceSelect>
      
      <rich:inplaceInput value="#{consdocactions.invReport.head.warrant}" layout="block"
          styleClass="rich-inplace-200" inputWidth="200px" id="headWarrant"/>
      

       

      When I select an item in the component, everything is ok, inplaceInput component is re-rendered.

      When I leave this page and then return to this page, the inplaceSelect component has default value.

      consdocactions - seam component, ScopeType.Session,

      invReport bean has coorect attibute chAccIdS.

       

      I need do not to reset the value of the inplaceInput component. How to do this?