i've found the solution with form validation and s:select tag :

if i put this in my action, it works :

   public List getAvailablesTypesRessources() {
       return this.typeRessourceManager.getAll();
   }

but if i do :
public List getAvailablesTypesRessources() {

   return this.availableTypesRessources;
}

with a

public String edit() {
       if (id != null) {
           ressource = ressourceManager.get(id);
       } else {
           ressource = new Ressource();
       }
       this.availablesTypesRessources = typeRessourceManager.getAll();

       return SUCCESS;
   }

it doesn't work because availablesTypesRessources collection is removed if an error
occurs during validation.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to