Good question, my rational was that I *might" want need to re-use the
template I'm creating inside a Tap Page soon, so I thought I would start
off by making the html I need to render a Component (as I could access
and render a component directly via an http request).

I could always embed the Component within an empty wrapper Page and
access that via http, but I was hoping this wouldn't be necessary.


On Thu, 2011-06-30 at 23:11 +0200, Markus Feindler wrote:
> 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
> 



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

Reply via email to