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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user