Re: Using Eclipse Wicket for Modular Webapps
I don't know. What's the class loader model the Netbeans uses? Thomas BTW, I'm trying to understand why I didn't have to deal with the IClassResolver for bookmarkable pages... -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch
Re: making a HTTP request directly in Wicket
Yeah I meant 'timeout' as in waiting for a process to run and the web server timing out. I will still set a timeout on the thread though. On 07/02/2009, at 1:58 AM, Marcelo Morales wrote: It can connect and stall forever. People restart firewalls you know. I must insist on using at least setReadTimeout(int). On Fri, Feb 6, 2009 at 3:15 AM, Swinsburg, Stephen s.swinsb...@lancaster.ac.uk wrote: I was just going to do it in a different thread, make a void function then it can take as long as it needs without having timeouts. Might still have a timeout just in case though ;) cheers. -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: Fri 2/6/2009 5:40 AM To: users@wicket.apache.org Subject: Re: making a HTTP request directly in Wicket Thanks Peter, Marcelo, Still learning every day... Regards, Erik. Marcelo Morales wrote: Don't forget setReadTimeout(int) Also very important. On Thu, Feb 5, 2009 at 11:42 AM, Peter Ertl pe...@gmx.org wrote: Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at least in Java 6 there is URLConnection.setConnectTimeout(int) -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: making a HTTP request directly in Wicket
setReadTimeout() exists since java 1.5 so I guess the right recommendation would be to use HttpClient if you are still bound to 1.4 Am 07.02.2009 um 02:58 schrieb Marcelo Morales: It can connect and stall forever. People restart firewalls you know. I must insist on using at least setReadTimeout(int). On Fri, Feb 6, 2009 at 3:15 AM, Swinsburg, Stephen s.swinsb...@lancaster.ac.uk wrote: I was just going to do it in a different thread, make a void function then it can take as long as it needs without having timeouts. Might still have a timeout just in case though ;) cheers. -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: Fri 2/6/2009 5:40 AM To: users@wicket.apache.org Subject: Re: making a HTTP request directly in Wicket Thanks Peter, Marcelo, Still learning every day... Regards, Erik. Marcelo Morales wrote: Don't forget setReadTimeout(int) Also very important. On Thu, Feb 5, 2009 at 11:42 AM, Peter Ertl pe...@gmx.org wrote: Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at least in Java 6 there is URLConnection.setConnectTimeout(int) -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Graphs, Charts and Wicket
+1 for JFreeChart. Here's an introductory presentation that I gave in 2005: http://conferences.oreillynet.com/cs/os2005/view/e_sess/6804 Sean On Mon, Nov 17, 2008 at 2:37 AM, James Carman ja...@carmanconsulting.com wrote: You can check out how I used JFreeChart in one of my Wicket presentations... http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story10/resource/StudentPerRankChart.java and the resource class itself: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java On Sun, Nov 16, 2008 at 8:29 PM, Jurek Piasek jurek.pia...@gmail.com wrote: I have been using Amcharts http://www.amcharts.com/ together with SWFObject http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html Regards, Jurek On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel) dyaz...@avaya.comwrote: Hi all, I'd like to put some simple bar graphs, pie graphs and possible line graphs into my wicket pages. Have any of you used a good framework that you can recommend, that also plays nicely with Wicket? Thanks! -Daniel. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Using Eclipse Wicket for Modular Webapps
Thomas Mäder wrote: I don't know. What's the class loader model the Netbeans uses? It should be similar to Eclipse, but I must confess my ignorance about Eclipse. I'm investigating about this detail, thanks to the stuff you pointed out in your interesting paper. Thomas BTW, I'm trying to understand why I didn't have to deal with the IClassResolver for bookmarkable pages... -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941
IE7 + Vista + SP1 + AjaxFallbackLink.
Hi. My friend has a default installation of the above. I notice that onClick(null) is being called in AjaxFallbackLink therefore making the target null. He tells me that XMLHttp is enabled and the browser appears to work fine with other AJAX enabled sites. Any thoughts as to why this may be? Anyone encountered this? It doesn't happen with other Vista +IE7 computers... (unfortunately I run Linux/Mac so can't test). A search on the forum showed nothing significant. Cheers for any help, Graeme. -- View this message in context: http://www.nabble.com/IE7-%2B-Vista-%2B-SP1-%2B-AjaxFallbackLink.-tp21890718p21890718.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IE7 + Vista + SP1 + AjaxFallbackLink.
I'm thinking it might be a security setting... Graeme Knight wrote: Hi. My friend has a default installation of the above. I notice that onClick(null) is being called in AjaxFallbackLink therefore making the target null. He tells me that XMLHttp is enabled and the browser appears to work fine with other AJAX enabled sites. Any thoughts as to why this may be? Anyone encountered this? It doesn't happen with other Vista +IE7 computers... (unfortunately I run Linux/Mac so can't test). A search on the forum showed nothing significant. Cheers for any help, Graeme. -- View this message in context: http://www.nabble.com/IE7-%2B-Vista-%2B-SP1-%2B-AjaxFallbackLink.-tp21890718p21891159.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to execute Wicket project in Eclipse
I just created a Main application using Jetty and run it through that... my main server is jboss/tomcat but for development Jetty works real fine and is very easy to set up. Something like: public static void main( String[] args ) throws Exception { logger.debug( Starting web server... ); // create an instance of the web server Server server = new Server(); // Create a connector channel to allow communication with our local web server Connector connector = new SelectChannelConnector(); connector.setPort( 8080 ); connector.setHost( 127.0.0.1 ); // add the connector to the server server.addConnector( connector ); // create a web application context WebAppContext applicationContext = new WebAppContext(); // set the context path of the application applicationContext.setContextPath( / ); // path to the exploded application. Will automatically locate web.xml applicationContext.setWar( APPLICATION_BASE_DIRECTORY ); // set the application context onto the server server.setHandler( applicationContext ); // kill server on shutdown server.setStopAtShutdown( true ); // start the web server server.start(); server.join(); } Swapna Rachamalla wrote: yeah i got it using Apache Tomcat 6.0 also.. Thanks a lot.. On Fri, Feb 6, 2009 at 3:04 PM, Trent Larson larsontr...@gmail.com wrote: You will have to run your Wicket application with a J2EE application server. I've found Run-Jetty-Run to be extremely easy-to-use: http://code.google.com/p/run-jetty-run/ Trent On Fri, Feb 6, 2009 at 2:43 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi All I have installed Apache wicket plug-ins in Eclipse. Now iam able to create Wicket Project from File-New-Other-Wicket-Wicket Project. Then it is asking for Project name. So gave some name.. Then it is creating MyApplication which extends WebApplication and configured in the web.xml file. then i created HelloWorld.java package com.example; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; public class HelloWorld extends WebPage { HelloWorld() { add(new Label(msg,sfjhdsjfdhjdjkf)); } } and modified MyApplication.java file public class MyApplication extends WebApplication { public MyApplication() { } public void init() { } @Override public Class getHomePage() { // TODO Auto-generated method stub return HelloWorld.class; } } and created HelloWorld.html html head titleInsert title here/title /head body Message goes here /body /html Now Iam unable deploy and run the application. can u Plz suggest me how to run this application. Iam not using Maven for building the files and i configured Apache Geronimo 2.0 Server in Eclipse Thanks Swapna -- View this message in context: http://www.nabble.com/How-to-execute-Wicket-project-in-Eclipse-tp21881247p21891215.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: AutoCompleteTextField buggy?
hi igor, it's 1.3.5 Von: Igor Vaynberg igor.vaynb...@gmail.com An: users@wicket.apache.org Gesendet: Samstag, den 7. Februar 2009, 00:44:28 Uhr Betreff: Re: AutoCompleteTextField buggy? what wicket version are you using? -igor On Fri, Feb 6, 2009 at 3:32 AM, Arthur Leigh Allen arthurleigh.al...@yahoo.de wrote: Hi there I read that some people here got the same exception like me, but I couldn't find an answer. Do the following: -use an AutoCompleteTextField -override the method getChoices(String input) -do a time-consuming database call to retrieve the choices -return the choices everything works fine... but do the following steps VERY FAST -click at the AutoCompleteTextField to enter something -press m and immediately enter to submit the form this will submit the form BEFORE the getChoices method returns the choices.. the form is submitted and then the AutoCompleteTextField is removed from the page because the panel (including the text field) is removed and a different panel is displayed via ajax. then the getChoices(...) method returns the choices and the following exception occurs: org.apache.wicket.WicketRuntimeException: component content:form:nameField:textField not found on page test.MyPage[id = 0], listener interface = [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at test.TestApplication.access$0(TestApplication.java:145) at test.TestApplication$1.onRuntimeException(TestApplication.java:117) at org.apache.wicket.request.AbstractRequestCycleProcessor.onRuntimeException(AbstractRequestCycleProcessor.java:217) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:119) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1302) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketServlet..doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org..apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util..net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) When the getChoices method returns null or when I press m and then enter after ca. 3 seconds, everything works fine without an exception. I already saw that example: http://www.wicket-library.com/wicket-examples/ajax/autocomplete.1 There the exception doesn't occur but I think it's maybe because -setResponsePage is used and not ajax or -the getChoices method returns the values in time Would appreciate any help Best regards, Leigh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to execute Wicket project in Eclipse
Thank you very much.. On Sat, Feb 7, 2009 at 10:15 AM, Graeme Knight graeme1...@gmail.com wrote: I just created a Main application using Jetty and run it through that... my main server is jboss/tomcat but for development Jetty works real fine and is very easy to set up. Something like: public static void main( String[] args ) throws Exception { logger.debug( Starting web server... ); // create an instance of the web server Server server = new Server(); // Create a connector channel to allow communication with our local web server Connector connector = new SelectChannelConnector(); connector.setPort( 8080 ); connector.setHost( 127.0.0.1 ); // add the connector to the server server.addConnector( connector ); // create a web application context WebAppContext applicationContext = new WebAppContext(); // set the context path of the application applicationContext.setContextPath( / ); // path to the exploded application. Will automatically locate web.xml applicationContext.setWar( APPLICATION_BASE_DIRECTORY ); // set the application context onto the server server.setHandler( applicationContext ); // kill server on shutdown server.setStopAtShutdown( true ); // start the web server server.start(); server.join(); } Swapna Rachamalla wrote: yeah i got it using Apache Tomcat 6.0 also.. Thanks a lot.. On Fri, Feb 6, 2009 at 3:04 PM, Trent Larson larsontr...@gmail.com wrote: You will have to run your Wicket application with a J2EE application server. I've found Run-Jetty-Run to be extremely easy-to-use: http://code.google.com/p/run-jetty-run/ Trent On Fri, Feb 6, 2009 at 2:43 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi All I have installed Apache wicket plug-ins in Eclipse. Now iam able to create Wicket Project from File-New-Other-Wicket-Wicket Project. Then it is asking for Project name. So gave some name.. Then it is creating MyApplication which extends WebApplication and configured in the web.xml file. then i created HelloWorld.java package com.example; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; public class HelloWorld extends WebPage { HelloWorld() { add(new Label(msg,sfjhdsjfdhjdjkf)); } } and modified MyApplication.java file public class MyApplication extends WebApplication { public MyApplication() { } public void init() { } @Override public Class getHomePage() { // TODO Auto-generated method stub return HelloWorld.class; } } and created HelloWorld.html html head titleInsert title here/title /head body Message goes here /body /html Now Iam unable deploy and run the application. can u Plz suggest me how to run this application. Iam not using Maven for building the files and i configured Apache Geronimo 2.0 Server in Eclipse Thanks Swapna -- View this message in context: http://www.nabble.com/How-to-execute-Wicket-project-in-Eclipse-tp21881247p21891215.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IE7 + Vista + SP1 + AjaxFallbackLink.
For anyone who cares - IE7 Enable Protected Mode appears to be a problem... Makes sense. Graeme Knight wrote: Hi. My friend has a default installation of the above. I notice that onClick(null) is being called in AjaxFallbackLink therefore making the target null. He tells me that XMLHttp is enabled and the browser appears to work fine with other AJAX enabled sites. Any thoughts as to why this may be? Anyone encountered this? It doesn't happen with other Vista +IE7 computers... (unfortunately I run Linux/Mac so can't test). A search on the forum showed nothing significant. Cheers for any help, Graeme. -- View this message in context: http://www.nabble.com/IE7-%2B-Vista-%2B-SP1-%2B-AjaxFallbackLink.-tp21890718p21892272.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to execute Wicket project in Eclipse
which could've been condensed into http://wicket.apache.org/quickstart.html Martijn On Sat, Feb 7, 2009 at 7:15 PM, Graeme Knight graeme1...@gmail.com wrote: I just created a Main application using Jetty and run it through that... my main server is jboss/tomcat but for development Jetty works real fine and is very easy to set up. Something like: public static void main( String[] args ) throws Exception { logger.debug( Starting web server... ); // create an instance of the web server Server server = new Server(); // Create a connector channel to allow communication with our local web server Connector connector = new SelectChannelConnector(); connector.setPort( 8080 ); connector.setHost( 127.0.0.1 ); // add the connector to the server server.addConnector( connector ); // create a web application context WebAppContext applicationContext = new WebAppContext(); // set the context path of the application applicationContext.setContextPath( / ); // path to the exploded application. Will automatically locate web.xml applicationContext.setWar( APPLICATION_BASE_DIRECTORY ); // set the application context onto the server server.setHandler( applicationContext ); // kill server on shutdown server.setStopAtShutdown( true ); // start the web server server.start(); server.join(); } Swapna Rachamalla wrote: yeah i got it using Apache Tomcat 6.0 also.. Thanks a lot.. On Fri, Feb 6, 2009 at 3:04 PM, Trent Larson larsontr...@gmail.com wrote: You will have to run your Wicket application with a J2EE application server. I've found Run-Jetty-Run to be extremely easy-to-use: http://code.google.com/p/run-jetty-run/ Trent On Fri, Feb 6, 2009 at 2:43 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi All I have installed Apache wicket plug-ins in Eclipse. Now iam able to create Wicket Project from File-New-Other-Wicket-Wicket Project. Then it is asking for Project name. So gave some name.. Then it is creating MyApplication which extends WebApplication and configured in the web.xml file. then i created HelloWorld.java package com.example; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; public class HelloWorld extends WebPage { HelloWorld() { add(new Label(msg,sfjhdsjfdhjdjkf)); } } and modified MyApplication.java file public class MyApplication extends WebApplication { public MyApplication() { } public void init() { } @Override public Class getHomePage() { // TODO Auto-generated method stub return HelloWorld.class; } } and created HelloWorld.html html head titleInsert title here/title /head body Message goes here /body /html Now Iam unable deploy and run the application. can u Plz suggest me how to run this application. Iam not using Maven for building the files and i configured Apache Geronimo 2.0 Server in Eclipse Thanks Swapna -- View this message in context: http://www.nabble.com/How-to-execute-Wicket-project-in-Eclipse-tp21881247p21891215.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Problem in autocomplete example
Auto complete example at http://wicketstuff.org/wicket13/ajax/autocomplete.0 keeps on throwing Page expired error message. Is this the expected behavior? Can somebody explain what is happening in this example? Thanks, Shital - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org