It was a classpath issue - you had an old version of Wicket somewhere. 1.3 / 1.4 are not binary compatible. Perhaps even in a serialized session?
-- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 1, 2009 at 4:21 PM, VGJ <[email protected]> wrote: > Hmm...nevermind, I guess? It seems like the problem just "went away". I > can't explain it...a few redeploys later and it's all working as if the > error never happened. > > I'll submit this one to the X-Files. > > On Thu, Oct 1, 2009 at 12:01 PM, VGJ <[email protected]> wrote: > > > I've got a little helper method for replacing HTML tag attributes: > > > > public static WebMarkupContainer getContainer( > > String name, > > String attribute, > > String value) > > { > > //modify check add-on img tag > > WebMarkupContainer container = new WebMarkupContainer(name); > > container.add(new SimpleAttributeModifier(attribute, value)); > > > > return container; > > } > > > > I just upgraded from 1.3.2 to 1.4.1, and I'm getting this exception every > > time the above method calls the "add" method: > > > > "java.lang.NoSuchMethodError: > > > org.apache.wicket.markup.html.WebMarkupContainer.add(Lorg/apache/wicket/behavior/IBehavior;)Lorg/apache/wicket/Component;" > > > > I just looked at the 1.4 Javadocs...it looks like this is still valid. > > What am I doing wrong? > > > > Thanks! > > > > -v > > >
