Re: [Wicket-user] Link and Input
The input elements look like this: div class=formDiv input class=button type=image src=img/button_spara.gif wicket:id=save value=Spara title=Spara/ input class=button type=image src=img/button_avbryt.gif wicket:id=cancel value=Avbryt title=Avbryt/ input class=button type=image src=img/button_ta_bort.gif wicket:id=delete value=Ta bort title=Ta bort/ /div - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
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.Maybe we could make this configurable or something johanOn 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: The input elements look like this:div class=formDivinput class=button type=imagesrc="" wicket:id=save value=Spara title=Spara/input class=button type=imagesrc="" wicket:id=cancel value=Avbryttitle=Avbryt/ input class=button type=imagesrc="" wicket:id=delete value=Ta borttitle=Ta bort//div -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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
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. That explains it! Thanks. So how does it normally work to use a Button with type image? /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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
you can use i guess public final void appendMarkupFilter(final IMarkupFilter filter) of MarkupParserBut 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 addit to my application.Do I have to supply my own MarkupParser somehow or how do I add myIMarkupFilter 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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Link and Input
Disregard my last post. :) /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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
MyApplication.java private Settings getSettings() { if (!settingsAccessible) { throw new WicketRuntimeException( Use Application.init() method for configuring your application object); } if (settings == null) { settings = new MySettings(this); } return settings; } On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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
Re: [Wicket-user] Link and Input
Hmm..didn't work out as I expected. Isn't Settings.java final in 1.2.1? - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
I'm sorry if I come across as a little bit stupid here but the way I understood it was that getSettings() in Application is deprecated and shouldn't be used? And from what class should I derive MySettings? I mean since Settings is final. I thought I would supply my own IMarkupSettings but since the only class implementing it is Settings I'm back at square one. Or have I missed something? btw, thanks for your help. /Mats ps. I'm using wicket 1.2.1 ds. - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Link and Input
Hi, I've noticed a strange behavior in 1.2.1 when using links with an img-element inside. a wicket:id=linkimg src=img/button_lagg_till.gif//a in my HTML is changed to a href=/test?wicket:interface=:3:createLink::ILinkListenerimg src=/test/img/button_lagg_till.gif alt=Lägg till//a when wicket render it. The thing I don't understand is how/why the image-element is changed as well. Btw, the test in the url is the mountpoint of my webapp. In the same page I've got form-elements with type image and the src-attribute isn't changed for them. Has anyone else seen this? /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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
are you saying we introduce the alt attribute? Then wicket would be very good! :)But wicket tries to resolve all relative links to absoluteSo how do you other things look? Are those also relative links? see the PrependContextPathHandler for the place that does this.johanOn 8/10/06, Mats Norén [EMAIL PROTECTED] wrote:Hi,I've noticed a strange behavior in 1.2.1 when using links with an img-element inside.a wicket:id=linkimg src="">in my HTML is changed toa href="" src="" alt=Lägg till//awhen wicket render it. The thing I don't understand is how/why theimage-element is changed as well.Btw, the test in the url is the mountpoint of my webapp. In the same page I've got form-elements with type image and thesrc-attribute isn't changed for them.Has anyone else seen this?/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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
On 8/10/06, Johan Compagner [EMAIL PROTECTED] wrote: are you saying we introduce the alt attribute? Then wicket would be very good! :) :) No, I don't think wicket added that one... But wicket tries to resolve all relative links to absolute So how do you other things look? Are those also relative links? Its a directory img under my webapplication root /webapp/img What I didn't understand was why it didn't do it's magic on the input-element? see the PrependContextPathHandler for the place that does this. Ok, I'll look there... johan On 8/10/06, Mats Norén [EMAIL PROTECTED] wrote: Hi, I've noticed a strange behavior in 1.2.1 when using links with an img-element inside. a wicket:id=linkimg src=img/button_lagg_till.gif//a in my HTML is changed to a href=/test?wicket:interface=:3:createLink::ILinkListenerimg src=/test/img/button_lagg_till.gif alt=Lägg till//a when wicket render it. The thing I don't understand is how/why the image-element is changed as well. Btw, the test in the url is the mountpoint of my webapp. In the same page I've got form-elements with type image and the src-attribute isn't changed for them. Has anyone else seen this? /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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
on what input element?can you show the markup?johanOn 8/10/06, Mats Norén [EMAIL PROTECTED] wrote:On 8/10/06, Johan Compagner [EMAIL PROTECTED] wrote: are you saying we introduce the alt attribute? Then wicket would be very good! :):)No, I don't think wicket added that one... But wicket tries to resolve all relative links to absolute So how do you other things look? Are those also relative links?Its a directory img under my webapplication root/webapp/imgWhat I didn't understand was why it didn't do it's magic on the input-element? see the PrependContextPathHandler for the place that does this.Ok, I'll look there... johan On 8/10/06, Mats Norén [EMAIL PROTECTED] wrote: Hi, I've noticed a strange behavior in 1.2.1 when using links with an img-element inside. a wicket:id=linkimg src=""> in my HTML is changed to a href=""> src="" alt=Lägg till//a when wicket render it. The thing I don't understand is how/why the image-element is changed as well. Btw, the test in the url is the mountpoint of my webapp. In the same page I've got form-elements with type image and the src-attribute isn't changed for them. Has anyone else seen this? /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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user