You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by al...@apache.org on 2007/08/02 18:07:18 UTC
svn commit: r562159 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/Image.java
Author: almaw
Date: Thu Aug 2 09:07:17 2007
New Revision: 562159
URL: http://svn.apache.org/viewvc?view=rev&rev=562159
Log:
Comments on WICKET-720 fix.
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/Image.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/Image.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/Image.java?view=diff&rev=562159&r1=562158&r2=562159
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/Image.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/Image.java Thu Aug 2 09:07:17 2007
@@ -184,6 +184,8 @@
*/
public Component setModel(IModel model)
{
+ // Null out the image resource, so we reload it (otherwise we'll be
+ // stuck with the old model.
localizedImageResource.setResourceReference(null);
localizedImageResource.setResource(null);
return super.setModel(model);