Author: jdonnerstag Date: Sat Mar 19 19:44:11 2011 New Revision: 1083263 URL: http://svn.apache.org/viewvc?rev=1083263&view=rev Log: replaced deprecated ComponentTag.getString with getAttribute
Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/tree/BaseTree.java Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java?rev=1083263&r1=1083262&r2=1083263&view=diff ============================================================================== --- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java (original) +++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java Sat Mar 19 19:44:11 2011 @@ -298,7 +298,7 @@ public final class LocalizedImageResourc if (resource == null && resourceReference == null) { // Get SRC attribute of tag - final CharSequence src = tag.getString("src"); + final CharSequence src = tag.getAttribute("src"); if (src != null) { // Try to load static image @@ -307,7 +307,7 @@ public final class LocalizedImageResourc else { // Get VALUE attribute of tag - final CharSequence value = tag.getString("value"); + final CharSequence value = tag.getAttribute("value"); if (value != null) { // Try to generate an image using an image factory Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/tree/BaseTree.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/tree/BaseTree.java?rev=1083263&r1=1083262&r2=1083263&view=diff ============================================================================== --- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/tree/BaseTree.java (original) +++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/tree/BaseTree.java Sat Mar 19 19:44:11 2011 @@ -117,7 +117,7 @@ public abstract class BaseTree extends A String klass = getItemClass(node); if (!Strings.isEmpty(klass)) { - CharSequence oldClass = tag.getString("class"); + CharSequence oldClass = tag.getAttribute("class"); if (Strings.isEmpty(oldClass)) { tag.put("class", klass);