Write your own IConverter that converts List<Tag> to comma separated
string and vice-versa.
Sven
On 03/05/2013 02:20 AM, Stephen Walsh wrote:
I have an object that has a List<Tag> which is a simple object with a name,
id, etc. I'm attempting to use wicketstuff tagit, and my form has a
tagittextfield for this item. I'm hoping to get the comma separated string
into List<Tag>.
If I pre-populate the new object with a list, I get something like: [tag1,
tag2]. If I try to submit the form though it fails because it's getting a
string instead of an array list. Makes sense. Is there a way to convert
this comma separated list into an array before the validator runs on the
object which is bound to the form?
Thanks as always!
_______________________________________
Stephen Walsh | http://connectwithawalsh.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]