1 Reply Latest reply on Oct 4, 2007 1:26 PM by Brian Smith

    SelectOneMenu not Updated

    Aymen Newbie

      Hi,
      I'm using Jboss Seam 2.0.0.CR1 + JBoss AS 4.2.1.GA
      I have a

      <h:form>
      <h:selectOneMenu id="id1" value="#{MyBean.selectedItem}">
      <s:selectItems value="#{MyBean.availableItems}" var="var" label="#{var.label}" id="id2" />
      <s:convertEntity />
      </h:selectOneMenu>
      <h:commandLink action="#{MyBean.removeSelectedItem}">
       <s:conversationId/>
      </h:commandLink>
      </h:form>


      My availableItems is a List
      My MyBean.removeSelectedItem() method looks like :
      if(this.getSelectedItem() != null){
       this.availableItems.remove(this.getSelectedItem());
      ...
      }
      

      When I call this method everything on the page is updated. Only my SelectOneMenu keeps the same(the item is not removed)

      The availableItems List's size is also updated.

      PS: I have just migrated my project from Seam 1.2.1.GA + JBoss AS 4.0.5.GA and this was working fine.

      Thnak you