Author: ivaynberg Date: Sun Sep 23 12:12:25 2007 New Revision: 578596 URL: http://svn.apache.org/viewvc?rev=578596&view=rev Log: WICKET-998: attribute modifier is needed for unit tests, but i simplified it
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/Guess.java Modified: wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/Guess.java URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/Guess.java?rev=578596&r1=578595&r2=578596&view=diff ============================================================================== --- wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/Guess.java (original) +++ wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/hangman/Guess.java Sun Sep 23 12:12:25 2007 @@ -16,7 +16,7 @@ */ package org.apache.wicket.examples.hangman; -import org.apache.wicket.AttributeModifier; +import org.apache.wicket.behavior.SimpleAttributeModifier; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.image.Image; import org.apache.wicket.markup.html.link.Link; @@ -89,8 +89,14 @@ } } }; + link.add(new Image("image", letter.getSharedImageResource())); listItem.add(link); + + // append id attribute to link for unit tests + link.add(new SimpleAttributeModifier("id", "letter_" + letter.asString())); + + } }); }