1 Reply Latest reply on Jul 11, 2010 12:04 PM by harpritt

    Nested HashMaps and the JSF Update model values phase

    harpritt

      Hi everyone,

       

      Ive been going nuts over this little gem since Friday, hoping that some one can point out where im going wrong

       

      The setter for formPropertiess(below) is never called and as such my entered data is lost.

       

      My managed bean property formPropertiess

       

      public Map<String, Map<String, List<String>>> getFormPropertiess() {

           return formPropertiess;

       

      }

       

      public void setFormPropertiess(Map<String, Map<String, List<String>>> formPropertiess) {

           this.formPropertiess = formPropertiess;

       

      }

       

       

      Which is accessed from JSP pages as...

       

       

      <h:selectManyCheckbox value="#{planAuditBean.formPropertiess[checklist.value].specialOperations}">

      <f:selectItems value="#{planAuditBean.checkListSpecialOperations[checklist.value]}" />

      </h:selectManyCheckbox>

       

       

      checklist.value is a key for my first map and specialOperations is a key for the innermap.

       

      As allways all help is greatly appreciated.

       

      PS very sorry is this is the wrong forum for this