Re: Using Sitemesh Tags from a Veloticy Template

Mike Cannon-Brookes <[email protected]>
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <[email protected]>
I'm not sure how it's done - but I'm pretty sure Victor or JoeO had a 
custom written Velocity directive which did this.

M

--
ATLASSIAN - http://www.atlassian.com/

Confluence - the professional J2EE wiki - tried it yet?
http://www.atlassian.com/confluence/

On 23/03/2004, at 11:25 PM, Scott Farquhar wrote:

>
> On Tue, Mar 16, 2004 at 09:49:37AM -0500, Frank Febbraro wrote:
>> I have some custom panels that I developed using Sitemesh
>>
>> I include them in my JSP using (for example):
>>
>> <page:applyDecorator name="scrollPane">
>>     <page:param name="width">300</page:param>
>>     <page:param name="height">150</page:param>
>>
>>     ....stuff to be in scroll pane....
>>
>> </page:applyDecorator>
>>
>> On a new project I was considering using Velocity as the UI rendering
>> mechanism and I was wondering if it was possible to use these prebuilt
>> panels from within a Velocity Template. I would not even mind (too 
>> much ;-))
>> If I had to rewrite the panels in Velocity. I just dont see anything 
>> that
>> leads me in the direction of this possiblity.
>
> There is some code in CVS for VelocityDecorator servlets, but AFAIK,
> there isn't any code foe page:applydecorator.  Is there a way of 
> grabbing
> the contents of a block in velocity?
>
> Cheers,
> Scott
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Opensymphony-sitemesh mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-sitemesh
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.