Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to convert list of classes that have some converter #596

Open
gutomarzagao opened this issue Jan 30, 2014 · 0 comments
Open

Unable to convert list of classes that have some converter #596

gutomarzagao opened this issue Jan 30, 2014 · 0 comments

Comments

@gutomarzagao
Copy link

When you create a custom converter for a Foo class, Vraptor treats an element of a Foo list as the list itself when this list is inside a Foo object. For instance: suppose you have a Foo class that has a list of Foo and you try to pass some parameters to this class through request:
"foo" : "" // Creating an empty Foo instance
"foo.foosList[0]" : "1"
"foo.foosList[1]" : "2"
You also have created a converter for Foo. In this case, Vraptor throws an exception: "Unable to find converter for java.util.List". This error is fired like "foo.foosList[0]" was a list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant