It's hard to know what the issue might be having not seen any of your code. Are all of your parameter types are annotated with @Portable?
It is really a simple service method :
boolean login(@FormParam("username") String username,@FormParam("password") String password);
On server side, the method is called but both parameters username and password are null
1 of 1 people found this helpful
Right now Errai JAX-RS does not support @FormParam. It was decided that this feature was not high priority since most submitted forms use either Strings or primitive types; so it didn't seem prudent to invest the effort in properly serializing @Portable objects through form parameters.
Thank you for your answer. I understand your point and putting a form in substitution was the option i chose indeed.
I would like to suggest two things :
- it would be nice to throw an exception indicating that @FormParam is not managed.
- this kind of limitation should be in the documentation isn't it?