velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nbu...@gmail.com>
Subject Re: continue processing templates after resource not found?
Date Fri, 28 Aug 2009 22:44:40 GMT
On Fri, Aug 28, 2009 at 2:46 PM, ChadDavis<chadmichaeldavis@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 into the notfound.vm template that takes
>> over when the resource is not found.  Is this information in the
>> context ?
>>
>
> Okay.  I looked at the code and it seems that this feature is not
> there.  I wrote my own version that puts the not found resource in the
> context so you can have amore meaningful message in the notfound.vm.
> It's a very simple enhancement.  Seems like it might be worth adding
> to the real class, let me know if you're interested.

Yeah, that sounds like a good addition.  Can you open a JIRA issue and
attach it as a patch?

https://issues.apache.org/jira/browse/VELOCITY

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

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


Mime
View raw message