Sorry for not explaiining the thing clear enough...
I need to include dynamicaly this header and footer from remote location. Usually this is achieved inside some other framework like this (velocity template - layout.vm):

$includeTool.include(http://someheader.url)
$screen_content
$includeTool.include(http://somefooter.url)

I guess I could probably make some type of this "IncludeTool" in Tapestry, but I guess Tapestry requires HTML portion like <head> to be statically present inside template to be able to manipulate with it (like adding javascript file references etc...). If this HTML portion is contained at remote location, then Tapestry cannot manage it I guess.

Regards,
Vjeran

----- Original Message ----- From: "Ben Gidley" <b...@gidley.co.uk>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Monday, June 29, 2009 12:59 PM
Subject: Re: Tapestry not suitable for this environment?


You can do this with tapestry using a 'layout' component see -
http://tapestry.apache.org/tapestry5.1/guide/layout.html for a guide.
You simply put your customers HTML in that component. Tapestry will write
additional things into the header (e.g. your CSS and javascript) as
required.


Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


2009/6/29 Vjeran Marcinko <vjeran.marci...@email.t-com.hr>

Hi,

I think I already know the answer, but I just want to be sure.
Looking at some non-Tapestry web applications in my company, some of them
are deployed in environments where customer's header and footer have to be included in application's web layout. This is not the case where customer's
web portal includes my application inside some "iframe", but they provide
header as HTML portion that contains starting tags such as
<html>,<head>,<body> and some content. Likewise, footer contains ending tags (</html> etc..) and content. And I have to include them at start and end of
my web application.

Since Tapestry controls the whole page during processing, adding all kind
of stuff in its head or footer, I guess tapestry is not suitable for these
environments?

Regards,
Vjeran

---------------------------------------------------------------------
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