tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric B <ebe...@hotmail.com>
Subject Re: OptionsRenderer not working
Date Mon, 28 Oct 2013 18:06:30 GMT
On 13-10-28 1:44 PM, Eric B wrote:
> On 13-10-28 12:08 PM, Mick Semb Wever wrote:
>> ClamAV 0.96.5
>>
>>
>>> But if you read the code, you see that FileNotFound is actually never thrown.
 Since FileNotFoundException is a subclass of IOException, the exception
>>> is caught and wrapped in an IllegalArgumentException, which is a runtime exception.
 renderAttempt() only tries to catch FileNotFound exceptions,
>>> which are never actually thrown, and consequently, it is never able to process
the different options.
>>
>>
>> Yeah you're quite right! and my very poor memory failed to catch this.
>>
>> OptionsRenderer is already patched to address this
>> http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-extras/src/main/java/org/apache/tiles/extras/renderer/OptionsRenderer.java?r1=1368433&r2=1422025
>>
>>
>> The reason for the ResourceLoader throwing a RuntimeException and not a
>> checked exception is up to Spring, not tiles.
>>
>> I will start the process for a new release of tiles, in the meantime i
>> suggest you continue with tiles-extras-3.0.2-SNAPSHOT.jar

Crap - again I sent my email too soon.  I just checked the http://repository.apache.org/snapshots
repo, but don't see any tiles-extra-3.0.2-SNAPHSOT 
artifact.  Is there another tiles snapshot repository?  I got the repo link from http://tiles.apache.org/framework/dev/snapshots.html.

Thanks,

Eric




Mime
View raw message