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!

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Lance Java
FYI, I just updated the demo to show the power of the mixin http://tapestry-stitch.uklance.cloudbees.net/observedemo NB. I changed the name of the mixin from onEvent to observe. On 24 July 2014 18:52, Lance Java wrote: > Take a look at the onEvent mixin here > > https://github.com/uklance/tape

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Lance Java
Take a look at the onEvent mixin here https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/mixins/OnEvent.java It allows you to pass multiple field values to the serverside event. That way, each event can be passed all the relevant clientside field values. Keepi

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Erich Gormann
Hi Luis, sometime ago I wrote exact such a component for a complex fully generic working search panel with any number of search criteria and data types. I faced exactly the same problems like you, because without doing a HTTP post on the complete page there is no standrad way to keep the state

AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Luis Salas
Hi everyone. I'm developing a refine search component that need to add field's rows dynamically, this rows contains 2 select components and by default a textbox. When I change the value of the first select I have to update the list of the second select and change the textbox to a component t

Re: Tracking ajax requests with T5.4

2014-07-24 Thread Lance Java
Since tapestry 5.4 you can wait for the data-ajax-active attribute to be "false" on the See SeleniumTestCase.waitForAjaxRequestsToComplete()

Re: Tracking ajax requests with T5.4

2014-07-24 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jul 2014 08:53:40 -0300, Michael Wyraz wrote: Hi Lance, this won't really help. I need to known when the ajax processing is finished - not that a zone was updated (the fact, that there are zone updates is not known to my script). What do you mean by "ajax processing is finis

Re: Tracking ajax requests with T5.4

2014-07-24 Thread Michael Wyraz
Hi Lance, this won't really help. I need to known when the ajax processing is finished - not that a zone was updated (the fact, that there are zone updates is not known to my script). Oops... That was for 5.3. Try this instead $(document).bind("t5:zone:did-update", function() {...}) On 24

Re: Tracking ajax requests with T5.4

2014-07-24 Thread Lance Java
Oops... That was for 5.3. Try this instead $(document).bind("t5:zone:did-update", function() {...}) On 24 Jul 2014 11:15, "Lance Java" wrote: > $(document).bind(Tapestry.ZONE_UPDATED_EVENT, function() {...}) > On 24 Jul 2014 10:22, "Michael Wyraz" wrote: > >> Hi, >> >> unfortunately it works

Re: Tracking ajax requests with T5.4

2014-07-24 Thread Lance Java
$(document).bind(Tapestry.ZONE_UPDATED_EVENT, function() {...}) On 24 Jul 2014 10:22, "Michael Wyraz" wrote: > Hi, > > unfortunately it works not completely as expected. The reason is that that > jQuery event if fired when the response is received, not when the response > is processed. So i have

Re: Tracking ajax requests with T5.4

2014-07-24 Thread Michael Wyraz
Hi, unfortunately it works not completely as expected. The reason is that that jQuery event if fired when the response is received, not when the response is processed. So i have a race-contition here where tapestry is aplying zoneupdates or redirects but my script thinks that the request is a

Re: Tracking ajax requests with T5.4

2014-07-24 Thread Michael Wyraz
Hi Thiago, thank you very much for the hint. Look that I searched at the wrong place. I could solve my problem using the following script: define(["jquery"],function($) { var ajaxCount=0; $(document).ajaxStart(function() { ajaxCount++; console.log("Aj