Re: Velocity-Tools ImportSupport unit tests

2007-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, Nathan Bubna wrote: If it is an independent project that will not be fully absorbed/integrated into an existing project, then it is much easier to get interest if people are free to try the code out (i.e. there is a release they can

Re: compress html templates when read from disk

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yoursoft, yoursoft wrote: Dear Developers, The first version is my class is available. It is a little performance tweak, because this read from disk only, when original template is changed, and make a cached compressed copy of it. Just to

Re: [Tools] Some proposals for Tools 2.0

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, Nathan Bubna wrote: The VelocityView class can be easily used in a filter as it is, and once we have the toolboxes in the request/session/application attributes, then we can access them from any servlet or filter. So, we would just need

Re: Fix for isse number 223 and fixes for multi-thread concurrency issue in Velocity Engine

2007-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lei, Lei Gu wrote: Multi-thread concurrency issue During our concurrency testing, we observed NullPointer exceptions being thrown when two people hit the same page at the same time for the first time. Upon further investigation, it turns out

Re: svn commit: r525698 - in /velocity/engine/trunk/src:

2007-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Nathan Bubna wrote: On 4/10/07, Henning P. Schmiedehausen [EMAIL PROTECTED] wrote: Actually, the primitive types are the problem. For Object arrays, using asArray is a piece of cake. However, for simple types, you can not cast to Object [],

Re: svn commit: r525698 - in /velocity/engine/trunk/src:

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Henning, Henning P. Schmiedehausen wrote: Christopher Schultz [EMAIL PROTECTED] writes: I'd be happy to attach this code to a Jira isssue in order to bless it as something being given away freely (but I reserve the right to publish

Re: Need a clarifcation about some issues

2007-04-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Supun, Supun Kamburugamuva wrote: 2.I couldn't call inner class methods. I put an inner class object in to Velocity context and then tried to call its methods from the template. But it didn't work. Velocity just outputs the calling method name.

Re: UNSUBSCRIBE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2007-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Dude... every single email from this list includes an unsubscribe link at the bottom. Try it out. Sending an email to the list will certainly not unsubscribe you. - -chris Dan Damian wrote: -Original Message- From: Will

Re: BooleanPropertyExecutor bug

2007-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I haven't looked at the code, but introspection often has special cases for primitive types, whereas their wrapper types (java.lang.Boolean, in this case) are handled generically as Objects. Are we sure that java.lang.Boolean.class is

Re: Remove Author tags?

2007-05-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Revusky wrote: I simply pointed out that the reasoning offered for wanting to remove the @author tags was quite tenuous, to say the least. You did more than that... you went on to bash the project and its current members, which

[VELTOOLS] StrutsLinkTag.setForward

2007-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, This might be more of a user list question, but I'll ask anyway. Does anyone know if it's possible to use StrutsLinkTool.setForward() to get a forward that is local to the currently-executing action mapping? I want to use the same action and

Re: [VELTOOLS] StrutsLinkTag.setForward

2007-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, Nathan Bubna wrote: I'm not sure. Have you tried it? Of course! ;) It doesn't work :( StrutsLinkTool.setForward() basically just hands things off to StrutsUtils.getForwardURL(request, app, forward), which says it Returns the action

Re: [VELTOOLS] StrutsLinkTag.setForward

2007-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Okay, so I needed to change my code just a hair to make it work, but it does work. I'm going to file a JIRA issue and attach a patch. We can discuss any implications of applying said patch in JIRA. - -chris -BEGIN PGP SIGNATURE-

Re: macros - max recursion depth

2007-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Supin, Supun Kamburugamuva wrote: I think the first challenge is to discover recursion. I was thinking about discovering recursion when a macro call is being executed. This probably won't work. Just because a macro calls itself doesn't mean that

Re: macros - max recursion depth

2007-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Will, Will Glass-Husain wrote: I'd be happy with the latter item. If this is set to a sufficiently high number (20?) this prevents runaway macros yet will not limit typical use. Can I ask a stupid question: what is the problem we're trying to

Re: macros - max recursion depth

2007-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, Nathan Bubna wrote: 2. Throw another exception (MacroDepthExceededException?) The way I see it, neither of these options is any better than simply allowing the stack overflow to occur. Stack overflows can be caused by many things.

Re: Initializing Array (without declaring contents and without creating java helper method)

2007-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, There's also the range operator: http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#range_operator You can do something like: #set($size = whatever) #foreach($i in 0..$size) // body gets evaluated $size times #end -

Re: Velocity template - populating with form values

2007-07-25 Thread Christopher Schultz
Sabatier, FYI, this is the developer list, not the user list. This question is better suited for the user list, since it deals neither with the implementation of Velocity nor with any potential bug or anything like that. sabatier wrote: vas:RespondWith$xyz/vas:RespondWith

Re: Table creation helper package for Velocity?

2007-08-07 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: I also wonder if there's some way to turn your Table/Cell classes into a TableTool of sorts that could go into the VelocityTools project. http://velocity.apache.org/tools/devel/ While I think this is an interesting tool, I don't think it's widely applicable enough

Re: help

2007-08-24 Thread Christopher Schultz
Anuj Anuj wrote: I am working on XWiki. Presently the search tool for searching in attachment contents is case sensitive .If I want to make it case insensitive, what changes I have to make in its code. This is a question better asked on the Velocity-User list, not the developer list. If you

Re: replace method

2007-09-26 Thread Christopher Schultz
Sankaranarayanan, This question would be better asked on the user list, not the dev list. You should post to [EMAIL PROTECTED] next time. Sankaranarayanan K wrote: I would like know about any replace method (like java replace method ) Since I want to replace $values instated of the dynamic

Re: [OT] Velocity Email

2007-10-15 Thread Christopher Schultz
Melissa, This message should have been posted to the user's list, not the developers list. Actually, it should have been posted Off-Topic (OT) or to another list, as the problem is not Velocity-related (Velocity has no email capabilities). See below. Melissa Denbar wrote: I am sending an email

Re: [veltools] what next?

2007-10-26 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: I have scratched my main personal itches for VelocityTools 2, but there are still some things i was planning to have before we release 2.0, specifically updated docs, updated showcase examples, Tiles2 support and complete caching for VelocityViewTag. Has Struts

Re: [EMAIL PROTECTED]: Project velocity-engine-test (in module velocity-engine) failed

2007-10-30 Thread Christopher Schultz
Will, Will Glass-Husain wrote: I can't figure out why this happened. ant test passes on my local machine. What changed? Messing around with the VELOTOOLS build (and test) scripts, I saw that the junit element has this sub-element: formatter type=plain / I also found that no errors are ever

[veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
All, I recently added a JIRA enhancement and included a patch. I want to add a unit test (for my changes to the LinkTool) to the existing tests, but I'm having trouble doing so. First, the test system itself is cumbersome (to me). It tries to start servlet container instances and stuff like

Re: [veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: two ideas: 1) find out what other projects with similar needs use. 2) search google for libs to support this Yeah, I googled for mock servlet and found a bunch of things. Nothing really jumped out at me for a good solution. Since my needs are slim (testing this

Re: [veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: hmm. i haven't run a full ant test on the trunk lately, though ant test.generic worked recently when i checked in the RenderTool fix. i'll try it out. probably something broken. i've been pretty focused on 2.x lately. Er... should I be working in a branch and

Re: [veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: On 10/30/07, Christopher Schultz [EMAIL PROTECTED] wrote: Nathan, Nathan Bubna wrote: hmm. i haven't run a full ant test on the trunk lately, though ant test.generic worked recently when i checked in the RenderTool fix. i'll try it out. probably something

[veltools 2] Javadoc typo?

2007-11-01 Thread Christopher Schultz
Nathan, While looking at org.apache.velocity.tools.view.LinkTool in the 2.x branch, I see that the tool says Since VelocityTools 1.0. I wanted to ask if you should change that to 2.0 since this class didn't exist until the 2.x branch. On the other hand, the tool itself LinkTool has existed since

[veltools] Alternate behavior for LinkTool's new addAllParameters capability

2007-11-01 Thread Christopher Schultz
All, Nathan and I have just added addAllParameters capability to the LinkTool (including explicit ignoring of current-request parameters) and I started thinking about the Struts 2 behavior which is to automatically ignore any parameter from the current request that has already been set on the

[veltools] Toolbox parameters

2007-11-01 Thread Christopher Schultz
All, Any given tool gets an init(Object) call before it gets used. For view tools, that object is a ViewContext. How can I pass configuration parameters from the toolbox.xml file into the tools via the ViewContext object? It looks like the only attribute really used is the XHTML one, but that's

Re: [veltools] Toolbox parameters

2007-11-01 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: For Veltools 1.x, in the tool: public void configure(Map params) { //TODO: extract and use params here } I'm an idiot. I totally missed that method and focused all my concentration on the init() method instead. Is there any particular reason that these two

Broken Wiki

2007-12-03 Thread Christopher Schultz
All, Although it looks like the Wiki is being taken down, I thought I might report that lots of documentation has apparently been broken by the recent 2.x-branch-to-trunk migration. On this page (http://wiki.apache.org/velocity/VelocityTools2/VelocityView) and friends, all the links to the

Re: Broken Wiki

2007-12-04 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: On Dec 3, 2007 1:43 PM, Christopher Schultz [EMAIL PROTECTED] wrote: All, Although it looks like the Wiki is being taken down, ? do you mean that the VelocityTools2 pages are being migrated to xdoc? That's what I meant. Any reason why the tools aren't

Re: Question about Velocity deployment

2007-12-13 Thread Christopher Schultz
mparas, This is a how-to question, not a question about developing Velocity. Please post questions like this to the Velocity users' mailing list, instead of the developer list. FWIW, you probably have deployed velocity.jar into some shared ClassLoader rather than within your webapp's

Re: Extending the foreach directive

2008-01-15 Thread Christopher Schultz
Gary, Gary Bentley wrote: Along the lines of: #foreach( $mud in $mudsOnSpecial where $customer.hasPurchased($mud) order by $mud.price) This looks like mixing SQL-ish syntax with Java collections, which is precisely what JoSQL was designed to do. Why extend Velocity when you can simply use

Re: Extending the foreach directive

2008-01-16 Thread Christopher Schultz
Gary, Gary Bentley wrote: For the class name, it's needed because during the parse it uses the class name to resolve method/field accesses. Without it resolution would be needed at execution time. In theory it's not needed but it also allows the query to be parsed into the relevant tree of

Re: Extending the foreach directive

2008-01-17 Thread Christopher Schultz
Gary, Gary Bentley wrote: For the bind variables is it possible to use ? as the placeholder like you can for JDBC. Is that what you meant? Yeah, that's what I meant. -chris signature.asc Description: OpenPGP digital signature

Unit testing and junit forking

2008-02-14 Thread Christopher Schultz
All, While updating my unit test for VELTOOLS-103 (https://issues.apache.org/jira/browse/VELTOOLS-103), found that I needed to change the fork attribute in the junit directives in the ant scripts to true (they are currently false, indicating that the unit tests will be run in the same JVM as

Re: HELP ME: About VelocityStruts 1.4 and Struts2 !!!

2008-02-15 Thread Christopher Schultz
Tan, Phan Anh Tan wrote: Following your tutorial http://velocity.apache.org/tools/releases/1.4/struts/userguide.html I found that the VelocityStruts 1.4 can work with Struts 1.x. And what about Struts2.x? Could you please tech me, how to integrate VelocityStruts 1.4 with Struts2.x? The

Re: Unit testing and junit forking

2008-02-19 Thread Christopher Schultz
Ronald, Ronald Klop wrote: The project at my company does this. junit fork=yes forkmode=once [...] The forkmode=once is important for speed. Thanks for the suggestion. I checked with the default forkmode (perTest) and also with once and here's what I got: perTest: real0m31.039s

Re: Call a velocity macro

2008-02-19 Thread Christopher Schultz
Adrian, Adrian Tarau wrote: I have the following problem : I would like to call a macro but the macro name must be a variable. This is more of a question for the user's list, not the dev list. In the future, please post there. Ex: instead of #renderLabel($component) to have

Re: Call a velocity macro

2008-02-19 Thread Christopher Schultz
Adrian, Adrian Tarau wrote: What I need is more like calling a template as a function(which behave like a function) in the context of the current execution context(same context, same writer) without too much overhead. I will try to implement something like that and I will publish the

Re: Call a velocity macro

2008-02-20 Thread Christopher Schultz
Christoph, [EMAIL PROTECTED] wrote: For this I used a different namespace (postfixed variables with _), but you can also use the new #local directive to avoid conflicts. I don't see #local in the documentation. Could you point me to it? -chris signature.asc Description: OpenPGP digital

Re: Call a velocity macro

2008-02-21 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: I'm pretty sure #local is still just in Geir's whiteboard section. No one has ever gotten it promoted out of there. I've never been opposed to it, but i've also never been interested in putting the work needed into it (tests, docs, etc). I have to admit that when

Re: Call a velocity macro

2008-02-21 Thread Christopher Schultz
Geir and Nathan, Nathan Bubna wrote: Yeah, sorry. I forget about that, since i've been avoiding macros for some time and never actually bothered with this property: velocimacro.context.localscope = true I think that has further implications that what I was suggesting, which is a scope that

Re: A simple macro replacement with user directives

2008-03-05 Thread Christopher Schultz
Guido, Deinhammer, Guido wrote: I understand my writing turned out a little lengthy, but if you are using macros, it should be worth the read... It definitely is. Thanks for investigating /and providing code/! The second parameter is a map that is added to the context under the name args -

Re: Is it possible to embed JSP tags and lib into vm page?

2008-03-05 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: If you are asking whether you can embed JSP markup within a Velocity template, then the answer is definitely no. though, there have been some efforts to use tags within templates though: WebWork used to support using JSP taglibs with templates, though not using the

Re: Out of memory when calling macros from other macros

2008-04-15 Thread Christopher Schultz
Marta, Marta Gascó Julio wrote: I have a template using a large number of macros (35). The macros in this template are calling ones to others in different order and several times, depending on the code I want to obtain. My problem is about memory. It seems that when a certain number of calls

Re: Out of memory when calling macros from other macros

2008-04-16 Thread Christopher Schultz
Marta, Marta Gascó Julio wrote: I'm afraid I cannot provide the template due to access restrictions outside the company. That's fine. The example you provided should be good enough. Moreover I'm not sure on what template is causing the OOME because I have several in the same conditions

Re: Expanding Environmental variables patch

2008-05-06 Thread Christopher Schultz
Charlei, csanders wrote: Attached is the patch, adding three new functions, expandEnvironmentalVariables( ExtendedProperties ), expandEnvironmentalVariables(Vector ), Any reason not to accept any Collection rather than limiting this to just a Vector? Forgive me if there are API

Re: Expanding Environmental variables patch

2008-05-07 Thread Christopher Schultz
Charles, Sanders, Charles wrote: I actually dislike modifying passed-in parameters Why? The documentation for RuntimeInstance.setConfiguration does not state that the parameter is modified, so it's rude to modify it. Don't forget that the documentation is part of the API, too, and it's

Re: Velocity macro caching?

2008-05-15 Thread Christopher Schultz
Harin, harin wrote: I have an issue where velocity seems to be caching a velocimacro. It could possibly be my template structure which shown below. When pages are loaded, velocity is rendering the wrong primarySection or secondarySection vm (as these exist in other templates). I have had the

Re: Escaping HTML in Velocity 1.4

2008-08-04 Thread Christopher Schultz
Jonathan, Jonathan Revusky wrote: Christopher Schultz wrote: #macro(htmlEscape $text)#if($text)$esc.html($text)#end#end So, IOW, every time, that you want to write $foo you write instead: #hmlescape($foo) Doesn't that get a bit ugly and repetitious? If you want to apply the same routine

Re: Escaping HTML in Velocity 1.4

2008-08-04 Thread Christopher Schultz
Will, Will Glass-Husain wrote: You can always have the reference handler to selectively escape or omit references. With the EscapeHtmlReference in Velocity 1.5 you can use regular expressions to identify references to escape. Ooh! That's cool. But there still be dragons in blanket-escaping

MathTool documentation is out of date

2008-08-07 Thread Christopher Schultz
All, While looking for the answer to a user's question, I noticed that the documentation for MathTool does not cover all of the actual methods available in MathTool for tools-1.4. I'm happy to update this documentation -- just tell me where to go and which files to update. Thanks, -chris

Named macro parameters

2008-09-12 Thread Christopher Schultz
All, I was just reminded of the horror of the Struts 2 implementation of their tag library in Velocity. Mind you, I think the S2 guys did a /great/ job of creating implementations of their library in JSP, Freemarker, and Velocity, but the Velocity implementation just doesn't feel right. Here's

Re: Named macro parameters

2008-09-15 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: On Mon, Sep 15, 2008 at 8:53 AM, Will Glass-Husain [EMAIL PROTECTED] wrote: Wouldn't it be more appropriate to pass in a map of parameters? heh. yeah, why don't they do that? I'm sure they don't do that because of the syntactic differences. Is it possible to

Re: Named macro parameters

2008-09-16 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: #whatever({ 'foo' : 'bar', baz : bat }) I didn't realize that this syntax was possible. I'm still on Velocity 1.4 where, for instance, you can't do this: #whatever($velocityCount + 1) I just assumed that creating a Map on the fly wasn't an option. I wonder if the

Re: Named macro parameters

2008-09-17 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: i think [on-the-fly Map creation) was not available when they started. whether they know now, i don't know. they haven't kept pace with VelocityTools at all (they appear to be on Tools 1.1 still), so i'd be surprised to find they use Velocity 1.5. i hope they

Re: String to int.

2008-11-19 Thread Christopher Schultz
Ryan, This is more of a user question than a dev question, but I'll answer it, anyway (and cross-post to the user list). ryan19 wrote: Does anyone know can you convert a String to int in velocity code? Velocity does not support this directly, but Velocity-Tools does (it's a small but

Re: [VOTE] VelocityTools 2.0-beta4 release

2009-05-23 Thread Christopher Schultz
Nathan, On 5/22/2009 4:29 PM, Nathan Bubna wrote: Please vote regarding your support for releasing this new test build as VelocityTools 2.0-beta4: [ ] +1 Let's do it [ ] +0 Have fun; i don't care. [ ] -0 Not sure about this, but i won't stop you. [ ] -1 No, because __ +0

Struts2 just got a little friendlier...

2009-08-11 Thread Christopher Schultz
All, Some time ago, I posted an idea to the list to improve the performance of Velocity in Struts2 (http://www.nabble.com/Named-macro-parameters-td19459070.html). After almost a year, my patch has been developed and included in the trunk for S2 (https://issues.apache.org/struts/browse/WW-2807).

[tools] Adding localization method to DateTool

2009-10-28 Thread Christopher Schultz
All, I'm a big fan of DateTool and use it all the time in my Velocity templates. I recently had a revelation that, when providing hints to my users like please format your date like this: MM/dd/, the date format itself is being read from the user's preferences and always in the

Re: [tools] Adding localization method to DateTool

2009-10-29 Thread Christopher Schultz
Nathan, On 10/28/2009 6:32 PM, Nathan Bubna wrote: You've not been forgotten. :) You're correct that this is not currently supported. This only adds a simple method to a single tool's VTL API and thus would not impede any forthcoming long-wished for 2.0 release (at least in my book). Go

Re: [tools] Adding localization method to DateTool

2009-10-29 Thread Christopher Schultz
All, On 10/28/2009 5:10 PM, Christopher Schultz wrote: public String toLocalizedPattern(String dateFormat, Locale targetLocale) { new SimpleDateFormat(formatPattern, targetLocale).toLocalizedPattern(); } After looking at DateTool, I'm thinking

Re: [tools] Adding localization method to DateTool

2009-10-29 Thread Christopher Schultz
Nathan, On 10/29/2009 10:36 AM, Nathan Bubna wrote: return df.toLocalizedPattern(); I believe you'll have to cast to (SimpleDateFormat) to get the toLocalizedPattern() method. Yup, I noticed that as I started to write the code. For now, I just have it allowing a ClassCastException. I

Re: [tools] Adding localization method to DateTool

2009-11-15 Thread Christopher Schultz
Nathan, Resurrecting this because I'm ready to commit. On 10/29/2009 3:04 PM, Nathan Bubna wrote: On Thu, Oct 29, 2009 at 8:06 AM, Christopher Schultz ch...@christopherschultz.net wrote: Nathan, On 10/29/2009 11:02 AM, Christopher Schultz wrote: I like re-coding into SimpleDataFormat

Problems with svn

2010-07-29 Thread Christopher Schultz
All, After a long hiatus, today, I tried to do an svn update and I got this message: ~/projects/velocity/tools/trunk$ svn update svn: This client is too old to work with working copy '.'. You need to get a newer Subversion client, or to downgrade this working copy. See

Re: Problems with svn

2010-07-30 Thread Christopher Schultz
Antonio, On 7/30/2010 3:34 AM, Antonio Petrelli wrote: 2010/7/29 Christopher Schultz ch...@christopherschultz.net: svn reports this version: $ svn --version svn, version 1.5.1 (r32289) compiled Aug 6 2009, 20:47:37 You must use Subversion 1.6.x Hmm... Debian Lenny says I'm all up

Re: Problems with svn

2010-07-30 Thread Christopher Schultz
All, On 7/30/2010 10:40 AM, Christopher Schultz wrote: Can someone give me a few pointers if they happen to know? Nevermind, I've got it working through lenny-backports: svn update works just fine, now. Thanks, -chris signature.asc Description: OpenPGP digital signature

Re: [tools] Ideas about future Velocity Tools features

2010-12-16 Thread Christopher Schultz
Antonio, On 12/10/2010 3:43 AM, Antonio Petrelli wrote: Who used DisplayTag knows what I mean: a tag library that manages sorting and pagination (internal and external), alternate coloring etc. IOW, all the aspects of a table of results that you might imagine. I've developed what I think is

RE: Upgrading ASF Jira to 4.2.x [rant]

2011-01-10 Thread Christopher Schultz
All, I have only just logged-into the test instance of the new JIRA and, I have to admit, I wasn't sure how the JIRA team could make the product worse. First, JIRA was always painfully slow and would never remember a password I chose -- I had to reset it every time I wanted to use it. I gave up

Re: Upgrading ASF Jira to 4.2.x [rant]

2011-01-11 Thread Christopher Schultz
Antonio, On 1/10/2011 11:25 AM, Antonio Petrelli wrote: 2011/1/10 Christopher Schultz ch...@christopherschultz.net: First, JIRA was always painfully slow and would never remember a password I chose -- I had to reset it every time I wanted to use it. So you are complaining that Jira would

ClassUtils.getResource and friends

2011-07-21 Thread Christopher Schultz
All, In a somewhat unrelated thread on the user's list, Nathan and I have been discussing changing the ClassUtils.getResource method from calling (in order): Thread.currentThread.getContextClassLoader().getResource() ClassUtils.class.getResource() callingObject.getClass().getResource()

Update on VELTOOLS-143

2012-01-19 Thread Christopher Schultz
All, I logged VELTOOLS-143 a while ago and I'd like to get it fixed for an upcoming release of my own software. Can someone help me understand why mailto: links don't accept params? Thanks, -chris signature.asc Description: OpenPGP digital signature

Re: Update on VELTOOLS-143

2012-01-20 Thread Christopher Schultz
Nathan, On 1/19/12 12:45 PM, Nathan Bubna wrote: https://issues.apache.org/jira/browse/VELOCITY-143 ?? No, VELTOOLS-143: https://issues.apache.org/jira/browse/VELTOOLS-143 -chris signature.asc Description: OpenPGP digital signature

Re: [OT] tools-2.1-dev and engine-2.x

2012-01-31 Thread Christopher Schultz
Nathan, On 4/13/11 12:03 PM, Nathan Bubna wrote: On Wed, Apr 13, 2011 at 4:19 AM, Claude Brisson cla...@renegat.net wrote: On 2011-04-13 11:57, Antonio Petrelli wrote: Hi Claude 2011/4/13 Claude Brissoncla...@renegat.net ... Then I'd vote for the first solution: have tools-2.1 require

Re: [OT] tools-2.1-dev and engine-2.x

2012-01-31 Thread Christopher Schultz
Nathan, On 1/31/12 12:39 PM, Nathan Bubna wrote: Do you want a new 2.0 release? I can't recall offhand if there is/was a particular need or demand for one. No, but I was going to make some changes that I need fixing :) So, the question is whether to commit to trunk and back-port to 2.0.x, or

Re: Velocity Macro Stack Traces Patch

2012-10-10 Thread Christopher Schultz
Sergiu and Benson, On 10/2/12 4:40 PM, Sergiu Dumitriu wrote: On 10/02/2012 02:25 PM, Benson Margulies wrote: Sergey, As I understand it, since the birth of Httpd and the license, patches sent to the mailing list (a) don't require a CLA and (b) are acceptable contributions. The idea is

[tools] Interest in (or aversion to) adding CSV escaping to EscapeTool

2013-02-08 Thread Christopher Schultz
All, I'd like to use Velocity to produce CSV files and I have a routine I've been using for years in automated reports to escape field values for CSV. Any objections to adding it to EscapeTool? Actually... StringEscapeUtils (from commons-lang, which does most of EscapeTool's actual work) has an

Re: [PROPOSAL][REPORT] Apache Velocity - May 2013

2013-05-31 Thread Christopher Schultz
Nathan, On 5/6/13 12:17 PM, Nathan Bubna wrote: Well, even though you're not technically on the PMC, we don't keep a division between committers and PMC in practice. Your votes count now, as far as anything practical. And we'll put you on the PMC formally in just a few months, per typical

Re: Velcity and Texen DOAPs - trivial fixes, needs Velocity committer assistance please

2014-04-21 Thread Christopher Schultz
Sebb, On 4/16/14, 10:58 AM, sebb wrote: The Velocity and Texen DOAPs are the only ones that don't use the Apache prefix See TEXEN-18 and VELOCITY-848 Please could one of the Velocity committers fix the DOAPS? What exactly needs to be fixed? I can fix in svn... not sure how the site gets

Re: Spent time working on Velocity

2014-11-26 Thread Christopher Schultz
All, On 9/26/14 12:22 PM, Sergiu Dumitriu wrote: On 09/25/2014 11:27 PM, Nathan Bubna wrote: https://github.com/apache/velocity-engine https://github.com/apache/velocity-engine/tree/2.0_Exp Now, that said, i've not used the git mirror. The Subversion repository may still be considered the

Re: Spent time working on Velocity

2014-11-27 Thread Christopher Schultz
Nathan, On 11/26/14 4:55 PM, Nathan Bubna wrote: On Wed, Nov 26, 2014 at 1:41 PM, Christopher Schultz ch...@christopherschultz.net wrote: ... If all logging could be replaced by using commons-logging, then all will be well. commons-logging is just a pass-through for whatever logger

Re: Upgraded Commons and Velocity 2.0

2015-05-28 Thread Christopher Schultz
Mike, On 5/28/15 3:41 PM, Mike Kienenberger wrote: No, maven isn't mandated. I'd be happy if we reverted back to ant as Eclipse and ant is also what I use, and the only thing maven ever did for me to was to make everything more complicated and slow. For better or worse, it appears most of

Re: Upgraded Commons and Velocity 2.0

2015-05-28 Thread Christopher Schultz
Jacob, On 5/28/15 9:13 AM, Jacob Champlin wrote: So building 2.0 has not gone well. There are no valid instructions online, eventually I figured out: $ svn checkout http://svn.apache.org/repos/asf/velocity/engine/trunk velocity-master $ cd velocity-master $ mvn However, almost all the

Re: Upgraded Commons and Velocity 2.0

2015-05-28 Thread Christopher Schultz
Jacob, On 5/28/15 11:21 AM, Jacob Champlin wrote: On 05/28/2015 10:48 AM, Mike Kienenberger wrote: On Thu, May 28, 2015 at 10:42 AM, Antonio Petrelli But when repository branches do not build from source, releases do not build from source, and no one seems to be around to suggest how it's

Re: svn commit: r1696822 - in /velocity/tools/trunk: src/site/xdoc/ velocity-tools-struts/src/main/java/org/apache/velocity/tools/struts/ velocity-tools-view/src/main/java/org/apache/velocity/tools/vi

2015-08-31 Thread Christopher Schultz
Claude, On 8/20/15 3:12 PM, Claude Brisson wrote: > Yes, we should be using Velocity logging facade, but I just don't see > for now how we should do this while preserving tools serialization. A little late to the (logging) party, and this may be a bit off-topic, but why bother using a

Re: svn commit: r1696822 - in /velocity/tools/trunk: src/site/xdoc/ velocity-tools-struts/src/main/java/org/apache/velocity/tools/struts/ velocity-tools-view/src/main/java/org/apache/velocity/tools/vi

2015-08-31 Thread Christopher Schultz
Mike, On 8/31/15 1:48 PM, Mike Kienenberger wrote: > Read the whole thread. Yeah, I'm catching-up now. > My understanding is that serialization of static commons-logging was > the original problem needing fixed. slf4j doesn't have that issue. I didn't think that static members were serialized.

Re: [VOTE] Michael Osipov as committer

2017-02-06 Thread Christopher Schultz
Nathan, Hey! I didn't know I was on the PMC. :) Vote below. On 1/27/17 1:05 PM, Nathan Bubna wrote: > Hey folks, > > Michael Osipov has been rigorously and vigorously reviewing the progress of > Engine 2.0, with commits specific and knowledgeable to be nigh > indistinguishable from code

Re: Velocity truth

2017-02-06 Thread Christopher Schultz
Claude, On 1/28/17 10:15 AM, Claude Brisson wrote: > Here's what had been specified by Nathan at the time (order is > meaningful, and falseness seems easier to specify than truth): > > $obj is null > $obj is boolean false > $obj returns false from getAsBoolean() (provided there is such a method)

Re: [tools] Tools reeng

2016-11-21 Thread Christopher Schultz
Claude, On 11/17/16 12:58 PM, Claude Brisson wrote: > There are several things I'd like to do for the tools before releasing > them: > > 1) deprecate the ConversionTool: > - date formatting and parsing methods are redundant with (and less > complete than) DateTool ones. > - number

Re: Reloading resources adding new macros

2017-01-04 Thread Christopher Schultz
Greg, On 1/4/17 8:43 AM, Greg Huber wrote: > The was one issue that has been around for ages, and I am not sure if it is > possible to fix it. > > If I have added a new macro into a velocity template file loaded via a > resource loader, I have to shut down the container (tomcat) and restart for

ApacheCon NA 2017

2017-01-04 Thread Christopher Schultz
All, I'm going to be in Miami for this year's ApacheCon. In all the years I've been going to ApacheCons, I've never seen a single presentation on Velocity. That probably has something to do with the following: 1. Until recent work, it's been a "mature" project (no excitement) 2. It's not

Re: Reloading resources adding new macros

2017-01-05 Thread Christopher Schultz
Greg, On 1/4/17 11:40 AM, Greg Huber wrote: >> Velocity version? > > The latest version ie 2.0. > >> When you say you "shut down the container (tomcat)", >can you be more > specific? Do you bounce the >application, or do you >terminate Tomcat and > the JVM, >etc.? > > Terminate tomcat

Re: [jira] [Commented] (VELTOOLS-171) Upgrade to supported, secure version of Struts

2017-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, On 3/9/17 6:57 PM, Claude Brisson (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/VELTOOLS-171?page=com.atlassian. jira.plugin.system.issuetabpanels:comment-tabpanel=1590 4098#comment-15904098 > ] > > Claude Brisson commented on

Re: [ANNOUNCE] Velocity Engine 2.0 RC9 test build available

2017-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Claude, On 7/17/17 7:09 AM, Claude Brisson wrote: > A new test build of Velocity Engine 2.0 is available (RC9). > > No determination as to the quality ('alpha,' 'beta,' or 'GA') of > Velocity Engine 2.0 has been made, and at this time it is

Re: [tools] Running under a SecurityManager

2018-05-07 Thread Christopher Schultz
tResource* family of methods. - -chris > On 21/03/2018 22:23, Nathan Bubna wrote: >> If we're talking 2.x, then adding a PrivilegedAction sounds >> better. If 3.0 (which, i think needs to happen anyway, right >> Claude?), then i'd agree with Michael. The auto config would b

Re: Cannot build Tools from trunk

2018-06-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Claude, On 6/25/18 6:12 PM, Claude Brisson wrote: > It's running for me under java 8. Log for the cargo section copy > pasted below. > > Is it a linux/windows cargo/jetty problem? I think it's running under a SecurityManager and the policy isn't

  1   2   3   >