Frank Silbermann schrieb:
But my "src" attribute to be modified _is_ in my HTML, as you can see (value shown is "REPLACE_THIS.png"). The problem is that the existing "src" attribute's value was not replaced. What do I need to do differently?
Use this constructor: new AttributeModifier("src", true, new Model(pictureFile)); ^^^^ It's documented: public AttributeModifier(java.lang.String attribute, boolean addAttributeIfNotPresent, IModel replaceModel) Parameters: attribute - The attribute name to replace the value for addAttributeIfNotPresent - Whether to add the attribute if it is not present replaceModel - The model to replace the value with Timo ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user