You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alfie Kirkpatrick <Al...@ioko.com> on 2009/06/10 12:21:21 UTC

Using JSP taglibs in T5?

Do people think this is possible and worth doing, or a complete
non-starter? We occasionally want to use products/libraries that come
with taglibs as their primary way of integrating functionality into
pages. For example, it might be a CMS product with taglibs to render
content + formatting into the page.

 

Freemarker manages to do this but not looked at how. I wondered if
anyone else has tried this or thought more about it...

 

Thanks!

Alfie.


Re: Using JSP taglibs in T5?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, Jun 10, 2009 at 7:21 AM, Alfie
Kirkpatrick<Al...@ioko.com> wrote:
> Do people think this is possible and worth doing, or a complete
> non-starter? We occasionally want to use products/libraries that come
> with taglibs as their primary way of integrating functionality into
> pages. For example, it might be a CMS product with taglibs to render
> content + formatting into the page.

Complete non-starter, IMHO. JSP is meant to be compiled into a servlet
class, Tapestry templates are not. JSP tags have a lifecycle, Tapestry
templates has another completely different one.

If you have access to the sources of the taglibs, maybe you have some
code to start writing correspondent Tapestry components.

> Freemarker manages to do this but not looked at how. I wondered if
> anyone else has tried this or thought more about it...

Freemarker is way simpler than the Tapestry template engine because
the former is just a template engine and only needs to output text,
while Tapestry is a web framework that has lifecycle events,
components, etc.

>
>
>
> Thanks!
>
> Alfie.
>
>



-- 
Thiago

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


Re: Using JSP taglibs in T5?

Posted by Lance Java <la...@googlemail.com>.
I have seen this sort of functionality used in DWR. The response is wrapped
in a class that writes to a local buffer instead of the response output
stream.

2009/6/10 Andreas Andreou <an...@di.uoa.gr>

> I think i remember a Tapestry component in the wiki (not sure if it
> was T4 or T5) that would include a jsp
> in the current (tapestry) page -
> it basically did
> context.getRequestDispatcher( jspPath ).include(request, response)
>
> I'm not really sure if this still works + it would mean you'd use the
> taglib in that jsp
> which you then include through the component... also, if the taglib
> generates links,
> they'll probably not work
>
> On Wed, Jun 10, 2009 at 1:21 PM, Alfie
> Kirkpatrick<Al...@ioko.com> wrote:
> > Do people think this is possible and worth doing, or a complete
> > non-starter? We occasionally want to use products/libraries that come
> > with taglibs as their primary way of integrating functionality into
> > pages. For example, it might be a CMS product with taglibs to render
> > content + formatting into the page.
> >
> >
> >
> > Freemarker manages to do this but not looked at how. I wondered if
> > anyone else has tried this or thought more about it...
> >
> >
> >
> > Thanks!
> >
> > Alfie.
> >
> >
>
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Using JSP taglibs in T5?

Posted by Andreas Andreou <an...@di.uoa.gr>.
I think i remember a Tapestry component in the wiki (not sure if it
was T4 or T5) that would include a jsp
in the current (tapestry) page -
it basically did
context.getRequestDispatcher( jspPath ).include(request, response)

I'm not really sure if this still works + it would mean you'd use the
taglib in that jsp
which you then include through the component... also, if the taglib
generates links,
they'll probably not work

On Wed, Jun 10, 2009 at 1:21 PM, Alfie
Kirkpatrick<Al...@ioko.com> wrote:
> Do people think this is possible and worth doing, or a complete
> non-starter? We occasionally want to use products/libraries that come
> with taglibs as their primary way of integrating functionality into
> pages. For example, it might be a CMS product with taglibs to render
> content + formatting into the page.
>
>
>
> Freemarker manages to do this but not looked at how. I wondered if
> anyone else has tried this or thought more about it...
>
>
>
> Thanks!
>
> Alfie.
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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