Try doing a grep or something... It's right there in the doBuild.
This is an older version of turbine, but it should be the same
public class VelocityOnlyLayout extends Layout
{
/**
* Method called by LayoutLoader.
*
* @param RunData
* @return processed template in a String
*/
public void doBuild( RunData data ) throws Exception
{
/* Get the context needed by WebMacro */
Context context = TurbineVelocity.getContext( data );
/* Screen results */
String returnValue = "";
/*
* First, generate the screen and put it in the context so
* we can grab it the layout template.
*/
ConcreteElement results = ScreenLoader.getInstance()
.eval(data, data.getScreen());
if (results != null)
returnValue = results.toString();
/* variable for the screen in the layout template */
context.put("screen_placeholder", returnValue);
/* variable to reference the navigation screen in the layout template
*/
context.put("navigation", new TemplateNavigation( data ));
/* Grab the layout template set in the WebMacroSitePage.
* If null, then use the default layout template
* (done by the TemplateInfo object )
*/
String templateName = data.getTemplateInfo().getLayoutTemplate();
/* Set the locale and content type */
data.getResponse().setLocale(data.getLocale());
data.getResponse().setContentType(data.getContentType());
/* Finally, generate the layout template and send it to the browser */
data.getOut().print(TurbineVelocity
.handleRequest(context, "layouts" + templateName));
}
}
On Thursday 26 February 2004 11:24 am, srinivas babu wrote:
> Hi Phee,
>
> I checked all the files but I didn't find any file pushing
> screen_placeholder into the context. thanks Phee.
>
> Regards,
> Srinivas Paluri
>
> mphee <[EMAIL PROTECTED]> wrote:
> Checkout the files in these directories.
>
> java\org\apache\turbine\modules\layouts
> java\org\apache\turbine\util\template
> java\org\apache\turbine\services\jsp\util
>
>
> On Thu, 26 Feb 2004 08:11:11 -0600, Stuart Belden wrote
>
> > I believe screen_placeholder comes from Turbine:
> > http://jakarta.apache.org/turbine/turbine-2.3/howto/velocity-site-howto.h
> >tml
> >
> > >>> [EMAIL PROTECTED] 02/25/04 12:33PM >>>
> >
> > Hi all,
> >
> > Could anyone pl let me know in which java class the
> > screen_placeholder variable was put into the context. Thank you very
> > much in advance.
> >
> > Srinivas
> >
> > Manish Kumar wrote:
> > I am trying to enforce a limit on number of panes that can be added
> > in my portal. The approach, I planned to follow is like this:
> >
> > Check the $tabs.size() and if it is more than 5 (let's say), then
> > disable the "Add Pane" button
> >
> > Problem: I am not able to access $tabs from the template file
> > customizer-portletset.vm
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]