Then, why don't you use a page at all?
Can I access a component out of the context of a page?
i.e. does a component have to be bound to a Page to be rendered?

I'm trying render a simple html template and fetch it from my JS.


On Thu, 2011-06-30 at 17:38 -0300, Thiago H. de Paula Figueiredo wrote:
On Thu, 30 Jun 2011 17:26:35 -0300, Joel Halbert<j...@su3analytics.com>
wrote:

Hi,
Hi!

Is it possible to invoke a component directly via HTTP?

E.g given a Tapestry Page:

public class MyPage {
   Object onMyRequest() {
        return something;
   }
}

I can call http://myapp/mypage:myrequest/ to return something.
Can I do the same for a component?
It's not recommended to access components directly, but you can @Inject
ComponentResources and use its createEventLink() method.



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




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

Reply via email to