velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: Disappearance of LinkTool.setRelative
Date Wed, 20 Jul 2011 00:03:52 GMT
Oh, i forgot.  The old API is still there as a wrapper to the new one,
in the old package (for complete B.C.)

You just need to use

On Tue, Jul 19, 2011 at 4:55 PM, Nathan Bubna <> wrote:
> I don't think there is any tool that was reworked as heavily as the
> LinkTool(s).  A common request and top priority for me in 2.0 was to
> create a generic (non-servlet) LinkTool and a cleaner API for it.  I
> think put 40-60 hours into that alone.  I'm not at all surprised that
> i dropped some of the old API in the process.  Sorry about that.
> On the other hand, i begged and nagged and sent plenty of guilt trip
> emails when pushing toward a 2.0 final, asking for people to report
> B.C. failures and oversights.  So, i can only feel so bad when some of
> those problems are discovered years later.
> In any case, the mapping to replacements should not be difficult.  No
> functionality should be lost, in fact, much was added.
> Problems with mailto: and $link.uri() should probably go into JIRA,
> those ought to work.
> On Tue, Jul 19, 2011 at 2:44 PM, Christopher Schultz
> <> wrote:
>> All,
>> On 7/19/2011 5:39 PM, Christopher Schultz wrote:
>>> In addition to LinkTool.setRelative, LinkTool.setURI was also removed.
>> Also LinkTool.addQueryData, used dozens of times in all my templates.
>> Sheesh, what happened?
>> Looks like LinkTool.param(String,Object) is what I'm looking for.
>> I can't find the old javadocs on the website for comparison (or
>> deprecation warnings). The upgrade page says everything was deprecated
>> but not removed, but these look like removals to me.
>> -chris

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message