0 Replies Latest reply on Aug 24, 2010 4:50 AM by uwerasmus

    property with map

    uwerasmus

      Hello,
      I am not successfull with implementing feature described below. Maybe it cannot be done? If anyone can give me some pointers, I would be very glad.


      I try to use




      <ui:repeat var="item" value="#{entHome.instance.someList}">
      <h:selectOneMenu id="test" value="#{entHome.selectedObject[item.id]}">
      ...
      </ui:repeat>





      with this in backing bean:




      private Map<Long, Long> selectedObject;





      I have specified getters and setters, also with indexes, I also wrote some initialization in init and finally also in constructor, still getting this exception:


      ava.lang.NullPointerException
           at javax.el.BeanELResolver$BeanProperty.read(BeanELResolver.java:259)





      which means, that some context is null.


      Thanks for advice,
      Uwe