Andrew,
Yes, it is supposed to be twice, bad naming on my part.  However, you were spot 
on about the "entrySet()" method!

Thanks,

Mark


-----Original Message-----
From: Andrew Ofisher [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 7:27 PM
To: Tapestry users
Subject: Re: Tapestry 3 Iterating over a map.
 
First, is there a reason you have appAuthMap twice, or just a typo?

Second,
Try:

ognl:appAuthMap.entrySet()

ognl is trying to get the object with the key "entrySet" instead of calling
the method entrySet.

Hope this helps.

On 8/16/06, Mark Stang <[EMAIL PROTECTED]> wrote:
>
> OK, I am spinning my wheels, what am I missing here?
>
> Nothing prints out and no errors:
>
> <span jwcid="@Foreach" source="ognl:appAuthMap.appAuthMap.entrySet"
> value="ognl:currentItem">
>     <span jwcid="@contrib:Choose">
>             <span jwcid="@contrib:When" condition="ognl:editMode ==
> false">
>                     <tr>
>                             <td
> style="background:#EFEFEF;">&nbsp;&nbsp;<span jwcid="@Insert" value="ognl:
> currentItem.key"/></td>
>                             <td
> style="background:#EFEFEF;">&nbsp;&nbsp;<span jwcid="@Insert" value="ognl:
> currentItem.value"/></td>
>
> Help...
>
> thanks,
>
> Mark
>
> -----Original Message-----
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 2:25 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> It should because a java.util.Set (the entrySet() method returns a Set) is
> a
> java.util.Collection.
>
> -----Original Message-----
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:57 PM
> To: Tapestry users; Tapestry users
> Subject: RE: Tapestry 3 Iterating over a map.
>
> This will work with a "Foreach"?
>
>
> -----Original Message-----
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 1:53 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> Well, you'd have to call map.entrySet() and for each entry in there, you'd
> call entry.getKey() or entry.getValue() (they're of type Map.Entry).
>
> -----Original Message-----
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:48 PM
> To: Tapestry users; Tapestry users
> Subject: RE: Tapestry 3 Iterating over a map.
>
> That sounds great, do you have any syntax?
>
>
> -----Original Message-----
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 1:45 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> You can iterate over the entries and they have key/value properties.
>
> -----Original Message-----
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:43 PM
> To: Tapestry users; Tapestry users
> Subject: RE: Tapestry 3 Iterating over a map.
>
>
> Keys.  And I want to print the values.
>
> -----Original Message-----
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 1:39 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> Do you want to iterate the keys or the values?
>
> -----Original Message-----
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:36 PM
> To: Tapestry users; Tapestry users
> Subject: Tapestry 3 Iterating over a map.
>
> Can I treat it like a list?  Anyone know what the syntax is?  I don't want
> to convert it back and forth...
>
> thanks,
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>

Reply via email to