Re: Announcing: visural-wicket 0.5 released - open source wicket components
Another problem with GAE is the security permissions put restrictions on serialization that break things in wicket like the cloneModel call. Some of the methods on ObjectUtils need to allow overriding the implementation to get the wicket components fully working on GAE. On Thu, Feb 25, 2010 at 10:39 AM, Richard Nichols r...@richardnichols.net wrote: I think GAE is slowest when the site isn't getting much traffic - they start JVMs on demand so low traffic often means usually means a JVM start for every user. http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request On 25 February 2010 08:21, Roman Ilin roman.i...@gmail.com wrote: No I haven't seen it before. Thank you Christian. It does all I need, but GAE is slow :( On Wed, Feb 24, 2010 at 10:07 PM, Christian Hülsmeier wic...@christianhuelsmeier.de wrote: Hi Roman, did you try this tree component with GAE? http://code.google.com/p/wicket-tree/ I used it in a project before, but the app has not been hosted on GAE. Christian -Ursprüngliche Nachricht- Von: Roman Ilin [mailto:roman.i...@gmail.com] Gesendet: Mittwoch, 24. Februar 2010 13:02 An: users@wicket.apache.org Betreff: Re: Announcing: visural-wicket 0.5 released - open source wicket components Nice components! I currently work on an application that should be deployed on GAE. I think I'll need some new components because wickets three and some other do not work on GAE. So I think I could commit some new components/ideas to your project as well. Regards Roman On Wed, Feb 24, 2010 at 11:53 AM, Pedro Sena sena.pe...@gmail.com wrote: Great Job! I was looking for a Drop Down like that. Thanks and keep the good work. Regards, On Wed, Feb 24, 2010 at 7:49 AM, Richard Nichols r...@visural.com wrote: Hi wicket-users, I'm currently the sole developer of an open-source set of Wicket components and utilties - visural-wicket. *visural-wicket is a useful set of light-weight, loosely coupled components and utilities for the Apache Wicket web framework.* *Each component is designed to be easily integrated into any existing Wicket application with minimal dependencies.* *Other than components, visural-wicket includes some other utilities that assist in the development of Wicket applications, such as an annotation-based mounting system, model templates and automatic form view mode component.* The project is licensed under the *Apache 2.0* licence. The download package includes full source + javadocs. The project page is at http://code.google.com/p/visural-wicket/ and there are live examples at http://visural-wicket-examples.appspot.com/ I've been working on this project for around 4 months and it is now a mature and pretty stable set of tools for developing Wicket apps. I'm using it in my day-to-day work in some very large applications. I'd like to get some feedback and/or collaborators on the current state of the project, and hope that other members of the wicket community may find these components and utilities useful. cheers, Rich. -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */ - 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 -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket bench in eclipse
Agree with Huake Ingmar. The functionality doesn't overlap at all. My main reason for wanting the plugin to work is to switch easily between the html and the java code for the same component. In a maven project this is particular a hassle because the java code is in packages under /src/main/java and the html code is in packages under /src/main/resources. I can't really find a quick way (preferable single keystroke to flip between them). I also ideally want code completion on the wicket ids but thats secondary. regards, Lionel On Tue, Jan 26, 2010 at 12:48 AM, Hauke Ingmar Schmidt haukeing...@gmail.com wrote: Hej, 2010/1/25 Peter Karich peat...@yahoo.de: Is it time to buy an IDEA license where there seems to be a quite nice toolset for Wicket? I downloaded the open source version of IntelliJ and the wicket plugin seems to work. Yes, but the free version of IDEA is lacking too much in other fields: http://www.jetbrains.com/idea/features/editions_comparison_matrix.html . There is also a wicket plugin for NetBeans, which is working. Well, yes, but then it's Netbeans... But a pure maven project wihtout a plugin isn't that different. Or am I missing an important feature of the eclipse plugin? Hm... Maven and the different Wicket IDE plugins don't intersect in functionality. The plugins all try to give a little help when working with Wicket components and pages, e.g. showing the wicket:ids when working with the Java code to prevent hierarchy mismatch or offering property model navigation as this is (still) string based. Eclipse plugin features: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.5.html Netbeans: https://nbwicketsupport.dev.java.net/ (well, that page needs a little make over...) IDEA: http://code.google.com/p/wicketforge/wiki/PluginFeatures Hej då Hauke Ingmar - 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
wicket bench in eclipse
Hi Guys, Not strictly a wicket question, I know. Does anyone have wicket bench working in Galileo or recent version of eclipse or know of a good plugin I should be using?. My project has a maven structure, not sure if thats why it doesn't work. regards, Lionel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket bench in eclipse
Thats exactly what I want it for. Some reason it doesn't detect wicket pages. I tried setting the wicket context in the project properties but it doesn't change and if I force opening the html page with wicket bench it throws an initialisation error. At least if you saying it works for you I know it should work and I should keep trying. BTW. What are you meant to get your wicket context set to in the project properties, is it /src/main/resources. On Fri, Jan 22, 2010 at 12:25 AM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote: We are using Galileo and m2eclipse (Maven) with Wicket bench, no problem, but we are only using wicket bench when creating new pages and panels as a lazy way to get both the java and html file. //Swanthe On 2010-01-21 04:48, Lionel Port wrote: Hi Guys, Not strictly a wicket question, I know. Does anyone have wicket bench working in Galileo or recent version of eclipse or know of a good plugin I should be using?. My project has a maven structure, not sure if thats why it doesn't work. regards, Lionel - 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
Re: wicket bench in eclipse
Thanks but I don't have any problem with m2eclipse, its works great. On Fri, Jan 22, 2010 at 3:17 AM, Andreas Lüdtke sam.lued...@t-online.de wrote: Hi Lionel, since you don't write what exactly doesn't work, I can only guess: is the M2_REPO variable beeing defined/set in eclipse? This was my main problem when I used eclipse. You should give NetBeans a try. Just open the pom file and everything is fine and working. Andreas -Original Message- From: Lionel Port [mailto:lio...@portconnection.com] Sent: Thursday, January 21, 2010 4:48 AM To: users@wicket.apache.org Subject: wicket bench in eclipse Hi Guys, Not strictly a wicket question, I know. Does anyone have wicket bench working in Galileo or recent version of eclipse or know of a good plugin I should be using?. My project has a maven structure, not sure if thats why it doesn't work. regards, Lionel - 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: Objects.cloneModel() on google app engine
The gae security restriction looks pointless because Objects.cloneModel is just using a ByteArrayOutputStream (why should there be restrictions on that?) but because the Objects calls are all static I can't override the method with a working clone method also because the OrderByLink.sort method is final I can't fix there either. As a workaround for any one who is interested, it looks like cloneModel is only used in this case if the component is versioned so I set called setVersion(false) on the orderByLink and it avoids this problem area. On Wed, Jan 20, 2010 at 12:32 PM, Lionel Port lionel.p...@gmail.com wrote: Hi, I'm using wicket on google app engine and am having trouble with the sort link headers on data tables. It looks like when a sort link is clicked the method Objects.cloneModel() is called. This creates a ReplaceableObjectOutputStream wrapper around the ObjectOutputStream to do the copy using serialization/deserialization. Unfortunately this class tries to call enableReplace on the the underlying ObjectOutputStream so that it can replace component objects with just their name (to stop component hierachy being serialized). It seams the google app engine security permissions deny calling enableReplace on the ObjectOutputStream. Does any one know of a work around to get the sort links working? regards, Lionel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Objects.cloneModel() on google app engine
Thanks Pedro, Hope it helps. From your answer looks like we may have a slightly different problem with the same cause. Looks like the cloneModel() method is depended on from a couple of spots but it all related to versioning of components. Ideally it would be good if we could just replace the implementation of cloneModel with one that works on GAE. Anyway I'll stick with this for now till it comes and bites me again. regards, Lionel On Wed, Jan 20, 2010 at 9:26 PM, Pedro Santos pedros...@gmail.com wrote: Thank u! that will work for me too On Wed, Jan 20, 2010 at 8:21 AM, Lionel Port lionel.p...@gmail.com wrote: The gae security restriction looks pointless because Objects.cloneModel is just using a ByteArrayOutputStream (why should there be restrictions on that?) but because the Objects calls are all static I can't override the method with a working clone method also because the OrderByLink.sort method is final I can't fix there either. As a workaround for any one who is interested, it looks like cloneModel is only used in this case if the component is versioned so I set called setVersion(false) on the orderByLink and it avoids this problem area. On Wed, Jan 20, 2010 at 12:32 PM, Lionel Port lionel.p...@gmail.com wrote: Hi, I'm using wicket on google app engine and am having trouble with the sort link headers on data tables. It looks like when a sort link is clicked the method Objects.cloneModel() is called. This creates a ReplaceableObjectOutputStream wrapper around the ObjectOutputStream to do the copy using serialization/deserialization. Unfortunately this class tries to call enableReplace on the the underlying ObjectOutputStream so that it can replace component objects with just their name (to stop component hierachy being serialized). It seams the google app engine security permissions deny calling enableReplace on the ObjectOutputStream. Does any one know of a work around to get the sort links working? regards, Lionel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: onAfterRender called twice in AjaxLazyLoadPanel
Hi Steve, Are you trying to do this.. http://cwiki.apache.org/WICKET/adding-javascript-from-wicket.html with an onload event instead of onblur, or do I misunderstand. regards, Lionel On Thu, Jan 21, 2010 at 2:56 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: So overriding onAfterRender for a component doesn't just override it for that instance of the component? Also I can see the markup is being added to the end of the page after the closing HTML. However, the Javadocs say it is meant to be called after after the actual component is finished rendering. So it look s like onAfterRender is not what I need. Can I attach to a different phase in the render lifecycle to call the javascript when that specific panel has just finished rendering? thanks, Steve On 21/01/2010, at 2:52 PM, Igor Vaynberg wrote: you are writing out javascript after every component render... perhaps you should keep a boolean flag that marks if you rendered the js yet or not. alternatively you can add a behavior to the panel with istemporary() { return true; } -igor On Wed, Jan 20, 2010 at 7:24 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: I have an AjaxLazyLoadPanel and want some javascript to fire after its loaded it's contents: I assumed I could override onAfterRender and add my javascript like so: add(new AjaxLazyLoadPanel(myPanel) { �...@override public Component getLazyLoadComponent(String markupId) { return new SomePamel(markupId); } �...@override protected void onAfterRender() { JavascriptUtils.writeJavascript(getResponse(), alert('hello');); super.onAfterRender(); } }); Except it is called twice, it looks like once when the page is loading and then again when the actual panel has been loaded. Is there another way to achieve what I want? thanks, Steve - 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
Objects.cloneModel() on google app engine
Hi, I'm using wicket on google app engine and am having trouble with the sort link headers on data tables. It looks like when a sort link is clicked the method Objects.cloneModel() is called. This creates a ReplaceableObjectOutputStream wrapper around the ObjectOutputStream to do the copy using serialization/deserialization. Unfortunately this class tries to call enableReplace on the the underlying ObjectOutputStream so that it can replace component objects with just their name (to stop component hierachy being serialized). It seams the google app engine security permissions deny calling enableReplace on the ObjectOutputStream. Does any one know of a work around to get the sort links working? regards, Lionel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Questions about Serialization...
Probably the answer to the original question is just use HttpSessionStore. Its similar issue to when deploying to GAE where you don't have a disk to serialise to. regards, Lionel On Thu, Dec 10, 2009 at 4:13 AM, Marat Radchenko slonopotamusor...@gmail.com wrote: I wasn't using Model in this precise case. I thought using Model was a best practice, to save memory. Choosing proper model isn't (almost always) about performance, it's about logic. You _have_ to use plain serializing model for data that isn't stored anywhere else. You _have_ to use LDM in cases when it is a logical error to operate on outdated data backed by db storage. Indeed I understand that using Mdel is mandatory, if you want avoid strange behaviour. IMHO using LoadableDetachableModel is an extra cost, (cpu, time, design) not necessary for simpler cases. On the other side, LDM usually reduces page size - allows faster serilization. But anyway, you decide what model to use based on application logic requirements. The only choice that is _mostly_ driven by performance conciderations is AbstractReadonlyModel vs. LDM. But still, sometimes application logic makes it inappropriate to use LDM since its value has to change during request. - 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