[jboss-user] [JBoss Seam] - SelectOneMenu not Updated

nemya do-not-reply at jboss.com
Thu Oct 4 10:00:16 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091531#4091531

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091531



More information about the jboss-user mailing list