You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Markos Charatzas <xa...@forthnet.gr> on 2005/06/21 13:29:11 UTC

Standalone Application Toolbox

Hi there,

It is possible to have a toolbox in a standalone velocity application?

Thanks in advance,
Markos

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Standalone Application Toolbox

Posted by Markos Charatzas <xa...@forthnet.gr>.
Just used the new VelocityContext(Context context) constructor to wrap the 
toolbox context.

Hope someone will find this thread useful! :p

Sorry for the trouble,
Markos

On Tuesday 21 June 2005 15:21, Markos Charatzas wrote:
> Digging around I found out that I just jave to use the context provided by
>
> toolboxManager.getToolboxContext(String)
>
> instead. Although I must be missing something cuz using is it seems that
> the
>
> template.merge( Context context, Writer writer )
>
> does not actually work its way through the #foreach directive...
>
> Thanks,
> Markos
>
> On Tuesday 21 June 2005 14:58, Markos Charatzas wrote:
> > Im using the org.apache.velocity.tools.view.XMLToolboxManager to load the
> > toolbox, but do I need to register it somehow with the VelocityEngine?
> >
> > Thanks,
> > Markos
> >
> > On Tuesday 21 June 2005 14:29, Markos Charatzas wrote:
> > > Hi there,
> > >
> > > It is possible to have a toolbox in a standalone velocity application?
> > >
> > > Thanks in advance,
> > > Markos
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Standalone Application Toolbox

Posted by Markos Charatzas <xa...@forthnet.gr>.
Digging around I found out that I just jave to use the context provided by 

toolboxManager.getToolboxContext(String)

instead. Although I must be missing something cuz using is it seems that the 

template.merge( Context context, Writer writer )

does not actually work its way through the #foreach directive...

Thanks,
Markos


On Tuesday 21 June 2005 14:58, Markos Charatzas wrote:
> Im using the org.apache.velocity.tools.view.XMLToolboxManager to load the
> toolbox, but do I need to register it somehow with the VelocityEngine?
>
> Thanks,
> Markos
>
> On Tuesday 21 June 2005 14:29, Markos Charatzas wrote:
> > Hi there,
> >
> > It is possible to have a toolbox in a standalone velocity application?
> >
> > Thanks in advance,
> > Markos
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Standalone Application Toolbox

Posted by Markos Charatzas <xa...@forthnet.gr>.
Im using the org.apache.velocity.tools.view.XMLToolboxManager to load the 
toolbox, but do I need to register it somehow with the VelocityEngine?

Thanks,
Markos

On Tuesday 21 June 2005 14:29, Markos Charatzas wrote:
> Hi there,
>
> It is possible to have a toolbox in a standalone velocity application?
>
> Thanks in advance,
> Markos
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org