Stupid question, but how do override the settings.java?

On 8/11/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> In 2.0 it looks like
>
> Settings.java
>         public IMarkupParserFactory getMarkupParserFactory()
>         {
>                 if (this.markupParserFactory == null)
>                 {
>                         this.markupParserFactory = new 
> MarkupParserFactory(application)
>                         {
>                              public MarkupParser newMarkupParser(final
> MarkupResourceStream resource)
>                              {
>                                   MarkupParser parser =
> super.newMarkupParser(resource);
>                                   parser.registerMarkupFilter(new 
> MyHandler());
>                              }
>                         }
>                 }
>                 return markupParserFactory;
>
> In 1.2 it looks like
> Settings.java
>         public IMarkupParserFactory getMarkupParserFactory()
>         {
>                 if (this.markupParserFactory == null)
>                 {
>                         this.markupParserFactory = new 
> MarkupParserFactory(application)
>                         {
>                                public MarkupParser newMarkupParser()
>                                {
>                                       final MarkupParser parser = new
> MarkupParser(new XmlPullParser())
>                                      {
>                                            public void initFilterChain()
>                                            {
>                                                 appendMarkupFilter(new 
> MyFilter());
>                                            }
>                                      }
>                                 }
>                         }
>                 };
>                 return parser;
>         }
>                         }
>                 }
>                 return markupParserFactory;
>
>
> Juergen
>
> On 8/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > you can use i guess public final void appendMarkupFilter(final IMarkupFilter
> > filter) of MarkupParser
> > But juergen just changes some of that code i believe so maybe he can tell
> > you the best solution now.
> >
> > johan
> >
> >
> >
> > On 8/11/06, Mats Norén <[EMAIL PROTECTED]> wrote:
> > > On 8/11/06, Mats Norén <[EMAIL PROTECTED]> wrote:
> > > > On 8/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > > ahh see the code:
> > > > >
> > > > >         // Don't touch any wicket:id component
> > > > >         if (tag.getId() != null)
> > > > >         {
> > > > >             return tag;
> > > > >         }
> > > > >
> > > > > So in that case you have to do it yourself.
> > >
> > > So I want to add my own version of a PrependContextPathHandler and add
> > > it to my application.
> > >
> > > Do I have to supply my own MarkupParser somehow or how do I add my
> > > IMarkupFilter to the application?
> > > /Mats
> > >
> > >
> > -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to