Author: ivaynberg
Date: Thu Jun 26 00:06:42 2008
New Revision: 671813
URL: http://svn.apache.org/viewvc?rev=671813&view=rev
Log:
fix bug
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java?rev=671813&r1=671812&r2=671813&view=diff
==============================================================================
---
wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java
(original)
+++
wicket/trunk/wicket/src/main/java/org/apache/wicket/util/template/PackagedTextTemplate.java
Thu Jun 26 00:06:42 2008
@@ -155,9 +155,13 @@
// first try default class loading locator to find the resource
IResourceStream stream = new
ResourceStreamLocator().locate(clazz, path);
- // if default locator couldnt find the resource allow the
application specific one to try
- stream =
Application.get().getResourceSettings().getResourceStreamLocator().locate(clazz,
- path);
+ if (stream == null)
+ {
+ // if default locator couldnt find the resource allow
the application specific one to
+ // try
+ stream =
Application.get().getResourceSettings().getResourceStreamLocator().locate(
+ clazz, path);
+ }
if (stream == null)
{