-
1. Re: form data missing in Errai 3.0.0.CR1 JaxRS client
mbarkley May 20, 2014 9:56 AM (in response to steeveb)Hi Steeve,
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?
-
2. Re: form data missing in Errai 3.0.0.CR1 JaxRS client
steeveb May 20, 2014 10:25 AM (in response to mbarkley)Hi Max,
It is really a simple service method :
@POST
@Path("login")
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
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
-
3. Re: Re: form data missing in Errai 3.0.0.CR1 JaxRS client
mbarkley May 22, 2014 9:14 AM (in response to steeveb)1 of 1 people found this helpfulHi Steeve,
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.
Cheers.
-
4. Re: form data missing in Errai 3.0.0.CR1 JaxRS client
steeveb May 23, 2014 6:07 AM (in response to mbarkley)Hi Mark,
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?
Regards,
Steeve
-
5. Re: form data missing in Errai 3.0.0.CR1 JaxRS client
ben.dol Dec 3, 2017 4:00 AM (in response to mbarkley)Any idea when this will be supported? There are very valid use cases for this functionality.
-
6. Re: form data missing in Errai 3.0.0.CR1 JaxRS client
mbarkley Dec 7, 2017 11:04 AM (in response to ben.dol)Currently we have no plans to add this feature. Most of our efforts are focused on upgrading our code-generation to use annotation processors.