Hello,
I'm using h:selectOneMenu and I have a problem : 
I fill my selectOneMenu with a List, when i submit my form, I remove the 
selected Item in the selectOneMenu.
In my java code, when i debug, the selectedValue is deleted from the List, BUT 
when the page is submitted, the element still here.
What's the problem, please help me. thanks

mypage.xhtml


<h:selectOneMenu id="selectOneAssignable"                                       
        value="#{activitesByCollaborateurCrossData.assignable}">
  | <s:selectItems
  | value="#{activitesByCollaborateurCrossData.availableLines}"
  | var="assign" label="#{assign.designation}"
  | id="selectAssignable" />
  | <s:convertEntity />
  | </h:selectOneMenu>
  | <h:commandLink 
action="#{activitesByCollaborateurCrossData.updateAssignable}">
  | <h:graphicImage value="img/add.png" />
  | </h:commandLink>


in  mybean.java

        public void addAssignable() {
  |             if(this.assignable != null){
  |                     System.out.println("removed  =  
"+this.availableLines.remove(this.assignable));
  |                     this.lignes.add(assignable);
  |                     listeAssignables.put(assignable.getDesignation(), 
assignable);
  |                     Totaux.put(assignable.getDesignation(), new Float(0));
  |                     this.updateTable();
  |             }
  |     }

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112494
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to