--- [EMAIL PROTECTED] wrote:
> 1. Where is the getPetDao() method expected to be
> coded?  I'd like to "set" this data from my Tiles 
> Controller.

It can be coded anywhere, but like most of the other
tags, is expected to be accessible via the OGNL stack.

> 2. Where do the properties listKey/listValue need
> to be coded and what is the effect of this when list

> is an Iterable Map?

Those are properties of whatever object the list is
of. I don't have my code in front of me and I don't
recall what happens when the <s:select.../> is being
populated from a map, sorry :/ 

IIRC if it's a "simple" map the value will be the key
and the text will be the toString of the value, but...
IRRC (I Rarely Remember Correctly).

The following may be wrong, but it tripped me up for
about 15 minutes, and this was how I solved it:

One thing of note regarding <s:select.../> is that the
"value" attribute apparently needs to be a map with a
*string* key. So even if the list/set you're
populating the list from has a java.lang.Long id (like
all my Hibernate POJOs do) the *value* attribute must
be a map in order for list "pre-selection" to work.

*If* this is true, it is unfortunate, as it adds a
step between simply getting the appropriate sets and
values and just throwing them at <s:select.../> but I
suppose it makes sense from a practicality standpoint.

d.



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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

Reply via email to