ok i have a discussion about the StrutsTypeConverter

i want to convert an calendar with two fields
date <s:textfield key="start"/>
time <s:textfield key="start"/>

in the convertFromString(final Map ctx, final String[] value, final
Class arg2)
i get both values in the value array. so i can combine the date and time
to one calender object.
nice :D

for editing i need this one:
convertToString(final Map ctx, final Object data)
i want to return the date string for the first field and the time string
for the second.
but in the ctx data i can't know which is which.
i could assert that the first one is date and the second call is the
time but that seems a bit fragile.

off course i just could save the two fields in my action and combine
them there so its not a big deal ;)


have fun,

tibi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to