2 Replies Latest reply on Jun 13, 2008 4:32 AM by infinity2heaven

    Conversion Error setting value when setters and getters are not present

    infinity2heaven Novice

      SFSB


      
      @In(required=false) @Out(required=false)
      
      private List<Fof> selectedFofs;
      
      



      
      <h:selectManyListbox value="#{selectedFofs}" size="6">
      
         <s:selectItems value="#{fofsQuery.resultList}" var="fof" label="#{fof.name}"/>
      
        <s:convertEntity/>  
      
      </h:selectManyListbox>
      
      



      Conversion Error setting value '0' for '#{selectedFofs}'


      This doesn't happen when I add setters and getters for the SFSB.


      
      public List<Fof> getSelectedFofs() {
      
          return this.selectedFofs;
      
      }
      
      
      public void setSelectedFofs(List<Fof> selectedFofs) {
      
         this.selectedFofs = selectedFofs;
      
      }
      
      



      This is strange, because the same code works fine if selectedFofs was of type, say 'Fof' instead of a list. I don't need getters and setters then.


      Any idea?