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