Re: Wicket free guide updated.
Hi, is ths under open source? Are you looking for contributors? On Mon, Apr 8, 2013 at 11:42 AM, Andrea Del Bene an.delb...@gmail.comwrote: Hi, I bother you just to tell that I released an updated version of the guide with some typo corrections and two small additions. http://code.google.com/p/**wicket-guide/http://code.google.com/p/wicket-guide/ Bye! :) --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: after migration to 1.5 I get java.lang.IllegalStateException: Header was already written to response!
Wow! Thank you very much for the response, I will try it right away. On Wed, Jan 16, 2013 at 2:47 AM, Barrett Snyder barret...@gmail.com wrote: I had this same issue and tracked it down to IE9. In my case IE9 was first requesting a page in Quirks mode and then midway through requesting resources it would switch to standards mode which caused it to abort all currently active requests and request all resources again. The aborted requests were sometimes for wicket served resources like wicket-ajax-jquery.js which caused wicket to log the referenced stack. Adding a header with x-ua-compatible set to IE=9 fixed the issue by making sure IE9 starts in standards mode. On Fri, Aug 24, 2012 at 6:11 AM, dpmihai dpmi...@yahoo.com wrote: We also have this problem after migrating to 1.5. Everything seems to work ok, but the logs get full with this error. We did not find a solution to this. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/after-migration-to-1-5-I-get-java-lang-IllegalStateException-Header-was-already-written-to-response-tp4651455p4651475.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: Twitter Bootstrap in Wicket
check this out: https://github.com/decebals/wicket-bootstrap On Fri, Oct 12, 2012 at 8:37 AM, Cedric Gatay gata...@gmail.com wrote: I guess you're talking about the first conditional comments in the markup of HTML5 Boilerplate ( https://github.com/h5bp/html5-boilerplate/blob/master/index.html). Am I right ? __ Cedric Gatay http://www.bloggure.info | http://cedric.gatay.fr | @Cedric_Gatayhttp://twitter.com/Cedric_Gatay On Fri, Oct 12, 2012 at 6:31 AM, Martin Grigorov mgrigo...@apache.org wrote: On Fri, Oct 12, 2012 at 5:14 AM, Bruno Borges bruno.bor...@gmail.com wrote: You have to remove though some of the CSS IE conditionals from Twitter bootstrap. They are still not correctly processed by Wicket. :-( No one else had such complaints so far. Me included. *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Thu, Oct 11, 2012 at 11:08 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible/feasible to 'selectively' use the Twitter bootstrap in a wicket app? Scenario: our app serves many different clients. Some will want the Twitter Bootstrap look and feel but others will be happy to use any number of existing CSS/JS templates that we have created for them over the years. Currently we use a combination of Wicket variations and conditional header injection to provide different look and feel for customers even though they all use the same Wicket page classes. Is it possible to use Twitter Bootstrap in the same way? i.e. conditionally use it when rendering a page for one customer but not using it when rendering that same page class for another customer? It sounds like you already have the system for this built. Bootstrap is just HTML and CSS, so keep doing what you were with the variations and different header contributions. Is there something else that you need? Probably not. I guess because it's purely HTML and CSS then it should fit in nicely with our existing HTML/CSS selection code. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* - 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
Re: [Announce] wicket-dashboard
Is it already on respository? If yes then I will play with it a bit and let you know. Paul Szulc On Fri, Oct 5, 2012 at 5:34 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I divided the project in modules and sub-modules: - core - demo - widgets (repository for widgets: ofchart - open flash chart and loremipsum - for test only) Also I found a DI solution relative smooth. My solution is based on these entities: DashboardContext, DashboardContextAware, DashboardContextInjector. DashboardContext give me all information about (or access to) WidgetFactory, WidgetRegistry, DashboardPersiter. Any wicket component can implemnents DashboardContextAware (that contains only a method setDashboardContext(DashboardContext dashboardContext)). And finally DashboardContextInjector that implements IComponentInstantiationListener and injects DashboardContext in wicket components that are dashboard context aware. In your application (see WicketApplication from demo package) in init method you can add some codes: // dashboard settings DashboardContextInjector dashboardConextInjector = new DashboardContextInjector(); DashboardContext dashboardContext = dashboardConextInjector.getDashboardContext(); WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry(); widgetRegistry.registerWidget(new LoremIpsumWidgetDescriptor()); widgetRegistry.registerWidget(new ChartWidgetDescriptor()); getComponentInstantiationListeners().add(dashboardConextInjector); With this solution you can define the dashboard context as spring bean, with all needed widgets and do something like this in WicketApplication: @SpringBean private DashbaordContext dashboardContext; public void init() { ... getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext)); } See you any inconvenience with this approach? Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652706.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: [Announce] wicket-dashboard
If we dont want to add any specific DI implementation, and Dashboard depends on DashboardPersister, WidgetFactory, WidgetRegistry then I guess there are two ways we can do here: 1. constructor Dashboard constructor will take DashboardPersister, WidgetFactory, WidgetRegistry as parameters. Or we can create DashboardDependeciesBuilder that takes DashboardPersister, WidgetFactory, WidgetRegistry as parameter, with one method build(String wicketId) that creates Dashboard - this way we could add DashboardDepdenciesBuilder to our CI and use it later on to create Dashboard. Something like this: @SpringBean private DashboarDepenciesBuilder ddb; //... add(ddb.build(dashboard)); 2. interface implemtation on WicketApplication object This will suck becasue it will make tests almost imposible,but we could define interface that clients project's WicketApplication would have to implement (lets call it for example DashboardDepenciesProvider). Then in your code you could do something like this: checkState(WicketApplication.get() instantce of DashboardDepenciesProvider, WicketApplication must implements DashboardDepenciesProvider); DashboardDepenciesProvider ddp = (DashboardDepenciesProvider)WicketApplication.get(); ddp.getDashboardPersister() // and so on Paul Szulc On Tue, Oct 2, 2012 at 10:37 AM, Decebal Suiu decebal.s...@asf.ro wrote: Hi Paul Thanks for the feedback. I will split the project in modules asap. In my mind are some problems related to modularity that cannot be resolved so easy: how can I inject some components (DashboardPersister, WidgetFactory, WidgetRegistry) in wicket-dashboard? Now these components are singletons defined in DashboardApplication (demo package). In a real application (NextReports server for example), you may want to inject these components using a DI framework (spring framework in our case) and probably you want to save the dashboard layout in a database or jcr. Other problem is to add custom actions to widget header panel as contributors. Sure, the first step will be to split the project in core, demo, standard widgets and after this step to resolve the problems described above. Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652595.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: [Announce] wicket-dashboard
Hi, I will be adding your dashboard to one of my projects - this is a matter of weeks (customer is really, really excited ;)). I have some suggestions, I would divide the project into seperate modules: - wicket-dashboard-core: module with dashboard itself, simply juest the component and needed interfaces (jar as an output) - wicket-dashboard-widgets: module were some standard widgets would be implemented (jar as an output) - wicket-dashboard-demo: module with demo useage (war as an output) This way to use dashboard one must simply add wicket-dashboard-core as dependency. He can now develop his own widgets or use standard widgets. To use standard widgets, he must also add wicket-dashboard-widgets as dependency to his project. What do you think about it? Paul Szulc On Mon, Oct 1, 2012 at 10:29 AM, Decebal Suiu decebal.s...@asf.ro wrote: Hi Thanks Paul for the nice words. wicket-dashboard code is used in production in NextReports server (see http://apache-wicket.1842946.n4.nabble.com/How-to-create-a-dashboard-with-draggable-widgets-tp4652210p4652218.html ) but with some additional features (multiple dashboards, detached widgets, ...). If you have any questions, ideas or suggestions, please do not hesitate to contact me. Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652565.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: [Announce] wicket-dashboard
ok, I was using my own internal repo, that is why it did not work now all is fine, dashboard look pretty damn cool, I will love to use it in one of my applications. did you used it on any production code yet? best regards pawel szulc On Tue, Sep 25, 2012 at 8:35 PM, Gabriel Landon glan...@piti.pf wrote: If you look in the pom.xml, you will find the repo : repository idjofc2.maven.repo/id nameJOFC2 GoogleCode.com Snapshot Repository/name urlhttp://jofc2.googlecode.com/svn/repository/snapshots/ /url /repository -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308p4652343.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: [Announce] wicket-dashboard
Tried to run it but stopped on dependcy jofc2 which is not in maven repo I found jar on http://code.google.com/p/jofc2/downloads/list but current release is 1.0, yet your code depends on 1.0.1. On Tue, Sep 25, 2012 at 2:52 PM, Pierre Goupil goupilpie...@gmail.comwrote: It looks nice, indeed! Are there any plans for a Wicket 6 version? Regards, Pierre On Tue, Sep 25, 2012 at 2:25 PM, Sebastien seb...@gmail.com wrote: https://github.com/decebals/wicket-dashboard (small typo in your previous mail :) Nice job indeed, I will probably use it! :) Best regards, Sebastien. On Tue, Sep 25, 2012 at 2:16 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I implemented a simple dashboard for wicket that can be found at https://github.com/decebals/wicket-dashbaord You can drag and drop widgets, perform some actions on each widget, add or remove new widgets, change widget settings, collapse widgets. I have a tiny demo application. In this demo I have implemented two widgets types: a chart widget (using open flash chart) and a text widget (display a Lorem Ipsum). Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308.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 -- Le bonheur n'est pas une destination, mais une façon de voyager. Papa d'une petite Lou-Ann depuis le 30 juin.
Re: [Announce] wicket-dashboard
I tried to run it with 1.0-0 version which is currently available, but I got compile error. Can you point to jar that your project currently depends on (or send it to me by email?). On Tue, Sep 25, 2012 at 7:47 PM, Paul Szulc paul.sz...@gmail.com wrote: Tried to run it but stopped on dependcy jofc2 which is not in maven repo I found jar on http://code.google.com/p/jofc2/downloads/list but current release is 1.0, yet your code depends on 1.0.1. On Tue, Sep 25, 2012 at 2:52 PM, Pierre Goupil goupilpie...@gmail.comwrote: It looks nice, indeed! Are there any plans for a Wicket 6 version? Regards, Pierre On Tue, Sep 25, 2012 at 2:25 PM, Sebastien seb...@gmail.com wrote: https://github.com/decebals/wicket-dashboard (small typo in your previous mail :) Nice job indeed, I will probably use it! :) Best regards, Sebastien. On Tue, Sep 25, 2012 at 2:16 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I implemented a simple dashboard for wicket that can be found at https://github.com/decebals/wicket-dashbaord You can drag and drop widgets, perform some actions on each widget, add or remove new widgets, change widget settings, collapse widgets. I have a tiny demo application. In this demo I have implemented two widgets types: a chart widget (using open flash chart) and a text widget (display a Lorem Ipsum). Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-dashboard-tp4652308.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 -- Le bonheur n'est pas une destination, mais une façon de voyager. Papa d'une petite Lou-Ann depuis le 30 juin.
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-linkrandom=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
running visural wicket with wicket 1.5
Ok, for some of you very simple question but even with this https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-HeaderContribution I can not get Visural Wicket running on Wicket 1.5.6 For Wicket 1.4 I was doing something like this public class Application extends WebApplication { public Application() { addRenderHeadListener(JavascriptPackageResource.getHeaderContribution(new JQueryResourceReference())); } and hurray visural-with was up and running. What should I do in 1.5 to use it without pain? :) Paul Szulc
Re: running visural wicket with wicket 1.5
thank you!!! no I feel kinda dumb... On Thu, May 10, 2012 at 3:51 PM, Martin Grigorov mgrigo...@apache.orgwrote: app.getHeaderContributorListenerCollection().add(new IHeaderContributor() { @Override public void renderHead(IHeaderResponse response) { response.renderJavaScriptReference(new JQueryResourceReference()); } }) On Thu, May 10, 2012 at 4:37 PM, Paul Szulc paul.sz...@gmail.com wrote: Ok, for some of you very simple question but even with this https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-HeaderContribution I can not get Visural Wicket running on Wicket 1.5.6 For Wicket 1.4 I was doing something like this public class Application extends WebApplication { public Application() { addRenderHeadListener(JavascriptPackageResource.getHeaderContribution(new JQueryResourceReference())); } and hurray visural-with was up and running. What should I do in 1.5 to use it without pain? :) Paul Szulc -- 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 -- Best regards, Paul Szulc http://www.paulszulc.com
AjaxRequestTarget on page open
This is going to be a lame question :) but I need help with this one. I have DialogWindow (from visural-wicket library) that can be opened using AjaxRequestTarget, below example that opens that dialog when ajax link is clicked add(new IndicatingAjaxLink(addCostUp) { @Override public void onClick(AjaxRequestTarget target) { addCostDialog.open(target); } }); Is there a way to open that dialog when page is opened? You know, someone is entering a page and dialog pops out? To open that dialog I need AjaxRequestTarget. Is there a way to make page request ajax call just right after the page was loaded? Paul Szulc
Re: AjaxRequestTarget on page open
Ok, I got the working solution add(new AbstractAjaxTimerBehavior(Duration.seconds(1)) { @Override protected void onTimer(AjaxRequestTarget target) { System.out.println(--- ajax); stop(); } }); On Sat, Nov 26, 2011 at 11:50 AM, Paul Szulc paul.sz...@gmail.com wrote: This is going to be a lame question :) but I need help with this one. I have DialogWindow (from visural-wicket library) that can be opened using AjaxRequestTarget, below example that opens that dialog when ajax link is clicked add(new IndicatingAjaxLink(addCostUp) { @Override public void onClick(AjaxRequestTarget target) { addCostDialog.open(target); } }); Is there a way to open that dialog when page is opened? You know, someone is entering a page and dialog pops out? To open that dialog I need AjaxRequestTarget. Is there a way to make page request ajax call just right after the page was loaded? Paul Szulc -- Best regards, Paul Szulc http://www.paulszulc.com
Re: reverse engineering a wicket application
When jetty start it will output something like this on console: [INFO] Started Jetty Server 2011-10-26 09:05:03.042:INFO::Started SelectChannelConnector@0.0.0.0:7070 [INFO] Starting scanner at interval of 10 seconds. SelectChannelConnector@0.0.0.0:7070 shows you port number, in this case it is 7070 Now go to http://localhost:7070 and jetty will show you links to all deployed applications. Paul On Mon, Oct 24, 2011 at 10:22 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Get your IDE and open up the hierarchy for WebPage. From there you can see all pages in your application. Martijn On Mon, Oct 24, 2011 at 5:32 PM, roncking ronck...@gmail.com wrote: Hi , I found an 'abandoned' wicket project that I want to use, but I don't know how to determine what urls are valid to access it from my jetty instance. I built it with no errors, and I can start the jetty server, but I don't know what url to use to access it. For example, I assume it would be of the form http://localhost:8080/something. I don't know how to determine what the value 'something' might be. Is there a configuration file or entry that I can look at to figure out what to enter for a url? Regards, Ron -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/reverse-engineering-a-wicket-application-tp3933538p3933538.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://www.paulszulc.com
Re: wicket + jasper reports
) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216) Could you tell me if there is some way this differs from how you (or your contractor) are doing it? Thanks, -- Jim. On Tue, Oct 18, 2011 at 3:58 AM, Paul Szulc paul.sz...@gmail.com wrote: yeah, ok, my bad resources where under src/main/resource not src/main/resource*s* * * thx Tor -- Best regards, Paul Szulc http://www.paulszulc.com
wicket + jasper reports
Hi, my recent webapp is supposed to generate PDF reports. Because I don't know much about JasperReports, I've outsourced the functionality to a freelancer. He created separate module (jar) that provides desired functionality. Part of maven structure of my project looks like this: - ngo | ngo.pdf | src | resources | DOCOferta.jrxml | ngo.webapp where ngo.pdf is this outsourced functionality and ngo.webapp is Wicket webapplication. Now the problem. Freelancer created this piece of code: public InputStream generate() throws GenerationException { MapString, Object parameters = new HashMapString, Object(); // here parameters JRProperties.setProperty(net.sf.jasperreports.default.pdf.encoding, UTF8); try { URL resource = getClass().getClassLoader().getResource(DOCOferta.jrxml); InputStream inputStream = resource.openStream(); JasperDesign design = JRXmlLoader.load(inputStream); This code works great when run in tests of ngo.pdf but when I try to run generate() method from Wicket (as part of ResourceLink) I get NullPointerException at InputStream inputStream = resource.openStream(); So I get that that the resource DOCOferta.jrxml is not found. But the question remains, how to get this work? What should I do to achieve this result: - generate() will not throw NPE, it will generate pdf report [A MUST :)] - all resources needed to create PDF (all the *.jrxml files) stay inside inside ngo.pdf jar (inside the resource folder) [DESIRABLE] I will appreciate any form of help. Best regards, Paul Szulc
Re: wicket + jasper reports
Ok, to clarify: 1. DOCOferta.jrxml lies inside ngo.pdf module folder src/main/resources 2. When I run generate method inside of ngo.pdf modules all works fine, but when I try to use it in webapplication (separate, differnet maven module) I get this NPE. I know the issue is because probably different classloader is used then the one it should, but I do not know how to fix this issue. 3. In other words, application is not able to get to resources defined in different module (different jar). On Tue, Oct 18, 2011 at 9:41 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: URL resource = getClass().getClassLoader().getResource(DOCOferta.jrxml); An aside: This is the equivalent to getClass().getResource(/DOCOferta.jrxml); i.e. a resource on the classpath root. Check your projects to see if the file is in the correct location to be included at runtime. If it works in tests but not otherwise, it can seem that the file is located in a project's src/test/resources (if you use Maven) instead of src/main/resources. - Tor Iver -- Best regards, Paul Szulc http://www.paulszulc.com
Re: wicket + jasper reports
yeah, ok, my bad resources where under src/main/resource not src/main/resource*s* * * thx Tor
Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+
cool! this is definitely not off topic :) On Tue, Nov 30, 2010 at 8:27 PM, Minas Manthos minas.mant...@gmail.comwrote: WicketForge 0.8.1 is available for download. -Facet detection implemented -Highlight Wicket components -... full change notes http://plugins.intellij.net/plugin/?id=1545 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/OT-Plugin-WicketForge-0-8-1-available-for-IDEA-9-tp3066018p3066018.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 -- Best regards, Paul Szulc http://www.paulszulc.com
Re: visural-wicket 0.6.5 released!
maven repo is not working On Thu, Nov 25, 2010 at 9:19 PM, Richard Nichols r...@visural.com wrote: Thanks for all the positive comments :) If anyone has any suggestions / ideas for the next release (0.7) then let me know. Currently the only things on the RoadMap, are Wicket 1.5 support and some refactoring on the DropDown control (which has become a bit of a maintenance time-sink). cheers, RIch On Fri, Nov 26, 2010 at 6:19 AM, Mark Doyle markjohndo...@googlemail.com wrote: Great library. I always expected more of these since component creation and reuse is one of Wickets a key strengths. What I like about this lib is it's clean and finished. There is no feeling of immaturity or of a project that has died off. On Thu, Nov 25, 2010 at 2:02 PM, alex shubert alex.shub...@gmail.com wrote: I must ask it: why did you make such fat header at your page? Did you every try to take a look at this in 1600*900 notebook screen? All you writings begins in bottom second part of the screen. It is not my busenees of course, but why dont you kill that nice picture and resize header to just contain pragmatic without strong empty white line? Ah, forget it. At least you did not add banner on the top of all of that :) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Richard Nichols http://www.richardnichols.net/ :: http://onmydoorstep.com.au/ -- Best regards, Paul Szulc http://www.paulszulc.com
Re: Remove support for Portlets in Wicket 1.5
-1 On Wed, Aug 11, 2010 at 8:35 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976 ) to remove the support for Portlets in Wicket 1.5. It is currently broken because of the re-work of WicketFilter and request processing. Since none of the active core developers use this technology in his daily job it is hard for us to support it. Now is the time to vote against this decision and give us a hand to improve it or just silently agree. martin-g P.S. I sent this email earlier today but for some reason it was rejected. Excuse me if you receive it for second time. -- Best regards, Paul Szulc http://www.paulszulc..com
localizing resources
Can we localize resources in Wicket? I mean imagine I have multiple-language application and this application has a logo image. I have pl_logo.ong en_logo.png es_logo.png and so on. And now I want to define my image in markup once and in controller one, and let wicket to decided which resource (which logo) is to be shown (depending on users language). Does wicket already has this sort of functionality or do I have to implement it myself? -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: localizing resources
ok, thx! On Thu, Jul 15, 2010 at 12:23 PM, Martin Grigorov mcgreg...@e-card.bgwrote: name it logo_en.png, logo_es.png, ... then just set the Session locale after login: if (loginOk) { session.setLocale(user.getLocale()) ... } see also Session#setStyle(). On Thu, 2010-07-15 at 11:58 +0200, Paul Szulc wrote: Can we localize resources in Wicket? I mean imagine I have multiple-language application and this application has a logo image. I have pl_logo.ong en_logo.png es_logo.png and so on. And now I want to define my image in markup once and in controller one, and let wicket to decided which resource (which logo) is to be shown (depending on users language). Does wicket already has this sort of functionality or do I have to implement it myself? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Announcing: visural-wicket 0.6 released - open source wicket components
If you would like to, I can elp you create maven repository on google code for this project. Let me know. On Wed, Jun 23, 2010 at 1:05 PM, Richard Nichols r...@visural.com wrote: It's just hosted in SVN w/ .pom http://code.google.com/p/visural-wicket/wiki/MavenSupport http://code.google.com/p/visural-wicket/wiki/MavenSupportIt should work ok though - let me know if you have issues. cheers, Richard. On 23 June 2010 20:24, Maris Orbidans maris.orbid...@ingg.com wrote: Looks great! I will give it a try. Is it maven repo ? -Original Message- From: r...@richardnichols.net [mailto:r...@richardnichols.net] On Behalf Of Richard Nichols Sent: 23 June 2010 01:31 To: users@wicket.apache.org Subject: Announcing: visural-wicket 0.6 released - open source wicket components Hi all, I'm pleased to announce the next major version of visural-wicket - 0.6 This version includes a bunch of new components and behaviours. For the full run down, follow the link - http://www.richardnichols.net/2010/06/visural-wicket-0-6-released-new- components/ visural-wicket is Apache 2.0 licensed open source. Let me know if you have any problems, suggestions or feedback. cheers, Richard. -- Richard Nichols http://www.richardnichols.net/ :: http://onmydoorstep.com.au/ _ This e-mail has been scanned for viruses by MessageLabs. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Richard Nichols http://www.richardnichols.net/ :: http://onmydoorstep.com.au/ -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: [announce] Wicket Security 1.4 released!
true, some kind of quick start could be useful On Mon, May 31, 2010 at 8:00 PM, Joe Fawzy joewic...@gmail.com wrote: Hi i heard a lot about this project but have no opportunity to play with it i think a (detailed) tutorial or a getting start guide is required(for someone like me) to begin using this any pointers? thanks Joe On Mon, May 31, 2010 at 5:07 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: We are proud to release Wicket Security 1.4 final. Wicket Security is an attempt to create an out of the box reusable authenticating and authorization framework for Apache Wicket. It contains several projects which can be used standalone or in conjunction with each other. After testing the codebase for a while we did not find any issues. Differences between the 1.4-rc1 release: - upgraded dependencies to newest working versions (JUnit 4.x does not work with Spring) - versioned maven plugins to appease the Maven 3 gods. Many thanks go to Olger Warnier for the initial port of Wicket Security to Wicket 1.4. The release is available from the usual Wicket Stuff maven repository: http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security If you already depend on Wicket Security, all you need to do is modify the version of your dependencies in your Maven poms: repository idwicketstuff/id urlhttp://wicketstuff.org/maven/repository/url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /repository dependency groupIdorg.apache.wicket.wicket-security/groupId artifactIdswarm/artifactId version1.4/version scopecompile/scope /dependency Note that with future releases we will move to a new groupId and package name (since org.apache.wicket is reserved for Apache Wicket, and not 3rd party projects). The future of the Wicket Security project is to remain a standalone project (it will not be adopted by Apache Wicket), and will continue to be maintained by Topicus. If you wish to join please let us know! Emond Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: BookmarkablePageLinks using relative vs absolute paths
one think I dont understand. you said thhat you've changed the root to / instead of /wicketpages, but later on you said that /myservlet should redirect to /wicketpages/about. On Mon, May 31, 2010 at 4:34 AM, Chris Colman chr...@stepaheadsoftware.comwrote: Our web application uses wicket with an assortment of utility servlets that we use to service requests with specific paths. In order to use forwarding instead of redirecting we recently, as suggested on this list, switched our wicket app filter to use the /* (root) context instead of the the more specific context that we used to use eg., /wicketpages. This has enabled us to overcome many problems we were having with our collection of wicket/raw servlets. We now have another issue: A servlet with a pattern, say /myservlet needs to do a forward to a path whose response is produced by a wicket mounted BookmarkablePage, let's say /wicketpages/home. This all works fine except when we click on a BookmarkablePageLinkS created in that page (eg., /wicketpages/contact, /wicketpages/aboutus etc). Instead of the URL pointing to eg., /wicketpages/aboutus it points to /myservlet/wicketpages/aboutus Which obviously fails because our wicket BookmarkablePages are mounted at paths like /wicketpages/aboutus not /myservlet/wicketpages/aboutus. Is there a way to tell wicket that the context is something different to what it is and so form a correct 'relative' URL? If I could fool wicket into thinking that the context path is root / then that would work I would think. The problem is not limited to BookmarkablePageLinks - all AJAX behaviours also fail as well when the /myservlet page is accessed but work fine when the page is accessed via /wicketpages/home. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Jetty, HSQLDB and automatic scanning
other solution would be to use embedded HSQL, if you want to know how checkout http://code.google.com/p/wicketcool/, generate project using it, and check jdbc.properties in domain module. good luck On Thu, May 27, 2010 at 11:22 PM, Peter Ertl pe...@gmx.org wrote: maybe you should properly shutdown hsqldb in Application#onDestroy() ... Am 27.05.2010 um 19:00 schrieb Igor Vaynberg: you can add a servlet context listener that looks for the lock file and nukes it. alternatively you can use the Start class that comes with wicket quickstart archetype/project that does what mvn jetty:run but with the added benefit of allowing hotswapping, and in that class you can add the code to nuke the lock file. -igor On Thu, May 27, 2010 at 9:57 AM, Jakub Skoczen skoc...@gmail.com wrote: Hi Everyone, First of all - this question is not directly concerned with Wicket, sorry for that. But, I did came across this problem when developing a small Wicket web app, so I thought someone else here may have had a similar issue. So here it is: I got tired with the slow write/compile/deploy process and I switched to using jetty:run (with scanning interval set to 10s) and incrementally compiling the classes. Unfortunately, right after jetty detects changes to the compiled class and tries to redeploy the app I get the following HSQLDB exception: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.niolockf...@7c137657[...] is presumably locked by another process. HSQLDB is run using the in-process mode and the following exception is thrown both when using memory and file backend. It obviously looks like HSQLDB is not releasing the lock during the auto redeployment, maybe Jetty is locking up the thread somehow? Anyways, any ideas will be greatly appreciated. -- Cheers, Jakub - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Jetty, HSQLDB and automatic scanning
Hmm wicket-cool generates project that uses embedded hsql as database and uses it for test in all modules (domain, service and webapplication) as well as for jetty:run deployment. I do not have problems you are speaking of so you might as well just try it. Here is what I did: jdbc.properties file looks like this: # connection driver=org.hsqldb.jdbcDriver changeLogFile=dbchangelogs/db.changelog.xml url=jdbc:hsqldb:file:hsqldbs/test.db;shutdown=true datasource.url=jdbc:hsqldb:file:../hsqldbs/test.db;shutdown=true username=sa password= # hibernate and jpa configuration hibernate.generate_statistics = true jpa.showSql = true jpa.database = HSQL and application context like this: bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource p:driverClassName=${driver} p:url=${datasource.url}/ bean id=transactionManager class=org.springframework.orm.jpa.JpaTransactionManager p:entityManagerFactory-ref=entityManagerFactory/ bean id=entityManagerFactory class=org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean p:dataSource-ref=dataSource p:jpaVendorAdapter-ref=jpaAdapter property name=loadTimeWeaver bean class=org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver/ /property property name=persistenceUnitName value=wctemplatePU/property /bean bean id=jpaAdapter class=org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter p:database=${jpa.database} p:showSql=${jpa.showSql}/ On Fri, May 28, 2010 at 10:48 AM, Jakub Skoczen ja...@indexdata.dk wrote: Well, I'm using an embedded (in-process) HSQL, that's the very reason I get this error. Is wicket-cool addressing this particular issue in some way? On Fri, May 28, 2010 at 9:54 AM, Paul Szulc paul.sz...@gmail.com wrote: other solution would be to use embedded HSQL, if you want to know how checkout http://code.google.com/p/wicketcool/, generate project using it, and check jdbc.properties in domain module. good luck On Thu, May 27, 2010 at 11:22 PM, Peter Ertl pe...@gmx.org wrote: maybe you should properly shutdown hsqldb in Application#onDestroy() ... Am 27.05.2010 um 19:00 schrieb Igor Vaynberg: you can add a servlet context listener that looks for the lock file and nukes it. alternatively you can use the Start class that comes with wicket quickstart archetype/project that does what mvn jetty:run but with the added benefit of allowing hotswapping, and in that class you can add the code to nuke the lock file. -igor On Thu, May 27, 2010 at 9:57 AM, Jakub Skoczen skoc...@gmail.com wrote: Hi Everyone, First of all - this question is not directly concerned with Wicket, sorry for that. But, I did came across this problem when developing a small Wicket web app, so I thought someone else here may have had a similar issue. So here it is: I got tired with the slow write/compile/deploy process and I switched to using jetty:run (with scanning interval set to 10s) and incrementally compiling the classes. Unfortunately, right after jetty detects changes to the compiled class and tries to redeploy the app I get the following HSQLDB exception: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.niolockf...@7c137657[...] is presumably locked by another process. HSQLDB is run using the in-process mode and the following exception is thrown both when using memory and file backend. It obviously looks like HSQLDB is not releasing the lock during the auto redeployment, maybe Jetty is locking up the thread somehow? Anyways, any ideas will be greatly appreciated. -- Cheers, Jakub - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com -- Cheers, Jakub - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Jetty, HSQLDB and automatic scanning
maybe you lack of shutdown=true ? shutdown=true shuts when connections are closed On Fri, May 28, 2010 at 10:53 AM, Jakub Skoczen skoc...@gmail.com wrote: (sorry if that gotten reposted, I mistakenly used a different email address that may have not been registered with the ML) On Thu, May 27, 2010 at 7:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can add a servlet context listener that looks for the lock file and nukes it. I had a similar idea for a while but hoped for a cleaner approach. Anyways after reading through the docs it looks like HSQLDB is using the standard Java lock file that gets released when the JVM exits, hence the issue. Nevertheless, you can force it to remove the lock by issuing SQL SHUTDOWN command to the DB. Now I'm trying to introduce that in some unobtrusive way - I hit the DB via Hibernate - maybe subclassing the DataSource would work. I'll see what I can come up with and report back. alternatively you can use the Start class that comes with wicket quickstart archetype/project that does what mvn jetty:run but with the added benefit of allowing hotswapping, and in that class you can add the code to nuke the lock file. -igor On Thu, May 27, 2010 at 9:57 AM, Jakub Skoczen skoc...@gmail.com wrote: Hi Everyone, First of all - this question is not directly concerned with Wicket, sorry for that. But, I did came across this problem when developing a small Wicket web app, so I thought someone else here may have had a similar issue. So here it is: I got tired with the slow write/compile/deploy process and I switched to using jetty:run (with scanning interval set to 10s) and incrementally compiling the classes. Unfortunately, right after jetty detects changes to the compiled class and tries to redeploy the app I get the following HSQLDB exception: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.niolockf...@7c137657[...] is presumably locked by another process. HSQLDB is run using the in-process mode and the following exception is thrown both when using memory and file backend. It obviously looks like HSQLDB is not releasing the lock during the auto redeployment, maybe Jetty is locking up the thread somehow? Anyways, any ideas will be greatly appreciated. -- Cheers, Jakub - 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 -- Cheers, Jakub - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Jetty, HSQLDB and automatic scanning
cool On Fri, May 28, 2010 at 11:49 AM, Jakub Skoczen skoc...@gmail.com wrote: I found that (here: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1114) exactly ten minutes ago and was just about to post back here :) . What's important - it works, so my connection string looks like this: jdbc:hsqldb:file:temp_db;shutdown=true Thanks for all the ideas! On Fri, May 28, 2010 at 11:07 AM, Paul Szulc paul.sz...@gmail.com wrote: maybe you lack of shutdown=true ? shutdown=true shuts when connections are closed On Fri, May 28, 2010 at 10:53 AM, Jakub Skoczen skoc...@gmail.com wrote: (sorry if that gotten reposted, I mistakenly used a different email address that may have not been registered with the ML) On Thu, May 27, 2010 at 7:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can add a servlet context listener that looks for the lock file and nukes it. I had a similar idea for a while but hoped for a cleaner approach. Anyways after reading through the docs it looks like HSQLDB is using the standard Java lock file that gets released when the JVM exits, hence the issue. Nevertheless, you can force it to remove the lock by issuing SQL SHUTDOWN command to the DB. Now I'm trying to introduce that in some unobtrusive way - I hit the DB via Hibernate - maybe subclassing the DataSource would work. I'll see what I can come up with and report back. alternatively you can use the Start class that comes with wicket quickstart archetype/project that does what mvn jetty:run but with the added benefit of allowing hotswapping, and in that class you can add the code to nuke the lock file. -igor On Thu, May 27, 2010 at 9:57 AM, Jakub Skoczen skoc...@gmail.com wrote: Hi Everyone, First of all - this question is not directly concerned with Wicket, sorry for that. But, I did came across this problem when developing a small Wicket web app, so I thought someone else here may have had a similar issue. So here it is: I got tired with the slow write/compile/deploy process and I switched to using jetty:run (with scanning interval set to 10s) and incrementally compiling the classes. Unfortunately, right after jetty detects changes to the compiled class and tries to redeploy the app I get the following HSQLDB exception: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.niolockf...@7c137657[...] is presumably locked by another process. HSQLDB is run using the in-process mode and the following exception is thrown both when using memory and file backend. It obviously looks like HSQLDB is not releasing the lock during the auto redeployment, maybe Jetty is locking up the thread somehow? Anyways, any ideas will be greatly appreciated. -- Cheers, Jakub - 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 -- Cheers, Jakub - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com -- Cheers, Jakub - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Rich Text Editors and Wicket
The one I know is from Visural project http://visural-wicket-examples.appspot.com/app/rich-text-editor It is already defined Wicket component On Fri, May 28, 2010 at 11:21 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Does anyone have experience with using Rich Text Editors in Wicket? Javascript editors I am aware of are: FckEditor CkEditor TinyMCE Anyone integrated these with wicket? Any advice or opinions? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: wicket 1.4.6 released
so fast! :) On Mon, Feb 1, 2010 at 7:44 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: Wicket 1.4.6 is released! This is the sixths maintenance release of 1.4.x series and brings over 40 bug fixes and improvements. tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.6/ maven: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.4.6/version /dependency download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.6 changelog: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=prioritypid=12310561fixfor=12314470 cheers, -igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Problem using EnhancedWicketTester form submit
Hi Roger, Enhanced Wickt tester is not official part of Wicket. If you send me piece of the code, I can have a look at it and see what's wrong. From test point of view everything looks fine. Catch me here or on my private mail. -- Best regards, Paul Szulc http://paulszulc.wordpress.com On Mon, Feb 1, 2010 at 10:51 PM, roger.b...@creoss.com roger.b...@creoss.com wrote: The following code for testing login will fail at the last assert statement ( tester.assertRenderedPage(Dashboard.class);). The action works fine on the actual web pages but not using this test. What is missing or mis configured protected void loginPageEnhanced () { System.out.println(Login Page Test); EnhancedWicketTester enhanced = new EnhancedWicketTester(tester); tester.startPage(SignInPage.class); tester.assertNoErrorMessage(); tester.assertNoInfoMessage(); enhanced.assertEnabled(content:content:signInForm); enhanced.form(content:content:signInForm) .setTextFieldValue(username, erm) .setPasswordTextFieldValue(password, erm) .submitWithButton(submit); tester.assertNoErrorMessage(); tester.assertNoInfoMessage(); System.out.println(Last Rendered Page AFTER LOGIN SUBMIT \n\n+tester.getLastRenderedPage().getAssociatedMarkupStream(false).toString()); tester.assertRenderedPage(Dashboard.class); } Roger Ball - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: testing autocomplete with WicketTester
I think you can explicitly tell in your tests to fire given java script event, but after that your page flow will be broken (bug in the wicket tester). On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Anybody? On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote: I am assuming that since it is actually a text field that I could just get the component and cast it to a TextField then set the model object. However, I'm not sure that we fire the appropriate events to make the autocomplete work properly as there are onchange events, etc on it.. D/ On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote: What is the recommended way to test autocomplete using wicket tester? D/ - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: testing autocomplete with WicketTester
Currently not, but maybe implementing it in EnhancedWicketTester is worse idea then simply making finally WicketTester first class citizen in the Wicket project. So that testing even most complex Ajax websites would be possible and easy. On Thu, Jan 14, 2010 at 8:54 PM, jgasyna webmas...@poundtech.com wrote: Would the use of the enhanced wicket tester perhaps solve this problem? Dzieki Paul Szulc wrote: I think you can explicitly tell in your tests to fire given java script event, but after that your page flow will be broken (bug in the wicket tester). On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Anybody? On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote: I am assuming that since it is actually a text field that I could just get the component and cast it to a TextField then set the model object. However, I'm not sure that we fire the appropriate events to make the autocomplete work properly as there are onchange events, etc on it.. D/ On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote: What is the recommended way to test autocomplete using wicket tester? D/ - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com -- View this message in context: http://old.nabble.com/testing-autocomplete-with-WicketTester-tp27104866p27167160.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 -- Best regards, Paul Szulc http://paulszulc.wordpress.com
[OT] qucik help with eclipse maven repo
OFF TOPIC! Hi, totally off topic - I know But I need someone outside from Poland boarders to click on this link here: http://www.eclipse.org/downloads/download.php?r=1nf=1file=/rt/eclipselink/maven.repo it redirects me to a non-complete maven repo in Poland ( http://ftp.man.poznan.pl/eclipse/rt/eclipselink/maven.repo/) that does not have jar for eclipse-link in 2.0.0-SNAPSHOT version. So can anyone plleeaassee click this http://www.eclipse.org/downloads/download.php?r=1nf=1file=/rt/eclipselink/maven.repo and see where it redirects him? -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: [OT] qucik help with eclipse maven repo
thank you so much!! polish mirror http://ftp.man.poznan.pl/eclipse/rt/eclipselink/maven.repo/ lacks half of the jars thx again!! On Thu, Jan 7, 2010 at 7:44 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: http://eclipse.a3-system.be/rt/eclipselink/maven.repo/ 2010/1/7 Paul Szulc paul.sz...@gmail.com: OFF TOPIC! Hi, totally off topic - I know But I need someone outside from Poland boarders to click on this link here: http://www.eclipse.org/downloads/download.php?r=1nf=1file=/rt/eclipselink/maven.repo it redirects me to a non-complete maven repo in Poland ( http://ftp.man.poznan.pl/eclipse/rt/eclipselink/maven.repo/) that does not have jar for eclipse-link in 2.0.0-SNAPSHOT version. So can anyone plleeaassee click this http://www.eclipse.org/downloads/download.php?r=1nf=1file=/rt/eclipselink/maven.repo and see where it redirects him? -- Best regards, Paul Szulc http://paulszulc.wordpress.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: wicket tester forms
I found more such problems. All described here: http://paulszulc.wordpress.com/2009/08/03/wicket-testing-pitfalls-and-api-issues/ On Wed, Jan 6, 2010 at 7:28 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: With quickstart example that can reproduce the problem 2010/1/6 Martin Makundi martin.maku...@koodaripalvelut.com: Report in jira 2010/1/6 Douglas Ferguson doug...@douglasferguson.us: I just found an issue in wicket tester. If you submit a form with hidden fields it will attempt to set the models on those hidden fields. My app depends on this. D/ - 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 -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Wicket + Scala + Spring
if you guy run any blog it would be nice contrib to community to write about your experience in scala + wicket. I would definitely love to read about it. On Mon, Jan 4, 2010 at 1:43 AM, Gary Thomas gar...@gmail.com wrote: P.S. though one slight difficulty I've run into is the need to translate between Scala and Java collections. Perfectly doable, and not a Wicket problem, but takes a way some of the elegance of coding purely in Scala. Happy to hear if anyone has tips on elegant ways of dealing with this. On 1/3/10 4:38 PM, Gary Thomas wrote: Same here - not much more to say other than after 10 years of working with Java webapps, learning both Wicket and Scala have made the past 6 months very enjoyable. Immediately before trying Wicket, I was a die-hard Struts/Spring MVC user and didn't know what I was missing. Scala+Wicket is a nice mix. Best, g On 1/3/10 11:24 AM, Giovanni wrote: I'm developing two new applications (a webapp + a standalone) using Scala + Spring + Wicket 1.4.5 (webapp) + H2 database. The development is nice and interesting. Wicket is working with Scala very well. If someone else has a similar experience, please share it. Best regards giovanni - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: [announce] Wicket Stuff Core - JavaEE Inject
Will it work with JEE6? 2009/12/31 Major Péter majorpe...@sch.bme.hu Hi all, I am proud to announce the semi-new JavaEE Inject project in Wicket Stuff Core, which was formerly known as wicket-contrib-javaee. The goal of the project: Make the @EJB, @Resource and @PersistenceUnit annotations available for Wicket users, to make the development more easier. This means, that when your components are instantiating, the annotated fields will be injected properly, so you can use them for whatever you want. The project itself didn't changed much, some javac warnings has been solved, but it has now a newer Example application too, which will demonstrate for you the usage of the annotation based injecting. The example is based on maven, so this would be also a good example on how to use enterprise applications with wicket and maven. So now, if you think, that this stuff is cool and want to use it, you only have to do the followings: - Add Wicket Stuff Repository to your maven repository list (if you've not already done so): repository idwicket-stuff/id layoutdefault/layout urlhttp://wicketstuff.org/maven/repository/url /repository - Add the JavaEE Inject dependency to your web module: dependency groupIdorg.wicketstuff/groupId artifactIdjavaee-inject/artifactId version1.4-SNAPSHOT/version /dependency - Follow the Wiki instructions at http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaeeor try out for yourself the example application. - Profit Project Future: In the future, I would like to create a more up-to-date documentation for the project, better JavaDoc, and solve the JIRA issues too, and of course follow the modifications of the Wicket framework, so the project could work with the newest version always. Best Regards, Peter Major - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Accessing Page components
Just declare them final, should work just fine, but with consequences (you wont be able to re-reference them in a future). On Thu, Dec 17, 2009 at 8:45 AM, marioosh.net marioosh@gmail.comwrote: Is simple possibility to access page components in anonymous onClick method like in code below ? public class NewLinkPanel extends Panel { public NewLinkPanel(String id) { super(id); TextField name = new TextField(name); TextField address = new TextField(address); add(name); add(address); add(new AjaxLink(ok){ public void onClick(AjaxRequestTarget target) { // how to get name and address values ? System.out.println(ok); } }); } } Thanks in advance. -- Greetings, marioosh - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
[ANN] enhanced wickettester project
Hi all, I would like to announce a very small yet useful project for anyone who is doing a lot of integration tests in their Wicket projects. Enhanced WicketTester project's site is http://code.google.com/p/enhancedwickettester/ where one can download binary, code, check examples. Any comments (here or priv msg) are more then welcome, since I'm aware that project can be still improved. -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: Apache Wicket 1.4 takes type safety to the next level
finally out :) !! thx wicket team! On Thu, Jul 30, 2009 at 12:54 PM, Martijn Dashorst dasho...@apache.orgwrote: The Apache Wicket project is proud to announce the release of Apache Wicket 1.4. Apache Wicket is an open source, component oriented Java web application framework. With overwhelming support from the user community, this release marks a departure from the past where we leave Java 1.4 behind and we require Java 5 as the minimum JDK version. By moving to Java 5 as the required minimum platform, we were able to utilize Java 5 idioms and increase the type safety of our APIs. Using Java generics you can now write typesafe web applications and create typesafe, self documenting, reusable custom components. The full announcement for this release can be found here: http://wicket.apache.org/apache-wicket-14-takes-type-safety-to-the-next-level.html Download Apache Wicket 1.4 You can download the release here: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 Or use this in your Maven pom’s to upgrade to the new version: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.4.0/version /dependency You will need to upgrade all modules (i.e. wicket, wicket-extensions) to their 1.4 counterparts. It is not possible to mix Wicket 1.3 libraries with 1.4 libraries due to API changes. Most notable changes From all the changes that went into this release, the following are the most important ones: * Generified IModel interface and implementations increases type safety in your Wicket applications * Component#getModel() and Component#setModel() have been renamed to getDefaultModel() and setDefaultModel() to better support generified models * The Spring modules have been merged (wicket-spring-annot is now obsolete, all you need is wicket-spring) * Many API’s have been altered to better work with Java 5’s idioms * Wicket jars are now packaged with metadata that makes them OSGI bundles Apart from these changes, the release is mostly compatible with Wicket 1.3 and upgrading shouldn’t take too long. Early adopters report about a days work to upgrade medium to large applications to Wicket 1.4. Read the migration guide to learn more about the changes in our APIs. To learn more about all the improvements and new features that went into this release, check the solved issue list in our JIRA instance. If you want to learn more about this release, please refer to the full release announcement: http://wicket.apache.org/apache-wicket-14-takes-type-safety-to-the-next-level.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Best regards, Paul Szulc http://paulszulc.wordpress.com
wicket-archetype-quickstart is not enough
I recently did some ranting about wicket-archetype-quickstart on my blog: http://paulszulc.wordpress.com/2009/07/26/wicket-archetype-quickstart-is-not-enough. To be person who not only complains, but also acts, I decided to create my own, more enhanced wicket archetype, that would aim the issues described on my blog. The archetype I'm creating is getting closer to 1.0.0 stable version, but I got this feeling that I might still missing something. There might be still some repetitive configurations, some typical patterns, that any developer would like to see after running mvn archetype:generate -DarchetypeArtifactId=wctemplate-archetype Thus if you have any suggestions or maybe you believe the whole idea is simply stupid, please let me know. I would love to hear from other Wicket users, what they think of creating extended wicket archetype. -- Best regards, Paul Szulc
Re: [announce] Wicket 1.4-RC5 released
besides that it's great to see the final release getting closer :-) how long do you think before final release?
Re: London Wicket event on Wednesday
Ah if only plane tickets were a little bit cheaper... On Tue, Jun 2, 2009 at 1:01 AM, Alastair Maw m...@almaw.com wrote: Hi, folks. Quick reminder that there's a London Wicket Users Group meet-up on Wednesday evening at Google UK in Victoria. It's rather late in the day for me to be announcing the topic of my talk, but it's going to be interesting: *Bookmarkable Everything* Wicket is great at managing server side state for you, but you still write a lot of boilerplate code for users to easily bookmark your pages. AJAX makes the problem ten times harder. Come along on Wednesday for instant parameterised pain relief. Sign up here: http://jweekend.co.uk/dev/LWUGReg Alastair -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: London Wicket event on Wednesday
Ah, you see, I didn't know that! But still I belive it would be just wrong to ask you for travel expanses just so could fly to London, chat with guys and fly back home... BUT but I could maybe craft some cool presentation for the wicket user group and visit you guys as presenter? Tell me what you think. On Tue, Jun 2, 2009 at 8:57 AM, jWeekend jweekend_for...@cabouge.comwrote: Paul, Very droll! -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: London Wicket event on Wednesday
On Tue, Jun 2, 2009 at 2:09 PM, jWeekend jweekend_for...@cabouge.comwrote: Paul, I thought you meant tickets for our London Wicket Events [1] (free) tickets are not cheap?!? - I probably misunderstood or totally missed your plane word! yeah, misunderstanding :) not so droll right now aint it ;) Send me a note with Skype id and your timezone using our contact us page [2] if you are seriously considering preparing and delivering a presentation at one of our future events. sure, I will Regards - Cemal jWeekend http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg/ [2] http://jweekend.com/dev/ContactUs Paul Szulc wrote: Ah, you see, I didn't know that! But still I belive it would be just wrong to ask you for travel expanses just so could fly to London, chat with guys and fly back home... BUT but I could maybe craft some cool presentation for the wicket user group and visit you guys as presenter? Tell me what you think. On Tue, Jun 2, 2009 at 8:57 AM, jWeekend jweekend_for...@cabouge.comwrote: Paul, Very droll! -- Best regards, Paul Szulc http://paulszulc.wordpress.com -- View this message in context: http://www.nabble.com/London-Wicket-event-on-Wednesday-tp23823819p23831338.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 -- Best regards, Paul Szulc http://paulszulc.wordpress.com