-
Notifications
You must be signed in to change notification settings - Fork 64
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
Array in @ExtDirectMethod #49
Comments
Hi Yes it looks like it works. I made a quick test with this client code: var values = { and this server code: @ExtDirectMethod(value = ExtDirectMethodType.SIMPLE_NAMED, group = "named") Ralph On Tue, Nov 20, 2012 at 1:38 PM, salamoun notifications@github.com wrote:
|
OK, but I'm not sending array of string. I have array of bussines objects. var myObjects = [{id:1,name:'test'},{id:2,name:'test2}]; Is it possible too? Because I got spring conversion error in this case. |
Here the missing stacktrace: |
yes, i get exactly same error |
Found a solution that works with my simple test case. I try and integrate the fix into the 'next' branch (1.2.3-SNAPSHOT) tomorrow. I keep you posted. |
OK, thanks for help. |
Fix is now integrated in the lastest 1.2.3-SNAPSHOT Release. Maybe you have time and test this release with your program. It's important that the business object has a default constructor. The jackson library needs this to deserialize the object. The method also has to use generics: If the method only has a raw list as parameter it will work but the list then contains a map with String key and Object values. |
I test it and now works perfect with 1.2.3 version! But it has side effect. I previously use version 1.1.1. When I switch to 1.2.3 I must update all my JSON annotations on business object, otherwise they were ignored. |
Hi We switched to Jackson 2 in version 1.2.0 and they changed the package Ralph On Wed, Nov 21, 2012 at 10:53 AM, salamoun notifications@github.com wrote:
|
No, I change import to new packages and all code works fine. Thanks! |
Version 1.2.3 released |
Is it possible to send array over simple named method??
For example:
@ExtDirectMethod(ExtDirectMethodType.SIMPLE_NAMED)
public void sendSomeData(List objects, int someId) {
...
}
The text was updated successfully, but these errors were encountered: