Daniel Baldes wrote:
[...]
1. extending StrutsTypeConverter forces me to implement String
convertToString(Map context, Object o). I think there is no common sense
way of converting a collection back to a String in this context. It
would, maybe, make sense to convert it to a String[]. But what I
actually want is to have access to the unconverted collection in the
JSP. This might seem strange from some point of view, and I could live
without it, but is there a way to do this? Example:
<s:select multiple="true"
name="myObjects"
list="myObjects" listKey="id" listValue="name" />
This way I could use getMyObjects() for displaying my objects and
setMyObjects() for setting them (using only their IDs).
Doesn't this imply that the myObjects property represents both the set
of values that can be selected *and* the set of values that is / has
been selected? What would happen if the user made their selection(s) and
submitted the form, and the form was re-displayed due to a validation error?
Maybe I'm missing the pattern, but this doesn't seem right to me :=)
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]