Hi all,

I'm trying to iterate in a TreeMap in my template
<tr t:type="loop" t:source="allMenuOption" t:value="menuOption">
                       <td>
                           ${menuOption.name}
                       </td>
                   </tr>

In the class:
   public TreeMap<String, MenuOption> getAllMenuOption(){
       return this.menuOptionMap;
   }

And I obtain the following mistake:
Property 'menuOption' of class com.packtpub.celebrities.components.Menu (within property expression 'menuOption.name') is not readable (it has no read accessor method).

Could anybody explain to me how must I iterate in a TreeMap.

It works correctly if I try to iterate in a List but not with a TreeMap.

Thank you very much.

Greetings.



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

Reply via email to