You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thomas Singer <wi...@regnis.de> on 2012/02/07 11:28:24 UTC

Wicket 1.4 -> 1.5: AbstractMarkupFilter.nextTag

Wicket 1.4 code:

final class FooFilter extends AbstractMarkupFilter {

  public MarkupElement nextTag() throws ParseException {
    ComponentTag tag = (ComponentTag)getParent().nextTag();
    ...
  }
}

Should I replace it with

final class FooFilter extends AbstractMarkupFilter {

  protected MarkupElement onComponentTag(ComponentTag tag)
    throws ParseException {
    ...
  }
}

What if we casted tag not to ComponentTag but XmlTag?

Needless to say, that
<https://cwiki.apache.org/WICKET/migration-to-wicket-15.html> does not tell
anything about AbstractMarkupFilter, ComponentTag or WicketTag.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org