1 Reply Latest reply on Dec 6, 2007 5:14 PM by Pete Muir

    h:dataTable, HashMap, and List

    John Tsimikas Newbie

      If I've defined a List within a HashMap
      (which I want to use in h:dataTable component)

      See below:

      private Map <String , List<ScsMessageBlock> > scsMessageBlocks;

      Is it possible to reference the List in h:dataTable component?

      Then would this work ?

      <h:dataTable value="#{scsMessageBlocks['SomeKey']}" var="msg"
       styleClass="width100" >

      The above code generates the following error even though that key does exist in the HashMap and a List with rows has been allocated.

      java.lang.IllegalArgumentException: row is unavailable