Expensive in cycles or memory? And in what version? Much
optimization has been done, and i've yet to notice trouble in 1.6+ (at
least compared to previous).
On Thu, Dec 17, 2009 at 1:31 PM, Jude Robinson
dotcode+veloc...@gmail.com wrote:
Hi all - a concise question about VTL performance:
Yeah, macros actually got a lot more expensive (especially in memory)
in 1.5. 1.6.2 resolved most of those issues. :)
On Thu, Dec 17, 2009 at 5:27 PM, Jude Robinson
dotcode+veloc...@gmail.com wrote:
Expensive in cycles or memory? And in what version? Much
optimization has been done, and i've
With Spring MVC? Yeah, i have that running in an app somewhere, not
sure offhand. Did you have particular questions?
On Tue, Dec 15, 2009 at 6:44 AM, Ben Short b...@benshort.co.uk wrote:
Thanks for this information.
Has anyone had any luck getting velocity tools 2 working with spring?
With Spring MVC? Yeah, i have that running in an app somewhere, not
sure offhand. Did you have particular questions?
On Tue, Dec 15, 2009 at 6:44 AM, Ben Short b...@benshort.co.uk wrote:
Thanks for this information.
Has anyone had any luck getting velocity tools 2 working with spring?
to the list.
Steve
-Original Message-
From: user-return-20992-sohara=pivotal-solutions.co...@velocity.apache.org
[mailto:user-return-20992-sohara=pivotal-solutions.co...@velocity.apache.org]
On Behalf Of Nathan Bubna
Sent: 14 October 2009 20:38
To: Velocity Users List
Subject: Re
When the innards of the $val block ($item.get(1)) resolve to null,
they are output as they were. So $val should render as the literal
string $item.get(1). That string is definitely not null. If you
want, you can use quiet notation ($!item.get(1)), but even that will
render as an empty string ,
On Wed, Oct 14, 2009 at 8:44 AM, Steve O'Hara
soh...@pivotal-solutions.co.uk wrote:
I have a class that extends an abstract class which is placed into a
Velocity context. However, the public methods of the abstract class are
not visible to Velocity.
is the abstract class public?
You aren't actually required to put reference of this in the About
screen of the app. If you are distributing the application, my
understanding is that you should put attribution in a NOTICE file, but
if not distributing (and just running on your own server), you don't
*need* to do anything
Personally, i'm really not sure. I haven't used Struts 2, and last i
looked (which was easily a year ago) their VelocityTools support was
rather outdated. Have you tried asking on the Struts list already?
Have you tried putting your object into the request attributes?
On Thu, Sep 17, 2009 at
distributed mobile application, and it gets distributed in an
application package that cannot be inspected by the user.
So how can I do? I want to be absolutely sure that I don't get sued by ASF
:)
On Fri, Sep 18, 2009 at 9:25 PM, Nathan Bubna nbu...@gmail.com wrote:
You aren't actually
.
Is there some way to reproduce this behaviour in the new approach?
Sounds like I should try to use the SystemLogChute or the
AvalonLogChute since both use LogChute.WARN_PREFIX, which is what
I had seen before in the output.
Thanks again,
Matthias
Nathan Bubna wrote:
Hi Matthias,
Believe
On Fri, Aug 28, 2009 at 2:46 PM, ChadDavischadmichaelda...@gmail.com wrote:
I'm now using the org.apache.velocity.app.event.implement.IncludeNotFound
event handler. This works great. But . . .
I now would like to be able to have access to the name of the missing
resource so i can inline it
I'm not set up to easily test Tomcat 5 or 5.5 right now (this machine
only has 6.0 at the moment). Here's some standard questions:
Are you sure that your properties are being loaded?
What version of VelocityTools are you using?
And a non-standard one:
Perhaps Tomcat 5.5 isn't fond of '.' in
Hi Matthias,
Believe your eyes. The cues you need are in the source of the
JdkLogChute.java file, lines 81-96. debug-FINE, trace-FINEST,
warn-WARNING, error-SEVERE, info-INFO.
And yeah, the overwhelming majority of Velocity log output happens at
the debug/FINE level. You would only get a
No, there was never such a feature. I think the statement should be
something like:
$reference.badMethodDefinedInSuperClass()
The point seems to be that Velocity supports calling any public method
of an object defined in a public class/interface, not merely those
defined in the subclass. Which
a tool can really only get access to whatever is in the context or
what is manually given to it. since the HttpServletRequest is
available automatically, they can get the request path and derive the
file from that. just know that even that isn't perfect; if the
request path points to foo.vm and
there's a velocimacro.strict.arguments property that would make that
true, but it's false by default. it's been that way for some time.
i'm not sure why the user guide says that.
On Thu, Aug 6, 2009 at 9:14 AM, ChadDavischadmichaelda...@gmail.com wrote:
In the user guide, it says when the
): at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Nathan Bubna wrote:
Have you tried using the WebappResourceLoader from the VelocityTools
project? The FileResourceLoader is difficult to use and not very
portable in webapp environments. It also won't work at all in
unexploded WAR
On Mon, Jul 20, 2009 at 12:49 AM, lanxiazhilanxia...@gmail.com wrote:
thanks Rupali,
I got this problem when I started to think that, can I simply output an
expression like #{1+2+20*3+$a} without a varible?
The macro is fine. Alternately, you could add an instance of the
MathTool (from
willing to reconsider this in
version 2.
2009/7/20 Nathan Bubna nbu...@gmail.com
On Mon, Jul 20, 2009 at 12:49 AM, lanxiazhilanxia...@gmail.com wrote:
thanks Rupali,
I got this problem when I started to think that, can I simply output an
expression like #{1+2+20*3+$a} without a varible
#set( $hashes = '' )
$hashes
single-quoted strings are not interpolated.
On Mon, Jul 20, 2009 at 12:07 PM, Steve Cohensco...@javactivity.org wrote:
Using Velocity 1.6.2 I wish to output the string #.
In my template, I code it \#\#\#\#\#
It renders as \#\#\#\#\#.
What am I doing
On Mon, Jul 20, 2009 at 5:51 PM, Nathan Bubnanbu...@gmail.com wrote:
In VelocityTools 1.4, there is little support for auto-loading
GenericTools, i wouldn't bother. Just create a context, add tool
instances that you want and then use the already available
context-chaining support in
#if( $foo.class.name == java.lang.Integer )
or just don't give your macro to an untrusted user. or if you can at
least trust the user to pass a number, then $foo.intValue() is all you
need.
On Fri, Jun 26, 2009 at 10:52 AM, ChadDavischadmichaelda...@gmail.com wrote:
I have a macro that takes
Fenbersmark.fenb...@noaa.gov wrote:
Nathan Bubna wrote:
You can configure multiple resource loaders in a lookup order.
resource.loader=jar,file,whatever
jar.resource.loader.class = ...
file.resource.loader.class = ...
whatever.resource.loader.class = ...
if Velocity can't find it via the jar one, it'll
this?
On 14/06/2009, Nathan Bubna nbu...@gmail.com wrote:
That should be:
#if( $!items.getAttributeValue('required') != )
Or just $!items.getAttributeValue('required') if you don't mind
showing empty strings.
Or if you really want to clean up the look:
public class AltTool {
public
them. So it now makes sense
to just read these from the file system, rather than from a jar file...
Thanks, anyway, as I learned some important things in the process.
Mark
Nathan Bubna wrote:
Can you put your jar in the classpath and use the
ClasspathResourceLoader instead of going through
That should be:
#if( $!items.getAttributeValue('required') != )
Or just $!items.getAttributeValue('required') if you don't mind
showing empty strings.
Or if you really want to clean up the look:
public class AltTool {
public Object empty(Object val, Object alt) {
return (val == null ||
I think org.apache.velocity.runtime.resource.loader.JarResourceLoader
was created to help with such situations.
On Sat, Jun 13, 2009 at 4:56 PM, Mark Fenbersmark.fenb...@noaa.gov wrote:
I'm having some trouble with mergeTemplate() in that it seems to be unable
to open a template file if it is
On Sat, Jun 13, 2009 at 6:48 PM, Mark Fenbersmark.fenb...@noaa.gov wrote:
Nathan Bubna wrote:
I think org.apache.velocity.runtime.resource.loader.JarResourceLoader
was created to help with such situations.
OK, I read up on JarResourceLoader() and put the appropriate resource loader
How are you using Velocity? Are you using the singleton? A
VelocityEngine? Are you using a servlet or a framework that handles
Velocity for you? Is this a webapp?
On Fri, May 29, 2009 at 11:26 AM, Nathan Sowatskey nsowa...@cisco.com wrote:
Hi all
I am trying to use this feature:
I haven't seen this with 1.6.2, but none of my current projects are
under any load (yet). Just to clarify, is the macro defined and used
in the template or just used in the template? And for completeness,
what are your macro settings?
On Mon, May 18, 2009 at 12:58 PM, Will Glass-Husain
);
p.setProperty(velocimacro.context.localscope, true);
Let me know if you see anything useful. We originally had this
problem under Velocity 1.5 so I upgraded to 1.6.2. I'll set up a
test case under load, see if I can replicate it.
WILL
On Mon, May 18, 2009 at 1:06 PM, Nathan Bubna nbu
and the IncludeEventHandler returns null.
-Ursprüngliche Nachricht-
Von: Nathan Bubna [mailto:nbu...@gmail.com]
Gesendet: Fr 15.05.2009 18:17
An: Velocity Users List
Betreff: Re: Problem with VM and caching
What version of Velocity are you using?
On Fri, May 15, 2009 at 4:04 AM, johann.we
#set ($rec = { 'Control' : Control1, 'CM' : 1. Do this
2. Do that
3. Do the other})
Or, using the EscapeTool, you could do:
#set ($rec = { 'Control' : Control1, 'CM' : 1. Do this${esc.n}2. Do
that${esc.n}3. Do the other})
On Thu, May 14, 2009 at 5:39 PM, Gary M. Catlin gcatli...@gmail.com
In the upcoming 1.7, you'll be able to do
#[[c:if test=${ foo != null }]]#
but for now, you have to use what we call poor man's escaping:
#set( $D = '$' )
c:if test=$D{ foo != null}
Of course, it's best if you can just set the $D reference globally in
your context instead of every template. :)
If you are keeping your template in a jar, then you should use the
ClasspathResourceLoader or the JarResourceLoader.
On Thu, May 7, 2009 at 8:37 AM, liumin HU l...@sigems.fr wrote:
hi,
I have a problem to load a template.my situations is:
I have a jar used in a wep app. In one method, It use
I wasn't around for that, but i always imagined it was arbitrary.
It's really the kind of thing that you should tune yourself, but some
value was needed as the default.
On Mon, May 11, 2009 at 12:50 PM, Matt Brown
matt.br...@citrixonline.com wrote:
When resource caching is enabled in Velocity,
heh. that's amusing. thanks, for letting us know! i'll get it fixed.
On Fri, May 8, 2009 at 9:57 AM, sebb seb...@gmail.com wrote:
http://velocity.apache.org/download.cgi has a link to
http://www.apache.org/dist/velocity/engine/1.6.2/velocity-1.6.2.zip.md6
likewise for tgz
Looks like
1.6.2
with either VelocityTools 1.4 or 2.0-beta3.
-Rupali
-Original Message-
From: Nathan Bubna [mailto:nbu...@gmail.com]
Sent: Thursday, April 30, 2009 7:19 PM
To: Velocity Users List
Subject: Re: How to resolve error : Left side ($menuCurrentPage) of '=='
operation has null
-doctype.fhtml', called from template
/index.html at (2, 26)
I've attached one of the files where the error occurs.. you can also review
that.
Thanks so much!
Rupali
-Original Message-
From: Nathan Bubna [mailto:nbu...@gmail.com]
Sent: Wednesday, April 29, 2009 7:29 PM
To: Velocity Users
Since you are just passing a Reader directly to the evaluate() method,
your VelocityEngine knows absolutely nothing about the path from which
it came. So, how are you configuring the VelocityEngine instance you
are using here (ve)? I don't see that code here.
On Thu, Apr 30, 2009 at 5:45 AM,
-
From: Nathan Bubna [mailto:nbu...@gmail.com]
Sent: Tuesday, April 28, 2009 7:21 PM
To: Velocity Users List
Subject: Re: How to resolve error : Left side ($menuCurrentPage) of '=='
operation has null value. If a reference, it may not be in the context.
Operation not possible.
Without
the message generates for any
variable and resolves on page refresh..??
-Original Message-
From: Nathan Bubna [mailto:nbu...@gmail.com]
Sent: Monday, April 27, 2009 7:17 PM
To: Velocity Users List
Subject: Re: How to resolve error : Left side ($menuCurrentPage) of '=='
operation has
Yes, it is a Velocity message. it means that in the template being
processed at that time, there is no value for th $menuCurrentPage
variable when it is being used in an #if( $menuCurrentPage ==
'something' ) comparison (or an #elseif).
On Sun, Apr 26, 2009 at 11:33 PM, RUPALI
mean if any
of the updatedAt property is null in dto list then not display the record,.
I could not find the solution why this is not displaying while sorting?
Thanks Regards,
Ranjeet
- Original Message - From: Nathan Bubna nbu...@gmail.com
To: Velocity Users List user
Keep your inline macros local:
velocimacro.permissions.allow.inline.local.scope = true
and in general, i'd recommend rereading the Velocimacro section of this:
http://velocity.apache.org/engine/devel/developer-guide.html#Velocity_Configuration_Keys_and_Values
On Thu, Apr 23, 2009 at 9:26 AM,
On Tue, Apr 21, 2009 at 5:47 AM, Doug Carter dcar...@mercycorps.org wrote:
On Mon, Apr 20, 2009 at 07:58:59PM -0700, Nathan Bubna wrote:
On Mon, Apr 20, 2009 at 4:38 PM, Doug Carter dcar...@mercycorps.org wrote:
On Mon, Apr 20, 2009 at 02:33:50PM -0700, Nathan Bubna wrote:
On Mon, Apr 20
On Wed, Apr 22, 2009 at 11:33 AM, Doug Carter dcar...@mercycorps.org wrote:
Nathan,
velosurf.properties? was that a typo? looks like it's using
/WEB-INF/velocity.properties
Typo.
anyway, it's difficult to guess what is happening, in part because
your description varies. first, it
On Mon, Apr 20, 2009 at 1:09 PM, Doug Carter dcar...@mercycorps.org wrote:
Hi all,
I'm running: Tomcat 5.5.23, ModJK 1.2.2, Java 1.6.07, Apache 2.0.52,
CentOS 4.7, VelocityToolsView 1.4, VelocityDep 1.4.
I've been using Tomcat/Velocity for many years, and have written many
applications.
On Mon, Apr 20, 2009 at 4:38 PM, Doug Carter dcar...@mercycorps.org wrote:
On Mon, Apr 20, 2009 at 02:33:50PM -0700, Nathan Bubna wrote:
On Mon, Apr 20, 2009 at 1:09 PM, Doug Carter dcar...@mercycorps.org wrote:
Hi all,
I'm running: Tomcat 5.5.23, ModJK 1.2.2, Java 1.6.07, Apache 2.0.52
As far as i know, it comes from the fact that Velocity was started as
an Apache licensed alternative to WebMacro's templates which always
had the suffix wm. I imagine, naming Velocity templates with the
vm suffix made more sense then. These days, i think vtl is more
sensible, but old
On Tue, Apr 7, 2009 at 11:17 AM, MS79 shapi...@gmail.com wrote:
The application I'm working on currently uses Velocity for simple template
processing; some forms, extract data, etc.
In response to trying to meet a business need of a client, it was proposed
that we use Velocity basically as
Are you sure that getUSFormattedTn() is declared public and that
TelephoneNumber is a public class?
If so, double check directly that tn is in the context and is the
expected class by doing $tn.class right before or after the call to
$tn.USFormattedTn.
If all above checks out, you might as well
...@liferay.com wrote:
Also, wouldn't the naming rules imply that method getUSFormattedTn()
be referenced as property uSFormattedTn?
Ray
On Mon, 2009-04-06 at 07:14 -0700, Nathan Bubna wrote:
Are you sure that getUSFormattedTn() is declared public and that
TelephoneNumber is a public class
On Mon, Apr 6, 2009 at 3:49 PM, Steve Cohen sco...@javactivity.org wrote:
Nathan Bubna wrote:
Are you sure that getUSFormattedTn() is declared public and that
TelephoneNumber is a public class?
Yes.
If so, double check directly that tn is in the context
The log file entry below confirms
Pre-1.6 versions of Velocity always use toString() for references,
without exception. So in a pre-1.6 situation, you pretty much have to
create a custom directive to do something like this. With 1.6,
though, we've introduced the Renderable interface:
On Thu, Apr 2, 2009 at 9:16 AM, Raymond Auge ra...@liferay.com wrote:
Hey All,
I need to push some details up the processing chain. If I inject an
object like a Map into the context, and from within VTL call add(Object
o) on it, shouldn't this change be visible from outside the context,
once
Which version of Velocity? $velocityHasNext doesn't work right in 1.6
and is absent in earlier versions. You should use 1.6.2.
On Tue, Mar 31, 2009 at 8:34 AM, Steve Cohen sco...@javactivity.org wrote:
Given this macro, which will only be called with lists of size =2 and whose
members are
Are you referring to Java generics? Or VelocityTools' GenericTools
library? I'm guessing the the former, as that makes more sense of
your question.
Remember that Java uses generic types at compile time, then erases them:
http://java.sun.com/docs/books/tutorial/java/generics/erasure.html
Since
On Mon, Mar 16, 2009 at 8:36 AM, Steven Weiss swe...@iafrica.com wrote:
Hi,
I have upgraded to version 1.6.1. I've noticed in the tomcat logs that
velocity tries to initialize itself a number of times. Sometimes within
seconds of itself, Sometimes hours.
Anyone have any ideas?
Not with
2009/3/17 bluejoe bluejoe2...@gmail.com:
Hi, all.
How to call a method without printing its return value? For example, I
define a class MyList, which has a method:
public MyList add(String e);
In my template, when I write:
$list.add(a).add(b)...
When rendered, the method will be
to understand how can I use velocity tools in
offline mode.
-Original Message-
From: Nathan Bubna [mailto:nbu...@gmail.com]
Sent: Saturday, March 14, 2009 10:19 PM
To: Velocity Users List
Subject: Re: Does velocity engine supports I18N ?
On Sat, Mar 14, 2009 at 7:02 AM, Caleb
What framework are you using VelocityTools with? What version of
VelocityTools are you using?
On Mon, Mar 16, 2009 at 9:45 AM, Andreas Bohnert a...@weberhofer.at wrote:
dear velocity forum,
I need access to a tool instance which is configured in my toolbox.xml from
within java.
how can I
Yeah, macros are quite a bit different, but you may be able to rig
something where you have your settings such that inline macros are
kept inline (not put the global repo), then put your dynamic macros
into the repo in a template of their own and use #parse to bring them
into the pages you want.
On Thu, Mar 12, 2009 at 4:14 PM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
2009/3/5 Nathan Bubna nbu...@gmail.com:
I looked through most of the code and don't see the problem, assuming
that ImportAttributeModel.getImportedAttributes(...) works as
expected. I've got some other things
On Fri, Mar 13, 2009 at 3:25 PM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
2009/3/13 Nathan Bubna nbu...@gmail.com:
On Thu, Mar 12, 2009 at 4:14 PM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
Is there a way to solve this problem?
Yes. :) But i don't know if it can be done
Note that #literal() works well, but only so long as its contents are
valid, parse-able VTL. For this reason, it will be deprecated in the
next version (1.7) and replaced with this textblock syntax:
#[[ you can put absolutely anything in here ]]#
But until then, #literal() is the best way to
It looks to me like the class that implements the
$pageValues.get(key) method is not declared public. Make sure that
both the pageValues class and the get method therein are both declared
public.
On Tue, Mar 10, 2009 at 2:36 PM, scadh sc...@hotmail.com wrote:
I have a Controller method that
On Thu, Mar 5, 2009 at 5:43 AM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
Hi all,
probably this is a stupid question, but please be patient, I'm almost
a noob with Velocity.
With a request-scoped tool I set an entry in the context:
velocityContext.put(stringTest, this is a test);
Got a link to the code for $tiles.importAttribute(...)? Just for
completeness...
On Thu, Mar 5, 2009 at 7:22 AM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
2009/3/5 Nathan Bubna nbu...@gmail.com:
On Thu, Mar 5, 2009 at 7:03 AM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
2009
.
On Thu, Mar 5, 2009 at 7:41 AM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
2009/3/5 Nathan Bubna nbu...@gmail.com:
Got a link to the code for $tiles.importAttribute(...)? Just for
completeness...
http://svn.eu.apache.org/repos/asf/tiles/sandbox/trunk/tiles-velocity/src/main/java/org
On Fri, Feb 27, 2009 at 3:13 AM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
Hi all
Is there a way to have a better exception management with VelocityViewServlet?
I would like to see an HTTP 500 if exceptions happen.
Sounds fine to me. Feel free to open a JIRA issue and/or submit a
For starters, you should definitely use this setting:
runtime.introspector.uberspect =
org.apache.velocity.util.introspection.SecureUberspector
This Uberspect implementation blocks the following packages and
classes by default, but you can add more to your velocity.properties
if you wish:
), yeah, it's unlikely. but some
people let untrusted 3rd parties write templates. why take chances in
such cases? :)
On Fri, Feb 27, 2009 at 10:21 AM, Nathan Bubna nbu...@gmail.com wrote:
For starters, you should definitely use this setting:
runtime.introspector.uberspect
On Thu, Feb 26, 2009 at 1:41 PM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
Hi all
Is there a way to access the writer that is used to write in the
response, from a request-scoped tool?
In Velocity 1.6, we introduced the
org.apache.velocity.runtime.Renderable interface, which has a
That would be because $velocityHasNext was introduced in Velocity
1.6.x. It doesn't exist in Velocity 1.5.
On Sun, Feb 22, 2009 at 8:03 PM, Eddie Ridwan eddie.rid...@zoominti.com wrote:
I am using Velocity views in Spring 2.5 (velocity-1.5.jar). The problem I
have is that $velocityHasNext does
Yes, if you need to programmatically manipulate the VelocityEngine
properties, rather than set them via a velocity.properties file, this
is still the way to go.
You are sure you specified the org.apache.velocity.tools.view.class
property in your init-params? Can you share your code and config,
that, presumably, are bound to the request.
So, at a first glance, it seems impossible to have an application-wide
tool that uses request-scoped objects.
But what if I use ThreadLocal to store request, response, Velocity
context? Will it work?
Thanks
Antonio
2009/2/25 Nathan Bubna nbu
Odd. Which VelocityViewServlet does your VelocityServlet extend? It
should be extending
org.apache.velocity.tools.view.VelocityViewServlet.
Also, which version of VelocityTools 2 are you using?
On Wed, Feb 25, 2009 at 9:01 AM, rhild rh...@yahoo.com wrote:
Here is the code:
package
On Wed, Feb 25, 2009 at 9:10 AM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
2009/2/25 Nathan Bubna nbu...@gmail.com:
Ok, i think i've got it now. Storing things in a ThreadLocal should
allow an application scoped tool to have separate copies for each
request, however, i don't see how
On Wed, Feb 25, 2009 at 9:23 AM, Antonio Petrelli
antonio.petre...@gmail.com wrote:
2009/2/25 Antonio Petrelli antonio.petre...@gmail.com:
In case of an application-scoped tool, are these methods being called?
Answer: only once, at creation.
That's odd, it's an unintended feature?
Sort of.
Nathan Bubna wrote:
Odd. Which VelocityViewServlet does your VelocityServlet extend? It
should be extending
org.apache.velocity.tools.view.VelocityViewServlet.
Also, which version of VelocityTools 2 are you using?
--
View this message in context:
http://www.nabble.com/tools-1.4%3D
() method.
Regards,
Ketan K. Chachad
-Original Message-
From: Nathan Bubna [mailto:nbu...@gmail.com]
Sent: Thursday, February 19, 2009 8:47 PM
To: Velocity Users List
Subject: Re: org.apache.velocity.runtime.log.Log4JLogChute
initialization failed
There should be a stack trace
There should be a stack trace that went with that message. What did
it say? Also, do you have log4j on your classpath? If so, what
version?
On Thu, Feb 19, 2009 at 4:49 AM, Chachad, Ketan
ketan.chac...@atosorigin.com wrote:
Hi,
I have used Velocity in my web application.
I am not using
...@gmail.com wrote:
Can you give me a little low down on how the ResourceManager works
with the ResourceLoaders? Maybe I can do a little fix and build for
my own needs.
On Mon, Feb 16, 2009 at 10:30 PM, Nathan Bubna nbu...@gmail.com wrote:
I don't think you're doing anything wrong, just
This was with src distribution (zip|tar.gz) file? Odd. I wasn't able
to replicate it. I download the zip version on windows. I also had
no trouble with the latest 1.6.2 test build.
On Tue, Feb 17, 2009 at 9:54 AM, ChadDavis chadmichaelda...@gmail.com wrote:
When I do the default ant build, I
$actionURL is not something defined by Velocity. Velocity is just a
template engine, it doesn't know anything about action URL's unless
some other part of the application tells it about them. You should
ask about this on the Spring Portlet forum.
On Tue, Feb 10, 2009 at 3:19 AM, blaise17
Yes, Veltag is dead. It has been replaced by the VelocityViewTag,
which is part of VelocityTools 2.0:
http://velocity.apache.org/tools/devel/view.tag.html
On Tue, Feb 10, 2009 at 3:47 AM, blaise17 cla...@autonomy.com wrote:
Hi,
I'm trying to work out how to use veltag but I can't seem to
VelocityTools 2 has an XmlTool. Even if that doesn't fit your
particular need, the source code for it shows how to load an xml file
into a dom object and use the data that way.
On Wed, Feb 4, 2009 at 5:26 AM, Sathish Jayapal sjaya...@gmail.com wrote:
I have an application that uses struts
Struts as the view component? Did you mean Velocity? What component
is doing the escaping? That's not something Velocity does by default.
Without knowing what is doing the escaping, it is hard to say how to
avoid it.
On Wed, Jan 21, 2009 at 11:30 AM, Mariano Kohan marianoko...@gmail.com
On Wed, Jan 21, 2009 at 2:51 PM, Steve Cohen sco...@javactivity.org wrote:
Thanks much, Tim, but in this case
1) tn is not null, but tn.USFormattedTn is null (perhaps because some
dependent object failed in the background).
cannot be the case - the function merely applies formatting to the
On Wed, Jan 21, 2009 at 3:27 PM, Steve Cohen sco...@javactivity.org wrote:
Nathan Bubna wrote:
On Wed, Jan 21, 2009 at 2:51 PM, Steve Cohen sco...@javactivity.org
wrote:
Thanks much, Tim, but in this case
1) tn is not null, but tn.USFormattedTn is null (perhaps because some
dependent
Agreed. Let's change that. Besides, most methods that need Velocity
to be init'ed will now call it themselves if used before init() has
been called. There is absolutely no reason to call init from any
constructor.
On Mon, Jan 19, 2009 at 11:12 PM, Byron Foster by...@base2.cc wrote:
On Jan
On Tue, Jan 13, 2009 at 3:37 PM, Jason Berk jb...@purdueefcu.com wrote:
Velocity rocks, but I do have a few questions:
1. when/where is the javadoc for the 1.6 engine?
http://velocity.apache.org/engine/releases/velocity-1.6/apidocs/index.html
2. is it possible to do a regex in a template?
We would need to see more of your velocity.properties (particularly
your resource.loader properties) to answer your question.
On Thu, Jan 8, 2009 at 10:08 AM, mass...@gmail.com wrote:
Hi! I'm trying to create a modular application, and each module will be a
JAR with VM pages within the JAR and
VelocityTools 1.1 does not support tool configuration, i think. Back
then, the xhtml setting was for the whole toolbox only; you couldn't
set it on a per-tool basis:
toolbox
xhtmltrue/xhtml
tool
keylink/key
/toolbox
Tools 1.2, 1.3 and 1.4 all support individual tool parameters:
On Thu, Jan 8, 2009 at 7:18 AM, Steve Cohen sco...@javactivity.org wrote:
Raymond Auge wrote:
Thanks, Ray. Further comments and questions inline
Hey Steve,
I just re-purposed our entire Velocity usage to use StringResourceLoader
where before we were calling evaluate() ALL THE TIME... it
On Thu, Jan 8, 2009 at 9:35 AM, Raymond Auge ra...@liferay.com wrote:
On Thu, 2009-01-08 at 08:53 -0800, Nathan Bubna wrote:
On Thu, Jan 8, 2009 at 6:39 AM, Raymond Auge ra...@liferay.com wrote:
...
I do have a question of my own. How many strings in the repository is
too many
On Thu, Jan 8, 2009 at 10:04 AM, Raymond Auge ra...@liferay.com wrote:
On Thu, 2009-01-08 at 09:46 -0800, Nathan Bubna wrote:
That would work great for your particular setup, where you are always
checking if the resource is already stored in the repo. Others,
however, may expect
Just call the setXHTML(boolean) method to change this behavior. or if
you are configuring this in a tools.xml (Tools 2) or toolbox.xml
(Tools 1), then you can set an xhtml property for the tool to true.
On Tue, Jan 6, 2009 at 9:44 PM, Manish prol...@gmx.net wrote:
This is a question about
201 - 300 of 569 matches
Mail list logo