see how wicket:message tag does it. see WicketMessageTagHandler and WicketMessageTagResolver.
-igor On Sat, Sep 11, 2010 at 11:37 PM, Arjun Dhar <[email protected]> wrote: > > Hi, > I want to understand how to intercept the Wicket markup Parser *in a clean > way* > > I'm aware of "org.apache.wicket.markup" package. There is XMLPullParser, > MarkupParser, Filter. I like the look of using Markup but surprisingly the > WicketFilter directly uses XMLPullParser (looks more like a hack than a > clean approach). > > So a good way to explain it would be a example code for something like: > Default Content. To make it work one needs a label or component called > "component" supplying the model to render the content. But, say we want to > intercept this so that if no component is available the default markup shows > else it picks it from a DataSource. > NOTE: The Use Case here is a weak example, I really don't care about the Use > case itself but more about how to use a parser to solve an example as above. > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Intercept-Wicket-Parsing-tp2536131p2536131.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
