junit for wicket webpage/panel
Hi, I am wondering how to cover the junit cases for the webpages/ panel as the constructors are only taking the id's , but in the constructors of the webpages/panel i have created the some methods for ex: My Panel extends Panel{ MyPanel(String id){ super(id); buildPage(); } private void buildPage(){ add( ...components) } } Can anybody suggests me how can I write Junit test cases on these kind of webpages/panels . Thanks, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/junit-for-wicket-webpage-panel-tp4651468.html Sent from the Users forum 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
Wicket Ant/Ivy template project
Hello, I noticed a couple of Maven projects that can be used as templates for creating Wicket/Spring/Hibernate webapps. I was surprised that I wasn't able to find an Ant/Ivy project for this tech stack given that Wicket, Ant and Ivy are all Apache projects. Does anybody have an Ant/Ivy template for projects that use Wicket/Spring/Hibernate or a subset of them? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What sort of page variables are stored in page map?
Hi, Thanks for the quick reply. So that means whatever we define for a page will get serialized and stored in page map. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-sort-of-page-variables-are-stored-in-page-map-tp4651460p4651462.html Sent from the Users forum 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: What sort of page variables are stored in page map?
Wicket uses normal Java serialization so whatever applies there is valid. http://java.sun.com/developer/technicalArticles/Programming/serialization/ On Thu, Aug 23, 2012 at 4:39 PM, kshitiz wrote: > Hi, > > For a web page, what sort of variables are stored in page map to hold its > state when user moved from that page to another? Like class variables, final > variables would be getting saved. Other than those, if we define a variable > or any component in its constructor, what happens to such variables when one > moved to another page? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/What-sort-of-page-variables-are-stored-in-page-map-tp4651460.html > Sent from the Users forum 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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
What sort of page variables are stored in page map?
Hi, For a web page, what sort of variables are stored in page map to hold its state when user moved from that page to another? Like class variables, final variables would be getting saved. Other than those, if we define a variable or any component in its constructor, what happens to such variables when one moved to another page? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-sort-of-page-variables-are-stored-in-page-map-tp4651460.html Sent from the Users forum 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: AjaxRequestTarget.addComponent(..); not refreshing the component in safari
Hi, Which version of Wicket do you use ? Better use Wicket 6.0.0-beta3 or even 6.0-SNAPSHOT. Isn't there a newer version of Safari ? I think there is. If nothing from above makes it working then please create a quickstart and attach it to a ticket in Jira (http://wicket.apache.org/start/quickstart.html) On Thu, Aug 23, 2012 at 12:44 PM, nav1st wrote: > Hi all, I am new to wicket, need your help. > I have a form with 3-4 panels. and have a AjaxSubmitLink on a panel, on its > submission, I simply hide and show the paenls using > RequestTarget.addCompont(Component), but its just not working in safari > 5.1.4, however, its working fine in IE7,8,9, Firefox > please help > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-addComponent-not-refreshing-the-component-in-safari-tp4651456.html > Sent from the Users forum 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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxRequestTarget.addComponent(..); not refreshing the component in safari
Hi all, I am new to wicket, need your help. I have a form with 3-4 panels. and have a AjaxSubmitLink on a panel, on its submission, I simply hide and show the paenls using RequestTarget.addCompont(Component), but its just not working in safari 5.1.4, however, its working fine in IE7,8,9, Firefox please help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-addComponent-not-refreshing-the-component-in-safari-tp4651456.html Sent from the Users forum 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
after migration to 1.5 I get "java.lang.IllegalStateException: Header was already written to response!"
Hi, we've recently migrated form wicket 1.4 to 1.5 and we started getting this weird exception. Any idea what might be the problem? Below details from our bug report tool. We could not reporduce it, this is just logs from production. Time: 09/08/2012 12:34:48 Additional information: logged user: - Detailed stack trace below: java.lang.IllegalStateException: Header was already written to response! at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.checkHeader(HeaderBufferingWebResponse.java:64) at org.apache.wicket.protocol.http.HeaderBufferingWebResponse.sendRedirect(HeaderBufferingWebResponse.java:112) at org.apache.wicket.request.handler.render.WebPageRenderer.redirectTo(WebPageRenderer.java:136) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:214) at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:304) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:227) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:973) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:907) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:346) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:924) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:619) - WebRequest stack: Parameters: (size: 2) 4-1.IBehaviorListener.1-editor-tabbed-panel-invoiceCosts-form-table-body-rows-98-cells-10-cell-link - random - 0.49670583384351424 Locale: pl Path: wicket/page?4-1.IBehaviorListener.1-editor-tabbed-panel-invoiceCosts-form-table-body-rows-98-cells-10-cell-link&random=0.49670583384351424 Is ajax: true Headers: Cookie - Host - Accept - text/xml wicket-ajax-baseurl - wicket/page?4 X-Forwarded-For - wicket-focusedelementid - idb5e wicket-ajax - true X-Forwarded-Server - Accept-Language - pl User-Agent - Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.3; .NET CLR 1.0.3705; .NET CLR 1.1.4322