Unfortunately I think howard's right in that you will need a fake request and
response. It's perfectly legal for a component to @Inject Request or @Inject
Response so you will need these.

It's probably easiest to take a very simple ajax zone update and try to fake
it from a non-web thread.

As an example:
1. Open firebug to the "net" tab
2. Go to
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/eventlink
3. Click on the ajax link
4. Look at the request and response in firebug

In the net tab you will see
1. The request that you are trying to fake (important bits are the URL and
X-Requested-With header)
2. The response json

If you want a good place to start, create a simple ajax event on your site
and then try to fake it. You will need to call
HttpServletRequestHandler.service(request, response). The
HttpServletRequestHandler is a service which can be looked up from the
tapestry registry.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-push-proof-of-concept-tp5697644p5708997.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to