struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <>
Subject RE: Tiles with javascript heavy pages
Date Thu, 20 May 2004 14:51:12 GMT
At 3:13 PM +0100 5/20/04, Tim Penhey wrote:
>  > From: Joe Germuska []
>>  Sent: 20 May 2004 14:47
>>  At 2:32 PM +0100 5/20/04, Tim Penhey wrote:
>>  >I am thinking about using tiles to simplify some of my JSPs, but many of my
>>  >pages are javascript heavy.  All the js is either included or 
>>defined in the
>>  ><head> section, but I am curious to know how other people have 
>>defined their
>>  >layouts.
>>  >
>>  >Do you end up defining a very small tile that defines the <title> for
>>  >example?
>>  >
>>  >Comments eagerly awaited.
>>  You can put Javascript anywhere in a page; I think it makes sense to
>>  put it in the tile which uses it, if you can localize it that way.
>>  Obviously sometimes that doesn't make sense.
>>  We usually use Tiles attributes for the title, and then fill it in 
>>like this:
>>           <title><tiles:getAsString name="title" /></title>
>>  Joe
>How does the tiles:getAsString work with the titles in the resource bundles?

well, tiles:getAsString only retrieves Tiles attributes.  If you want 
to get the title out of the resource bundle, you'd have to use 
<bean:message>  If you want dynamic titles from message resources, 
then you'll need to use any typical dynamic data strategy, but I 
don't think that using Tiles has any impact on that.


Joe Germuska       
       "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
             -- Jef Raskin

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message