Re: How to get Body Request

2014-07-25 Thread Lance Java
I wonder if you could write a custom annotation? Not sure Eg: onActionFromSave(@RequestBody Foo saveMe) { ... } Then you could auto coerce from json via the TypeCoercer. Just a thought, not sure if it's possible. On 25 Jul 2014 15:10, "ICE Ernesto Arteaga Zavala" wrote: > 2014-07-25 8:52 GMT-0

Re: How to get Body Request

2014-07-25 Thread ICE Ernesto Arteaga Zavala
2014-07-25 8:52 GMT-05:00 Thiago H de Paula Figueiredo : > On Fri, 25 Jul 2014 10:33:08 -0300, ICE Ernesto Arteaga Zavala < > arterza...@gmail.com> wrote: > >5. *Request Payload*view source >>* <= This is the pay load (request body)* >> >>{id:0, title:Another Event

Re: How to get Body Request

2014-07-25 Thread Thiago H de Paula Figueiredo
On Fri, 25 Jul 2014 10:33:08 -0300, ICE Ernesto Arteaga Zavala wrote: 5. *Request Payload*view source * <= This is the pay load (request body)* {id:0, title:Another Event, allDay:false} Ok, now it makes sense. :) Yeah, HttpServletRequest.getReader() is the way

Re: How to get Body Request

2014-07-25 Thread ICE Ernesto Arteaga Zavala
2014-07-25 6:53 GMT-05:00 Thiago H de Paula Figueiredo : > On Fri, 25 Jul 2014 00:51:34 -0300, ICE Ernesto Arteaga Zavala < > arterza...@gmail.com> wrote: > > Yep I know that and that's why I started asking for a particular way to >> do something, how to get my data from payload?, all the rest is

Re: How to get Body Request

2014-07-25 Thread Thiago H de Paula Figueiredo
On Fri, 25 Jul 2014 00:51:34 -0300, ICE Ernesto Arteaga Zavala wrote: Yep I know that and that's why I started asking for a particular way to do something, how to get my data from payload?, all the rest is on my own. What do you mean by payload? In web applications, data is usually sent

Re: How to get Body Request

2014-07-24 Thread Lance Java
This is probably a good use case for tapestry-resteasy and @Post. You could make use of the jaxb marshalling. http://tynamo.org/tapestry-resteasy+guide On 24 Jul 2014 22:39, "ICE Ernesto Arteaga Zavala" wrote: > Hi guys, > > Quick question, Is there a way to get the payload (body information)

Re: How to get Body Request

2014-07-24 Thread ICE Ernesto Arteaga Zavala
2014-07-24 21:22 GMT-05:00 Thiago H de Paula Figueiredo : > On Thu, 24 Jul 2014 20:12:43 -0300, ICE Ernesto Arteaga Zavala < > arterza...@gmail.com> wrote: > > 2014-07-24 17:33 GMT-05:00 Thiago H de Paula Figueiredo < >> thiag...@gmail.com> >> : >> >> On Thu, 24 Jul 2014 19:31:35 -0300, Thiago

Re: How to get Body Request

2014-07-24 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jul 2014 20:12:43 -0300, ICE Ernesto Arteaga Zavala wrote: 2014-07-24 17:33 GMT-05:00 Thiago H de Paula Figueiredo : On Thu, 24 Jul 2014 19:31:35 -0300, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: On Thu, 24 Jul 2014 19:04:09 -0300, ICE Ernesto Arteaga Zavala <

Re: How to get Body Request

2014-07-24 Thread ICE Ernesto Arteaga Zavala
2014-07-24 17:33 GMT-05:00 Thiago H de Paula Figueiredo : > On Thu, 24 Jul 2014 19:31:35 -0300, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > On Thu, 24 Jul 2014 19:04:09 -0300, ICE Ernesto Arteaga Zavala < >> arterza...@gmail.com> wrote: >> >> Why do you need that?

Re: How to get Body Request

2014-07-24 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jul 2014 19:31:35 -0300, Thiago H de Paula Figueiredo wrote: On Thu, 24 Jul 2014 19:04:09 -0300, ICE Ernesto Arteaga Zavala wrote: Why do you need that? I'll integrate some backbone.js capabilieties, but zones are not the better match to do it. What exactly? Couldn't you

Re: How to get Body Request

2014-07-24 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jul 2014 19:04:09 -0300, ICE Ernesto Arteaga Zavala wrote: Why do you need that? I'll integrate some backbone.js capabilieties, but zones are not the better match to do it. What exactly? Couldn't you just use query parameters instead of getting the whole post information and

Re: How to get Body Request

2014-07-24 Thread ICE Ernesto Arteaga Zavala
2014-07-24 16:47 GMT-05:00 Thiago H de Paula Figueiredo : > On Thu, 24 Jul 2014 18:38:45 -0300, ICE Ernesto Arteaga Zavala < > arterza...@gmail.com> wrote: > > Hi guys, >> > > Hi! > > Quick question, Is there a way to get the payload (body information) >> from request interface on tapestry5?

Re: How to get Body Request

2014-07-24 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jul 2014 18:38:45 -0300, ICE Ernesto Arteaga Zavala wrote: Hi guys, Hi! Quick question, Is there a way to get the payload (body information) from request interface on tapestry5? You can't, as Request doesn't provide that feature. But you can @Inject HttpServletRequest an

How to get Body Request

2014-07-24 Thread ICE Ernesto Arteaga Zavala
Hi guys, Quick question, Is there a way to get the payload (body information) from request interface on tapestry5? And where can I have a tutorial or API. Thanks in advance!