[Wicket-user] Re: Source of application using Wicket
I tried with latest snapshot of wicket and wicket-extension (did not found latest dojo). It's better but I cannot compile either, with javac 1.5.0_05 I get compiler internal error (java.lang.AssertionError). Jan jan_bar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Martijn, I have latest version of burgerweeshuis, but it doesn't compile. It seems that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot should I use? Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] wicket phonebook is a good example to start with. Under construction, and more specifically /NOT/ by wicket guru's is the Burgerweeshuis project hosted at sourceforge. http://www.sourceforge.net/projects/burgerweeshuis It is a dutch project, but you might find some interesting things there. It uses hibernate 3, annotations and wicket. It is a rewrite of a previously Model2 application (based on maverick). Martijn On 2/27/06, jan_bar [EMAIL PROTECTED] wrote: Hi, the Wicket samples is basic source of how to start with Wicket. But I miss some real world (more complex) applications. I like to learn from code written by Wicket gurus. For instance Pet Store with Wicket. Can you help me? Thank you, Jan --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Source of application using Wicket
Just get the latest or build a fresh one yourself. Eelco On 2/27/06, jan_bar [EMAIL PROTECTED] wrote: Thanks Martijn, I have latest version of burgerweeshuis, but it doesn't compile. It seems that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot should I use? Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] wicket phonebook is a good example to start with. Under construction, and more specifically /NOT/ by wicket guru's is the Burgerweeshuis project hosted at sourceforge. http://www.sourceforge.net/projects/burgerweeshuis It is a dutch project, but you might find some interesting things there. It uses hibernate 3, annotations and wicket. It is a rewrite of a previously Model2 application (based on maverick). Martijn On 2/27/06, jan_bar [EMAIL PROTECTED] wrote: Hi, the Wicket samples is basic source of how to start with Wicket. But I miss some real world (more complex) applications. I like to learn from code written by Wicket gurus. For instance Pet Store with Wicket. Can you help me? Thank you, Jan --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bookmarkable links
What test i do with the /.temp/www context path it works always.I tested in the the PrependContextPathHandlerTest we have in our unit test.And also when i do this in our FormInputApplication.init() method example: getApplicationSettings().setContextPath(/.temp/www);Then the stylesheet is altered right:link href =/.temp/www/style.css type=text/css rel= stylesheet/So i have no idea what goes wrong at youre place but i can't reproduce it.johan On 2/28/06, David Leangen [EMAIL PROTECTED] wrote: hrm, maybe its a problem with our prepender. it does look like its prepending the / but nothing after that, maybe the . that is screwing it up. try calling getApplicationSettings().setContextPath (/.temp/www) in your application.init() method. if that works then i will assume its a problem in our prepender and see if i can fix it.Unfortunately, still the same thing... :-( Even if I set the context path explicitly as you mention above, only /is being prepended, not the entire context path. as far as the css links go wicket will only prepend static markup in the .html file,not the one you generate, so there you have to do it manually. to put it another way, currently it is a preprocessor not a postprocessor.So I'd need to mount this like I would with my class pages? Is that what you're saying?Or I'd have to manually write in the context path as part of the link?Thanks so much!---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bookmarkable links
Wait a second do you use wicket:id tags in the link href="" rel=Stylesheet type=text/css/andimg src=""> Then you have to do it yourself!We don't touch urls generated by developer code.so when i see this:public Object getObject( final Component c ) {if ( ContentPage.this.isLocaleJapan ese() ) return styles/main_jp.css;else return styles/main_en.css; }then you have to append the context path youreself. public Object getObject( final Component c ) {if ( ContentPage.this.isLocaleJapanese() ) return ApplicationSettings.getContextPath() + /styles/main_jp.css; else return ApplicationSettings.getContextPath() + /styles/main_en.css; }Maybe you do need some test to see where the contextpath ends with like / johanOn 2/28/06, David Leangen [EMAIL PROTECTED] wrote: Hello!I just tried the latest snapshot (20060227-0200). Still the sameproblem, unfortunately. what does youre html look like? If you have non absolute paths in src or href attributes of tags then they will be made absolute in the latest snapshots.My (relevant) html looks like this:div id=header-areadiv class=logo-topa wicket:id=topPageLink class=image-linkimg src="">/divdiv class=menudiv class=menubarimg src="" /divspan wicket:id=topMenu//div/divThe context root is .temp/www, and the resulting html (for one of my pages as an example) is as below.You'll notice that the menu links are properly rendered, but the imagelinks and the css are not. So, is this a feature or a bug, Iwonder... ?xml version='1.0' encoding='UTF-8'?html xml:lang=en lang=en xmlns=http://www.w3.org/1999/xhtmlhead link href="" rel=Stylesheet type=text/css/titlePage Title/title/headbodydiv id=header-area div class=logo-topa href="" class=image-linkimg src="" /divdiv class=menudiv class=menubarimg src="">/div spandiv class=menu1a href="" class=menu-linkLSD/a/divdiv class=menu2a href="" class=menu-linkPubMed/a/div div class=menu3a href="" class=menu-linkCompany/a/divdiv class=menu4a href="" class=menu-linkContact/a/div /span/div!-- menu --/div!-- header-area --/body/htmlBTW, the CSS is like this:head link wicket:id=css rel=Stylesheet type=text/css href="">titlePage Title/title/headfinal WebComponent c = new WebComponent( css ); final IModel model = new Model(){private static final long serialVersionUID = 1L;public Object getObject( final Component c ){if ( ContentPage.this.isLocaleJapanese() )return styles/main_jp.css;elsereturn styles/main_en.css;}}; c.add( new AttributeModifier( href, model ) );add( c );---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Onsubmit giving error? Missing model?
Hi Im having some trouble getting my onsubmit to work, looking at one of the simple examples it looks like im doing the right thing(ive been looking at http://www.wicket-library.com/wicket-examples/signin). So hints on what im doing wrong and possible howto fix it will be much appreciated. Ive attached my HTML file my java file and the error page. Regards Nino Title: JOBINDSATS Sygedagpengemodtagere Tilgang FormPage feedbackmessages will be put here Index.java Description: Index.java Title: Unexpected RuntimeException  Unexpected RuntimeException wicket.WicketRuntimeException: Method public abstract void wicket.markup.html.form.IFormSubmitListener.onFormSubmitted() of interface java.lang.reflect.Method threw an exceptionat wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:587)at wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:651)at wicket.protocol.http.WebRequestCycle.callComponentListener(WebRequestCycle.java:492)at wicket.protocol.http.WebRequestCycle.parseRequest(WebRequestCycle.java:153)at wicket.RequestCycle.request(RequestCycle.java:408)at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:234)at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)at org.mortbay.http.HttpServer.service(HttpServer.java:879)at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)Caused by: java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at wicket.protocol.http.WebRequestCycle.invokeInterface(WebRequestCycle.java:578)... 21 moreCaused by: java.lang.IllegalStateException: Attempt to set model object on null model of component: form:radiogroupat wicket.Component.setModelObject(Component.java:1299)at wicket.markup.html.form.RadioGroup.updateModel(RadioGroup.java:109)at wicket.markup.html.form.Form$9.formComponent(Form.java:585)at wicket.markup.html.form.Form$4.component(Form.java:306)at wicket.MarkupContainer.visitChildren(MarkupContainer.java:632)at wicket.markup.html.form.Form.visitFormComponents(Form.java:302)at wicket.markup.html.form.Form.updateFormComponentModels(Form.java:577)at wicket.markup.html.form.Form.process(Form.java:559)at wicket.markup.html.form.Form.onFormSubmitted(Form.java:209)... 26 more Component Tree Component tree for [Page class = wicket.PROTO_01.Index, id = 0]: # Path Type Model Object 1 _body wicket.markup.html.BodyOnLoadContainer 2 feedback wicket.markup.html.panel.FeedbackPanel 3 feedback:feedbackul wicket.markup.html.WebMarkupContainer 4 feedback:feedbackul:messages wicket.markup.html.list.ListView [] 5 form wicket.markup.html.form.Form 6 form:LBL_nextpage wicket.markup.html.basic.Label næste side 7 form:_link_0 wicket.markup.html.WebMarkupContainer 8 form:_link_0:_autolink_1 wicket.markup.html.link.BookmarkablePageLink 9 form:_link_2 wicket.markup.html.WebMarkupContainer 10 form:_link_2:_autolink_3 wicket.markup.html.link.BookmarkablePageLink 11
Re: [Wicket-user] Onsubmit giving error? Missing model?
You don't specify a model at all form or youre form (compound model) or the radiochoice.Where should the submit values go into if you don't supply a model under youre form components.johan On 2/28/06, Nino Wael [EMAIL PROTECTED] wrote: HiIm having some trouble getting my onsubmit to work, looking at one of the simple examples it looks like im doing the right thing(ive been looking at http://www.wicket-library.com/wicket-examples/signin).So hints on what im doing wrong and possible howto fix it will be much appreciated.Ive attached my HTML file my java file and the error page. Regards Nino
[Wicket-user] Re: Source of application using Wicket
Building with 1.5.0_05 and 1.5.0_06 ends with internal compiler error in UserDetailsPage.java at this line: public RolesListView(String id) { super(id, new LoadableDetachableModel() { @Override protected Object load() { return getUserDao().findRoles();// this line crashes javac } }); } This compiles correctly: public RolesListView(String id) { super(id, new LoadableDetachableModel() { @Override protected Object load() { Object obj = getUserDao().findRoles(); return obj; } }); } Which javac do you use? Jan jan_bar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I tried with latest snapshot of wicket and wicket-extension (did not found latest dojo). It's better but I cannot compile either, with javac 1.5.0_05 I get compiler internal error (java.lang.AssertionError). Jan jan_bar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Martijn, I have latest version of burgerweeshuis, but it doesn't compile. It seems that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot should I use? Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] wicket phonebook is a good example to start with. Under construction, and more specifically /NOT/ by wicket guru's is the Burgerweeshuis project hosted at sourceforge. http://www.sourceforge.net/projects/burgerweeshuis It is a dutch project, but you might find some interesting things there. It uses hibernate 3, annotations and wicket. It is a rewrite of a previously Model2 application (based on maverick). Martijn On 2/27/06, jan_bar [EMAIL PROTECTED] wrote: Hi, the Wicket samples is basic source of how to start with Wicket. But I miss some real world (more complex) applications. I like to learn from code written by Wicket gurus. For instance Pet Store with Wicket. Can you help me? Thank you, Jan --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Re: Source of application using Wicket
Hi, I cannot deploy it in JBoss jboss-4.0.3SP1: 13:05:32,090 ERROR [[/burgerweeshuis]] Servlet /burgerweeshuis threw load() exception java.lang.NoClassDefFoundError: wicket/AjaxHandler I think something is missing in the war. I use wicket-1.2-20060227-0200.jar, wicket-extensions-1.2-20060227-0200.jar and wicket-contrib-dojo-0.3.1.jar instead of the original files in the lib/wicket. Thanks for your time, Jan Eelco Hillenius [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Just get the latest or build a fresh one yourself. Eelco On 2/27/06, jan_bar [EMAIL PROTECTED] wrote: Thanks Martijn, I have latest version of burgerweeshuis, but it doesn't compile. It seems that the wicket SNAPSHOT in the lib/wicket is out fo date. Which snapshot should I use? Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] wicket phonebook is a good example to start with. Under construction, and more specifically /NOT/ by wicket guru's is the Burgerweeshuis project hosted at sourceforge. http://www.sourceforge.net/projects/burgerweeshuis It is a dutch project, but you might find some interesting things there. It uses hibernate 3, annotations and wicket. It is a rewrite of a previously Model2 application (based on maverick). Martijn On 2/27/06, jan_bar [EMAIL PROTECTED] wrote: Hi, the Wicket samples is basic source of how to start with Wicket. But I miss some real world (more complex) applications. I like to learn from code written by Wicket gurus. For instance Pet Store with Wicket. Can you help me? Thank you, Jan --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Refreshing dynamic images
Hi, On one page I'm displaying dynamic charts (JFreeChart) as images. The charts, the data they're based on, are constantly changed by the users. The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Which means incorrect data is displayed. How can I make sure the browser always asks for a fresh image? /Anders Image tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() { this.setHeight(300); this.setWidth(600); DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true); retVal.setType(AbstractChartFactory.TYPE_BarChart); ... -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Refreshing dynamic images
Set the headers on the response.The browser support is a bit flaky as I understand it, from the numerous caching problems with pages across browsers (safari, IE and FF work differently).Martijn On 2/28/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi,On one page I'm displaying dynamic charts (JFreeChart) as images. Thecharts, the data they're based on, are constantly changed by the users.The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Whichmeans incorrect data is displayed.How can I make sure the browser always asks for a fresh image?/AndersImage tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() {this.setHeight(300);this.setWidth(600);DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true);retVal.setType(AbstractChartFactory.TYPE_BarChart);...--http://ojalgo.org/Mathematics, Linear Algebra and Optimisation with Java ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Refreshing dynamic images
the trick is to append a random number as a query parameter. that way the browser has to fetch it again because it thinks its a different document.-IgorOn 2/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Set the headers on the response.The browser support is a bit flaky as I understand it, from the numerous caching problems with pages across browsers (safari, IE and FF work differently).Martijn On 2/28/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi,On one page I'm displaying dynamic charts (JFreeChart) as images. Thecharts, the data they're based on, are constantly changed by the users.The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Whichmeans incorrect data is displayed.How can I make sure the browser always asks for a fresh image?/AndersImage tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() {this.setHeight(300);this.setWidth(600);DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true);retVal.setType(AbstractChartFactory.TYPE_BarChart);...--http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Refreshing dynamic images
Cool trick Igor, I didn't think of this before. On 2/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: the trick is to append a random number as a query parameter. that way the browser has to fetch it again because it thinks its a different document. -Igor On 2/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Set the headers on the response. The browser support is a bit flaky as I understand it, from the numerous caching problems with pages across browsers (safari, IE and FF work differently). Martijn On 2/28/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi, On one page I'm displaying dynamic charts (JFreeChart) as images. The charts, the data they're based on, are constantly changed by the users. The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Which means incorrect data is displayed. How can I make sure the browser always asks for a fresh image? /Anders Image tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() { this.setHeight(300); this.setWidth(600); DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true); retVal.setType(AbstractChartFactory.TYPE_BarChart); ... -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Still link problems (was: Is wicket on the right path?)
Hi David and others, I've converted my tiny project to Wicket 1.2, but encounter the same problems as with Wicket 1.1.1. - the image on the first page is not found, - clicking the About link shows the about page, but does not render the links correctly (About is still a link). My exploded directory contains this structure: +---META-INF | context.xml | +---pages | | Index.html | | PageTemplate.html | | | +---about | | Index.html | | | \---graphics | logo.gif | \---WEB-INF | web.xml | +---classes | \---com | \---foo | \---website | | FooWebApplication$1.class | | FooWebApplication.class | | | +---pages | | | Index.class | | | | | \---about | | Index.class | | | \---templates | PageTemplate.class | \---lib commons-logging-1.0.4.jar log4j-1.2.12.jar wicket-1.2-20060227-0200.jar I'd really appreciate it, if someone please could take a look at the tiny project (http://regnis.de/_wicket/wicket-060228.zip) and give a hint about what's wrong and how to make it better. Thanks in advance. -- Best regards, Thomas Singer David Leangen schrieb: Most of your questions were already answered by Johan (who can answer better than I, anyway). For the others, see inline. In any case, something like this is surely possible with mountable links. I have read a lot about different links in wicket, but nothing yet about *mountable* links. Also, the wiki does not show anything. Indeed. These are available from Wicket 1.2. I'm in the process of writing a wiki page, but haven't had time to finish it yet. These mountable links are really nice, BTW... (3) Even at design-time, relative paths to images or the style-sheet should be valid, so IDEA can verify their existence and image size. This requires the page templates to be in the same directory structure as the images and style-sheet. Wicket does this if you want it to. See above example, I do not get it to work as expected. Please note, that I need the application to work at http://server:port/foo/ and not at http://server:port/foo (the trailing slash problem). Again, works with mountable links. You need to set up 1.2 and mount your links. (5) It should be very easy to turn links, e.g. used in the menu bar snippet, into smart links. If pointing to the current page, they must not be rendered as a link, but the look should be customizable (wicket seems to use italics in this situation). All out of the box. How to customize the look of the not rendered link? CSS works just fine. Wicket allows you to customise the not-rendered-link, just like any other component. Or, if it's not customizable enough for you, you can create your own component. If you're playing around with 1.2, I suggest you also download the latest snapshot of the examples and look directly into the code there. HTH --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] relative resources(css/images...) in HTML
Hi , I am new to Wicket.I learn Wicket from the three tutorials in JavaLobby .In the third tutorial : Let Components Contribute to the Header Section( http://www.javalobby.org/java/forums/t61002.html )The author added to PersonPanel.html script language=_javascript_ src="">the src="" seems should be relative to the context root , not relative to the HTML file. Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error.How to solve it ?I think this problem will also occur in IMG tag...I remember when I used Tapestry (long ago , about 2 years) , it can deliver resources from within WEB-INF/classes/ That is , I can easily put _javascript_s, Images , and HTML files in to src/classes folder , writing relative resources and correct intepreted by HTML editor , and tapestry can handle it... just like this :WEB-INF/src[classes]/com/xxx/wicket/Person.html WEB-INF/src[classes]/com/xxx/wicket/sorttable.jsWEB-INF/src[classes]/com/xxx/wicket/Person.jpg Will Wicket allow this ?PS : I know this may be resolved by moving src outside WEB-INF (up one directory) , but I just get used to put src into WEB-INF... (because outside WEB-INF is accessable by web server... , not secure)
Re: [Wicket-user] relative resources(css/images...) in HTML
the src=... seems should be relative to the context root , not relative to the HTML file. Nope, for header contributions it should be relative to the html file. There's multiple ways, but that's the prefered one. Eelco --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] relative resources(css/images...) in HTML
Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ? Seems to be related to my problem sent immediately before your posting. To load markups from a different location, please take a look at my code sample. -- Best regards, Thomas Singer smallufo schrieb: Hi , I am new to Wicket. I learn Wicket from the three tutorials in JavaLobby . In the third tutorial : Let Components Contribute to the Header Section ( http://www.javalobby.org/java/forums/t61002.html ) The author added to PersonPanel.html **script language=JavaScript src=scripts/sorttable.js/script ** the src=... seems should be relative to the context root , not relative to the HTML file. Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ? I think this problem will also occur in IMG tag... I remember when I used Tapestry (long ago , about 2 years) , it can deliver resources from within WEB-INF/classes/ That is , I can easily put JavaScripts, Images , and HTML files in to src/classes folder , writing relative resources and correct intepreted by HTML editor , and tapestry can handle it... just like this : WEB-INF/src[classes]/com/xxx/wicket/Person.html WEB-INF/src[classes]/com/xxx/wicket/sorttable.js WEB-INF/src[classes]/com/xxx/wicket/Person.jpg Will Wicket allow this ? PS : I know this may be resolved by moving src outside WEB-INF (up one directory) , but I just get used to put src into WEB-INF... (because outside WEB-INF is accessable by web server... , not secure) --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] relative resources(css/images...) in HTML
That is the best thing you can do in wicket. They are called PackageResources which are added to our SharedResources (in application object)quite a lot of examples do use them.Just lookf for example that use the PackageResource, PackageResourceReference, SharedResources For example we have _javascript_Reference that is build for _javascript_ files.johanOn 2/28/06, smallufo [EMAIL PROTECTED] wrote:Hi , I am new to Wicket.I learn Wicket from the three tutorials in JavaLobby . In the third tutorial : Let Components Contribute to the Header Section( http://www.javalobby.org/java/forums/t61002.html )The author added to PersonPanel.html script language=_javascript_ src="">the src="" seems should be relative to the context root , not relative to the HTML file. Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error.How to solve it ?I think this problem will also occur in IMG tag...I remember when I used Tapestry (long ago , about 2 years) , it can deliver resources from within WEB-INF/classes/ That is , I can easily put _javascript_s, Images , and HTML files in to src/classes folder , writing relative resources and correct intepreted by HTML editor , and tapestry can handle it... just like this :WEB-INF/src[classes]/com/xxx/wicket/Person.html WEB-INF/src[classes]/com/xxx/wicket/sorttable.jsWEB-INF/src[classes]/com/xxx/wicket/Person.jpg Will Wicket allow this ?PS : I know this may be resolved by moving src outside WEB-INF (up one directory) , but I just get used to put src into WEB-INF... (because outside WEB-INF is accessable by web server... , not secure)
Re: [Wicket-user] Refreshing dynamic images
By default resources are cachable.You have to turn that off first:SpclChartResource resource = new SpclChartResource() { /// fooo };resource.setCacheable(false);Image tmpImage2 = new Image(image2, resource);johanOn 2/28/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi,On one page I'm displaying dynamic charts (JFreeChart) as images. Thecharts, the data they're based on, are constantly changed by the users.The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Whichmeans incorrect data is displayed.How can I make sure the browser always asks for a fresh image?/AndersImage tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() {this.setHeight(300);this.setWidth(600);DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true);retVal.setType(AbstractChartFactory.TYPE_BarChart);...--http://ojalgo.org/Mathematics, Linear Algebra and Optimisation with Java ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] relative resources(css/images...) in HTML
i have to say that i don't find that the prefered (wicket) way.Ofcourse it is possible, but the best thing would be to package all resources in the classes dir or jar.(jar is a requirement ofcourse if you make a component that you want to reuse) johanOn 2/28/06, Thomas Singer [EMAIL PROTECTED] wrote: Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ?Seems to be related to my problem sent immediately before your posting. To load markups from a different location, please take a look at my code sample.--Best regards,Thomas Singersmallufo schrieb: Hi , I am new to Wicket. I learn Wicket from the three tutorials in JavaLobby . In the third tutorial : Let Components Contribute to the Header Section ( http://www.javalobby.org/java/forums/t61002.html ) The author added to PersonPanel.html **script language=_javascript_ src=""> ** the src="" seems should be relative to the context root , not relative to the HTML file. Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ? I think this problem will also occur in IMG tag... I remember when I used Tapestry (long ago , about 2 years) , it can deliver resources from within WEB-INF/classes/ That is , I can easily put _javascript_s, Images , and HTML files in to src/classes folder , writing relative resources and correct intepreted by HTML editor , and tapestry can handle it... just like this : WEB-INF/src[classes]/com/xxx/wicket/Person.html WEB-INF/src[classes]/com/xxx/wicket/sorttable.js WEB-INF/src[classes]/com/xxx/wicket/Person.jpg Will Wicket allow this ? PS : I know this may be resolved by moving src outside WEB-INF (up one directory) , but I just get used to put src into WEB-INF... (because outside WEB-INF is accessable by web server... , not secure)---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] [Wicket 1.1.1] Modifying attributes of the HTML body tag
Hi. I have to modify the onload attribute of the body tag. I thought it would be sufficient to add a new WebMarkupContainer in my base Page and link it to the body tag in the markup. But unfortunately it doesn't seem to be so easy. (I have to override the add methods of Page, and Wicket compains about that.) Is there a recommended way? Timo --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Apply global CSS font styles......
Am trying to apply a global/base font style for all text on Wicket pages with CSS. On my local machine, the following code works as desired and is applied to all text. This does not seem to work when specified in my .css file for my Wicket application. body { margin-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 32px; color: #CC; } Anyone else come across this issue? Thanks in advance for any help offered. ~Chris
Re: [Wicket-user] relative resources(css/images...) in HTML
OK, but what do you say about the reported problem with the relative resource paths and links? -- Best regards, Thomas Singer Johan Compagner schrieb: i have to say that i don't find that the prefered (wicket) way. Ofcourse it is possible, but the best thing would be to package all resources in the classes dir or jar. (jar is a requirement ofcourse if you make a component that you want to reuse) johan On 2/28/06, *Thomas Singer* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ? Seems to be related to my problem sent immediately before your posting. To load markups from a different location, please take a look at my code sample. -- Best regards, Thomas Singer smallufo schrieb: Hi , I am new to Wicket. I learn Wicket from the three tutorials in JavaLobby . In the third tutorial : Let Components Contribute to the Header Section ( http://www.javalobby.org/java/forums/t61002.html ) The author added to PersonPanel.html **script language=JavaScript src=scripts/sorttable.js/script ** the src=... seems should be relative to the context root , not relative to the HTML file. Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ? I think this problem will also occur in IMG tag... I remember when I used Tapestry (long ago , about 2 years) , it can deliver resources from within WEB-INF/classes/ That is , I can easily put JavaScripts, Images , and HTML files in to src/classes folder , writing relative resources and correct intepreted by HTML editor , and tapestry can handle it... just like this : WEB-INF/src[classes]/com/xxx/wicket/Person.html WEB-INF/src[classes]/com/xxx/wicket/sorttable.js WEB-INF/src[classes]/com/xxx/wicket/Person.jpg Will Wicket allow this ? PS : I know this may be resolved by moving src outside WEB-INF (up one directory) , but I just get used to put src into WEB-INF... (because outside WEB-INF is accessable by web server... , not secure) --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Wicket 1.1.1] Modifying attributes of the HTML body tag
In 1.1.1 body has a special wicket container associated. I assume you have Panel and that Panel has some wicket:head to contribute something to the pages header. Than simply add a body onLoad=xxx to your panel and your done. wicket:head javascript /wicket:head body onLoad=functionX() wicket:panel ... /wicket:panel /body Juergen On 2/28/06, Timo Stamm [EMAIL PROTECTED] wrote: Hi. I have to modify the onload attribute of the body tag. I thought it would be sufficient to add a new WebMarkupContainer in my base Page and link it to the body tag in the markup. But unfortunately it doesn't seem to be so easy. (I have to override the add methods of Page, and Wicket compains about that.) Is there a recommended way? Timo --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] relative resources(css/images...) in HTML
what problem?it works fine if you have all youre resources in the classes dirin a html file you can do this:htmlheadscript wicket:id=test src="" /headand in the page you add that component to youre page:page(){ add(new _javascript_Reference(test, getClass(), ./../../../test.js));} On 2/28/06, Thomas Singer [EMAIL PROTECTED] wrote: OK, but what do you say about the reported problem with the relativeresource paths and links?--Best regards,Thomas SingerJohan Compagner schrieb: i have to say that i don't find that the prefered (wicket) way. Ofcourse it is possible, but the best thing would be to package all resources in the classes dir or jar. (jar is a requirement ofcourse if you make a component that you want to reuse) johan On 2/28/06, *Thomas Singer* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ? Seems to be related to my problem sent immediately before your posting. To load markups from a different location, please take a look at my code sample. -- Best regards, Thomas Singer smallufo schrieb: Hi , I am new to Wicket. I learn Wicket from the three tutorials in JavaLobby . In the third tutorial : Let Components Contribute to the Header Section ( http://www.javalobby.org/java/forums/t61002.html ) The author added to PersonPanel.html **script language=_javascript_ src=""> ** the src="" seems should be relative to the context root , not relative to the HTML file. Therefore , if I open PersonPanel.html with DreamWeaver or HTML editor , it will report resource not found error. How to solve it ? I think this problem will also occur in IMG tag... I remember when I used Tapestry (long ago , about 2 years) , it can deliver resources from within WEB-INF/classes/ That is , I can easily put _javascript_s, Images , and HTML files in to src/classes folder , writing relative resources and correct intepreted by HTML editor , and tapestry can handle it... just like this : WEB-INF/src[classes]/com/xxx/wicket/Person.html WEB-INF/src[classes]/com/xxx/wicket/sorttable.js WEB-INF/src[classes]/com/xxx/wicket/Person.jpg Will Wicket allow this ? PS : I know this may be resolved by moving src outside WEB-INF (up one directory) , but I just get used to put src into WEB-INF... (because outside WEB-INF is accessable by web server... , not secure) --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Wicket 1.1.1] Modifying attributes of the HTML body tag
And programatically you can do: /** * @see wicket.Component#renderHead(wicket.markup.html.internal.HtmlHeaderContainer) */ public void renderHead(HtmlHeaderContainer container) { ((WebPage)getPage()).getBodyContainer().addOnLoadModifier( init + javaScriptComponentName + ();); super.renderHead(container); } Use with care though. Eelco On 2/28/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: In 1.1.1 body has a special wicket container associated. I assume you have Panel and that Panel has some wicket:head to contribute something to the pages header. Than simply add a body onLoad=xxx to your panel and your done. wicket:head javascript /wicket:head body onLoad=functionX() wicket:panel ... /wicket:panel /body Juergen On 2/28/06, Timo Stamm [EMAIL PROTECTED] wrote: Hi. I have to modify the onload attribute of the body tag. I thought it would be sufficient to add a new WebMarkupContainer in my base Page and link it to the body tag in the markup. But unfortunately it doesn't seem to be so easy. (I have to override the add methods of Page, and Wicket compains about that.) Is there a recommended way? Timo --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Still link problems (was: Is wicket on the right path?)
Hi, I took a look at your project, but I am definitely not the right guy to ask about this. I have no experience with what you're trying to do. Good luck! Dave On Tue, 2006-02-28 at 21:50 +0100, Thomas Singer wrote: Hi David and others, I've converted my tiny project to Wicket 1.2, but encounter the same problems as with Wicket 1.1.1. - the image on the first page is not found, - clicking the About link shows the about page, but does not render the links correctly (About is still a link). My exploded directory contains this structure: +---META-INF | context.xml | +---pages | | Index.html | | PageTemplate.html | | | +---about | | Index.html | | | \---graphics | logo.gif | \---WEB-INF | web.xml | +---classes | \---com | \---foo | \---website | | FooWebApplication$1.class | | FooWebApplication.class | | | +---pages | | | Index.class | | | | | \---about | | Index.class | | | \---templates | PageTemplate.class | \---lib commons-logging-1.0.4.jar log4j-1.2.12.jar wicket-1.2-20060227-0200.jar I'd really appreciate it, if someone please could take a look at the tiny project (http://regnis.de/_wicket/wicket-060228.zip) and give a hint about what's wrong and how to make it better. Thanks in advance. -- Best regards, Thomas Singer David Leangen schrieb: Most of your questions were already answered by Johan (who can answer better than I, anyway). For the others, see inline. In any case, something like this is surely possible with mountable links. I have read a lot about different links in wicket, but nothing yet about *mountable* links. Also, the wiki does not show anything. Indeed. These are available from Wicket 1.2. I'm in the process of writing a wiki page, but haven't had time to finish it yet. These mountable links are really nice, BTW... (3) Even at design-time, relative paths to images or the style-sheet should be valid, so IDEA can verify their existence and image size. This requires the page templates to be in the same directory structure as the images and style-sheet. Wicket does this if you want it to. See above example, I do not get it to work as expected. Please note, that I need the application to work at http://server:port/foo/ and not at http://server:port/foo (the trailing slash problem). Again, works with mountable links. You need to set up 1.2 and mount your links. (5) It should be very easy to turn links, e.g. used in the menu bar snippet, into smart links. If pointing to the current page, they must not be rendered as a link, but the look should be customizable (wicket seems to use italics in this situation). All out of the box. How to customize the look of the not rendered link? CSS works just fine. Wicket allows you to customise the not-rendered-link, just like any other component. Or, if it's not customizable enough for you, you can create your own component. If you're playing around with 1.2, I suggest you also download the latest snapshot of the examples and look directly into the code there. HTH --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
[Wicket-user] is IValidatorResourceKeyFactory being used
i would like to remove IValidatorResourceKeyFactory and so i want to know if anyone is using it and thus be affected. since we now have a good search order for resource keys instead of always trying formname.inputname.validator-class the factory is more or less obsolete.so if you are using it please respond.-Igor
Re: [Wicket-user] Apply global CSS font styles......
Hi, Chris, Try taking a look at the wiki. I'd give you the exact link, but I'm unable to access the wiki at this time. There is a page there that shows how to embed css and javascript. It should give you some helpful hints. Cheers, Dave On Tue, 2006-02-28 at 16:00 -0600, Wolff, Chris (JIS - Applications) wrote: Am trying to apply a global/base font style for all text on Wicket pages with CSS. On my local machine, the following code works as desired and is applied to all text. This does not seem to work when specified in my .css file for my Wicket application…. body { margin-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 32px; color: #CC; } Anyone else come across this issue? Thanks in advance for any help offered…. ~Chris --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] is IValidatorResourceKeyFactory being used
We're using it. We should move away from it, but I don't have the time to update everything in my app right now. On 2/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i would like to remove IValidatorResourceKeyFactory and so i want to know if anyone is using it and thus be affected. since we now have a good search order for resource keys instead of always trying formname.inputname.validator-class the factory is more or less obsolete.so if you are using it please respond.-Igor
Re: [Wicket-user] is IValidatorResourceKeyFactory being used
so you do have a straight forward migration path away from it? maybe i will deprecate it for 1.2 and remove in 1.3 then. or ask again before we release 1.2 in case you had time to move. -Igor On 2/28/06, Nick Heudecker [EMAIL PROTECTED] wrote: We're using it. We should move away from it, but I don't have the time to update everything in my app right now. On 2/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i would like to remove IValidatorResourceKeyFactory and so i want to know if anyone is using it and thus be affected. since we now have a good search order for resource keys instead of always trying formname.inputname.validator-class the factory is more or less obsolete.so if you are using it please respond.-Igor
Re: [Wicket-user] Bookmarkable links
Wait a second do you use wicket:id tags in the so when i see this: public Object getObject( final Component c ) { if ( ContentPage.this.isLocaleJapan ese() ) return styles/main_jp.css; else return styles/main_en.css; } then you have to append the context path youreself. Ok, now I know. And that does work, indeed. img src=/images/menu.gif/ Then you have to do it yourself! We don't touch urls generated by developer code. Actually, I do this (relative URL): img src=images/menu.gif Ok, so you are saying that I would have to create a wicket component for ANY image or whatever I want to include? So, this means that my authors, who know nothing about programming, can't include images unless they can get a programmer to include a component? If I use a relative URL, why doesn't wicket prepend the context root? Is there a reason for this design decision? I trust the developers' design decisions, but I don't understand this one. I'm just curious as to why. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bookmarkable links
the prepending is done via PrependContextPathHandler class. this handler was not enabled by default because it was experimental. as of a recent 1.2 snapshot it is enabled by default. how old is the snapshot you are using? do you have the source attached? if so take a look at sourcecode for MarkupParserFactory, do you see the prepender added in the constructors? -Igor On 2/28/06, David Leangen [EMAIL PROTECTED] wrote: Wait a second do you use wicket:id tags in theso when i see this: public Object getObject( final Component c ){if ( ContentPage.this.isLocaleJapan ese() )return styles/main_jp.css;elsereturn styles/main_en.css;} then you have to append the context path youreself.Ok, now I know. And that does work, indeed.img src="" Then you have to do it yourself! We don't touch urls generated by developer code.Actually, I do this (relative URL):img src="">Ok, so you are saying that I would have to create a wicket component for ANY image or whatever I want to include?So, this means that my authors, who know nothing about programming,can't include images unless they can get a programmer to include acomponent?If I use a relative URL, why doesn't wicket prepend the context root? Is there a reason for this design decision? I trust the developers'design decisions, but I don't understand this one. I'm just curious asto why.Cheers,Dave--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Still link problems (was: Is wicket on the right path?)
On 3/1/06, Thomas Singer [EMAIL PROTECTED] wrote: I've converted my tiny project to Wicket 1.2, but encounter the sameproblems as with Wicket 1.1.1.One difference I noticed between yours and mine (which was based off the quickstart) is that I have my wicket servlet mapped to /app and not / This way anything /* thats -not- wicket is handled by standard web conventions. I then have /images /css at the same level as my WEB-INF directory.I have a /index.html which simply redirects to /app to get the applications home page. Mark
Re: [Wicket-user] Bookmarkable links
On Tue, 2006-02-28 at 22:05 -0800, Igor Vaynberg wrote: how old is the snapshot you are using? do you have the source attached? if so take a look at sourcecode for MarkupParserFactory, do you see the prepender added in the constructors? I'm using 20060227-0200. Yes, I did notice the PrependContextPathHandler class added to the filters. One thing I'd really like to know... is the behavior I'm expecting what should indeed be happening? In other words, if I have: img src=images/menu.gif / in my markup, it should be output as: img src=/context/images/menu.gif/ ? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] is IValidatorResourceKeyFactory being used
Deprecate and remove in 1.3 Martijn On 3/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: so you do have a straight forward migration path away from it? maybe i will deprecate it for 1.2 and remove in 1.3 then. or ask again before we release 1.2 in case you had time to move. -Igor On 2/28/06, Nick Heudecker [EMAIL PROTECTED] wrote: We're using it. We should move away from it, but I don't have the time to update everything in my app right now. On 2/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i would like to remove IValidatorResourceKeyFactory and so i want to know if anyone is using it and thus be affected. since we now have a good search order for resource keys instead of always trying formname.inputname.validator-class the factory is more or less obsolete. so if you are using it please respond. -Igor -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bookmarkable links
if /context is your context path then yes.-IgorOn 2/28/06, David Leangen [EMAIL PROTECTED] wrote: On Tue, 2006-02-28 at 22:05 -0800, Igor Vaynberg wrote: how old is the snapshot you are using? do you have the source attached? if so take a look at sourcecode for MarkupParserFactory, do you see the prepender added in the constructors?I'm using 20060227-0200.Yes, I did notice the PrependContextPathHandler class added to the filters.One thing I'd really like to know... is the behavior I'm expecting whatshould indeed be happening?In other words, if I have:img src="" / in my markup, it should be output as:img src="">?---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bookmarkable links
On Tue, 2006-02-28 at 23:32 -0800, Igor Vaynberg wrote: if /context is your context path then yes. Hmmm... Well, in that case, I'll try to get my local wicket to actually build in Eclipse so I can set up Jetty Launcher with it and try to step through to see why this isn't happening as I expect... I'll let you know if I find anything. Thanks for all your patience. Dave On 2/28/06, David Leangen [EMAIL PROTECTED] wrote: One thing I'd really like to know... is the behavior I'm expecting what should indeed be happening? In other words, if I have: img src=images/menu.gif / in my markup, it should be output as: img src=/context/images/menu.gif/ ? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user