incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Lessard" <simon.lessar...@gmail.com>
Subject Re: Use of <tr:document> tag
Date Sat, 07 Oct 2006 17:52:35 GMT
Try the following:

<tr:document>
 <f:facet name="metaContainer">
   <h:outputText value="<script type=\"text/javascript\" src="#{
facesContext.externalContext.requestContextPath()}/js/dojo/dojo.js}\"></script>"
escape="false"/>
  </f:facet>
</tr:document>


Regards,

~ Simon

On 10/7/06, Naresh Bhatia <NBhatia@sapient.com> wrote:
>
> I am running into a minor problem trying to use Adam's example. In the
> script tag, I need to add the context path in front of the script path.
> Unfortunately the EL expression shown below is not being evaluated:
>
> <tr:document>
>   <f:facet name="metaContainer">
>     <f:verbatim>
>       <script
>         type="text/javascript"
> src="#{facesContext.externalContext.requestContextPath()}/js/dojo/dojo.j
> s">
>         </script>
>     </f:verbatim>
>   </f:facet>
> </tr:document>
>
> How do I fix this problem?
>
> Thanks.
> Naresh
>
> -----Original Message-----
> From: Adam Winer [mailto:awiner@gmail.com]
> Sent: Saturday, October 07, 2006 10:31 AM
> To: adffaces-user@incubator.apache.org
> Subject: Re: Use of <tr:document> tag
>
> Use the "metaContainer" facet:
>
> <tr:document>
>   <f:facet name="metaContainer">
>     <f:verbatim><script ...../></f:verbatim>
>   </f:facet>
> </tr:document>
>
>
> On 10/7/06, Naresh Bhatia <NBhatia@sapient.com> wrote:
> >
> > Since the <tr:document> tag encapsulates the generation of <html>,
> > <body>, and <head> elements, how do I force generation of some
> elements
> > in to <head>. For example, I would like my <script> tags to go to the
> > <head>. (May be not a good example because it appears that <script>
> tags
> > are forced into <head> anyway. However, I don't see that documented in
> > the tag library docs.)
> >
> >
> >
> > Naresh
> >
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message