You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Antonio OrdoƱez <an...@star-group.net> on 2008/06/26 14:02:59 UTC

loop in a TreeMap

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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org