|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Turning Off Directives?I asked this a long while back, but it's coming up again, so I'll see if anything's changed in the 1.6.x Velocity world...
Is there a way, other than hacking the velocity .jar, to change the Directive list? Specifically, we want to turn off #include(), without having to change the velocity .jar file. Thanks! Tim ________________________________ This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. |
|
|
AW: Turning Off Directives?Why you don't specify your own IncludeEventHandler?
-----Ursprüngliche Nachricht----- Von: White, Tim [mailto:Tim.White@...] Gesendet: Mittwoch, 4. November 2009 22:56 An: Velocity Users List Betreff: Turning Off Directives? I asked this a long while back, but it's coming up again, so I'll see if anything's changed in the 1.6.x Velocity world... Is there a way, other than hacking the velocity .jar, to change the Directive list? Specifically, we want to turn off #include(), without having to change the velocity .jar file. Thanks! Tim ________________________________ This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Turning Off Directives?Hmmm. That might work...the problem is that we need to be able to not barf if the template has this in it:
<!--#include virtual="" --> Right now, it barfs the template. -----Original Message----- From: Johann.Weber@... [mailto:Johann.Weber@...] Sent: Wednesday, November 04, 2009 3:13 PM To: user@... Subject: AW: Turning Off Directives? Why you don't specify your own IncludeEventHandler? -----Ursprüngliche Nachricht----- Von: White, Tim [mailto:Tim.White@...] Gesendet: Mittwoch, 4. November 2009 22:56 An: Velocity Users List Betreff: Turning Off Directives? I asked this a long while back, but it's coming up again, so I'll see if anything's changed in the 1.6.x Velocity world... Is there a way, other than hacking the velocity .jar, to change the Directive list? Specifically, we want to turn off #include(), without having to change the velocity .jar file. Thanks! Tim ________________________________ This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Turning Off Directives?I haven't ever tried it, but there is a
RuntimeInstance.removeDirective(String name) method. Of course, then you would have to use RuntimeInstance directly, instead of the VelocityEngine wrapper. That won't cost you much in features (just a bit of evaluate() wrapping code), but it might not fit with your setup. Have you ever opened a JIRA issue about this RFE? On Wed, Nov 4, 2009 at 1:56 PM, White, Tim <Tim.White@...> wrote: > I asked this a long while back, but it's coming up again, so I'll see if anything's changed in the 1.6.x Velocity world... > > Is there a way, other than hacking the velocity .jar, to change the Directive list? > > Specifically, we want to turn off #include(), without having to change the velocity .jar file. > > Thanks! > > Tim > > ________________________________ > This communication is the property of Qwest and may contain confidential or > privileged information. Unauthorized use of this communication is strictly > prohibited and may be unlawful. If you have received this communication > in error, please immediately notify the sender by reply e-mail and destroy > all copies of the communication and any attachments. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: Turning Off Directives?I don't recall opening a JIRA on this particular item, but I will do so now. :)
________________________________________ From: Nathan Bubna [nbubna@...] Sent: Thursday, November 05, 2009 10:33 AM To: Velocity Users List Subject: Re: Turning Off Directives? I haven't ever tried it, but there is a RuntimeInstance.removeDirective(String name) method. Of course, then you would have to use RuntimeInstance directly, instead of the VelocityEngine wrapper. That won't cost you much in features (just a bit of evaluate() wrapping code), but it might not fit with your setup. Have you ever opened a JIRA issue about this RFE? On Wed, Nov 4, 2009 at 1:56 PM, White, Tim <Tim.White@...> wrote: > I asked this a long while back, but it's coming up again, so I'll see if anything's changed in the 1.6.x Velocity world... > > Is there a way, other than hacking the velocity .jar, to change the Directive list? > > Specifically, we want to turn off #include(), without having to change the velocity .jar file. > > Thanks! > > Tim > > ________________________________ > This communication is the property of Qwest and may contain confidential or > privileged information. Unauthorized use of this communication is strictly > prohibited and may be unlawful. If you have received this communication > in error, please immediately notify the sender by reply e-mail and destroy > all copies of the communication and any attachments. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |