Had a look on onComponentTagBody, and got it to work by overrideing that method aswell =)
Here is the solution, fro those wondering: @Override protected void onComponentTag( ComponentTag tag ) { super.onComponentTag( tag ); if (!isEnabledInHierarchy()) { tag.setName( "span" ); tag.getXmlTag().setType( TagType.OPEN ); } } @Override public void onComponentTagBody( MarkupStream markupStream, ComponentTag openTag ) { replaceComponentTagBody( markupStream, openTag, getDefaultModelObjectAsString() ); super.onComponentTagBody( markupStream, openTag ); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Change-input-tag-to-span-what-about-value-tp4417174p4417196.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org