You can use the <trh:head> like below:

...
<trh:head>
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"/>
    <title>#{messages['application.name']}<c:if test="${!empty viewTitle}">
~ ${viewTitle}</c:if></title>
    <link rel="stylesheet" type="text/css"
href="${facesContext.externalContext.request.contextPath}/css/custom.css" />
    <trh:script source="/js/common.js"/>
    <trh:script source="/js/key-events.js"/>
</trh:head>
...

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Oct 20, 2008 at 9:29 PM, Shailaja Jain <[EMAIL PROTECTED]>wrote:

> Hi,
>
> Is it possible to apply css stylesheets to trinidad componenets without
> using tr:document tag? Our new application has been designed to use facelets
> templating for various parts of a web page. Please find below a defined
> template in our web app. As you can see we have defined the various parts of
> a web page and the includes or areas to be defined may contain trinidad
> code. As a result we cannot use tr:document as it creates all the html
> tags....
>
> Thanks,
>
>
> <html>
>
> <head>
>
>    <ui:insert src="header.xhtml>
>
> </head>
>
> <body>
>
>    <div class=*"page"*>
>
>      <div class=*"header"*>
>
>        <ui:include src=*"/header.xhtml"*/>
>
>     </div>
>
>
>
> <div class=*"centralArea"*>
>
>     <div class=*"contentArea"*>
>
>    <ui:insert name=*"content"*/>
>
> </div>
>
>
>
> </div>
>
>  </body>
> </html>
>

Reply via email to