[Wicket-user] localization problem
I'm developing a localized web application, where the use can change the language he wants the content to be displayed. However, if the localized message doesn't exist in the currently locale file (e.g. file.ro_RO.properties) wicket will not fall back to the default localized message which is in a 'file.properties' file. Is this the desired behavior or I may be missing something ? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: ComponentFeedbackMessageFilter
Does anyone know if it is at least possible to make a custom FeedbackPanel which displays messages only for a specific component? I want to make an extended FeedbackPanel which only shows messages for Component fc. See code below. But when I display my panel I see the feedbackmessages for ALL of the components that are invalid. I checked the toString() for fc: [MarkupContainer [Component id = integerProperty, page = No Page, path = inputForm:integerProperty.RequiredTextField]] which I think means it's the required textfield Does anyone know what I am doing wrong? public class FXTooltipFeedbackPanel extends FeedbackPanel { /** The message filter for this indicator component */ private ComponentFeedbackMessageFilter filter; /** * @param id Component id * @param fc formcomponent to display messages for */ public FXTooltipFeedbackPanel(String id, FormComponent fc) { super(id); filter = new ComponentFeedbackMessageFilter(fc); } /** * @return Let subclass specify some other filter */ protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } protected String getCSSClass(FeedbackMessage message) { return feedbackTooltipERROR; } } --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
Yeah, partially you are just seeing my frustration at the framework evaluation process. I know struts backwards and forwards, but the deficiencies of that framework are all too well known. The same goes for webwork. I really want to use a component based framework, but echo/echo2 just doesn't have enough community support/active developers, and it has issues with maintaining too much state between requests. Tapestry puts too much logic in the templates and has an obnoxious syntax for the template logic. However, it is a mature product with solid docs and even a book or two written about it, not to mention the support of the jakarta universe. Even rumour I've heard about wicket screams to me that it is the framework I want, but every time I try to dig in, i find it incredibly frustrating. Generally, I'm as good at picking up new technology, especially web development technology, as any developer I've come across, so if I'm having this much trouble getting up to speed with wicket, then what about the rest of my team once they have to begin trying to write code. Simple apps from the examples are easy enough, but the complexity of the examples gets exponentially incomprehensible as the sophistication of the app increases, often making great big leaps of complexity between one exmaple and the next. We don't have the luxury of adding sophistication incrementally, so we have to be able to maximize the value of the framework almost immediately, and that is very difficult given the current state of the docs. Browsing javadocs, hoping that the name of the class that provides the functionality I'm looking for will be sufficiently obvious to jump out at me doesn't really cut it when there is a team of 12 developers being held up while we guess as to a solution. The more I explore, the more I want to use wicket, but the less I think I can actually afford to. My only option is to assume that I can come up to speed fast enough to stay one step ahead of my team, writing the relevant docs and style guidelines before they need them, but I don't have any confidence I'll be able to do so. That leaves me looking at Tapestry (or some model 2 framework, god forbid), which I find very frustrating. In short, first impressions count for a lot in the kind of analysis I'm trying to perform, and Wicket does not yet cut the mustard on that score. It reminds me of Zope, circa mid 1999. Super easy to do the simplest things, but add a little sophistication, and you'd better know exactly how everything works internally or it'll be like beating your head against a wall. Should I wind up using it (currently, I doubt it), I'll be sure to submit any docs I write back to the various projects. --sam On 11/16/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, the fact that is tells you to check out the wicket-stuff module is bad. We should fix that. But for the rest... it pretty basic cvs stuff to figure out what modules are in the repository. Works the same for all open source cvs projects out there. Anyway in case you are still interested in evaluating, you probably would want to check out the component reference of wicket examples first, as that gives you a nice overview of the components that Wicket delivers with the core distro. After that the telephone example is a nice one to look at some more typical application development features. Eelco On 11/16/05, Sam Gendler [EMAIL PROTECTED] wrote: Yeah, the answer lies in the fact that the shell-based cvs commands in the wicket-stuff documentation are utterly broken. Never mind that there is no visible line break between the two separate cvs commands, but it also says to check out the wicket-stuff module, which is merely the source for the wicket-stuff sourceforge site. In reality, since there is no list of available modules provided anywhere, and the link to the viewcvs displays the same wicket-stuff module that the cvs command downloads, you have to checkout '.' rather than wicket-stuff, although this is entirely non-obvious without reading the maven commands listed on the same page. Note that the maven commands appear, from my limited understanding of maven, to be correct. It does check out '.', which pulls the entire wicket-stuff project, including all the modules you listed. --sam On 11/16/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, there's: wicket-contrib-spring-examples wicket-contrib-examples wicket-contrib-examples-hibernate3 wicket-contrib-freemarker wicket-contrib-fvalidate wicket-contrib-gmap wicket-contrib-gmap-examples wicket-contrib-groovy wicket-contrib-jasperreports wicket-contrib-navmenu wicket-contrib-palette wicket-contrib-palette-examples wicket-contrib-scriptaculous wicket-contrib-scriptaculous-examples wicket-contrib-spring wicket-contrib-tinymce wicket-contrib-tinymce-examples wicket-contrib-velocity wicketeer wicket-examples
Re: [Wicket-user] CompoundPropertyModel without OGNL in 1.1
Okay, I understand. Actually, I don't really want OGNL CompoundPropertyModel to be replaced. I just want to have the possibility of non-ognl compound property model in 1.1. So maybe It could be added to wicket-extensions? -Matej Martijn Dashorst wrote: I'd rather finalize 1.2 sooner, cutting off new features, than backport the OGNL replacement into 1.1. It is a breaking change, and by its nature, a 1.1.x release should not break stuff. Martijn On 11/16/05, Johan Compagner [EMAIL PROTECTED] wrote: are you really seeing big performance improvements when comparing the same app with 1.1 and 1.2? Thats nice to hear :) Backporting to 1.1.1 ... we could do it but it is a big change.. that could affect running installs (you can't just swap 1.1 to 1.1.1 then if you depend a bit more on ognl) This should be an issue where we should count votes! johan On 11/16/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. My current benchmark shows that CompoundPropertyModel is a serious performance issue when having big dataview. Is there any chance that the new CompoundPropertyModel from 1.2 will be backported to 1.1? -Matej --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] My take on Spring integration
On Wed, 16 Nov 2005 23:50:11 -0800, Igor Vaynberg [EMAIL PROTECTED] wrote: http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-spring/src/java/wicket/contrib/ here i can see the proxy/injection/spring packages, so its up to date. Thanks now I can also check it out. One final thing: The JDKHandler should catch on method.invoke() the InvocationTargetException and throw the wrapped exception. Otherwise when the code which uses the proxy trys to catch an Exception thrown by the underlying object it will never get it (only an UndeclaredThrowableException). See the javadoc of InvocationHandler.invoke() Throws. Christian I was just thinking of an easy way to configure the static instance gotten from SpringInjector.getInstance(). So I thought that SpringInjector.getInstance() would call ApplicationContext.getBean(SpringInjector,SpringInjector.class) and if there is none return the singelton instance. but then you have to make the bean name configurable, what if someone has two injectors or wants a different name. it will never end. creating a custom one is trivial because the base class is very simple. a few lines of code later you can have one that works great for you. An alternative could be that there is a generic injector which loads a list of IFieldValueFactories from the WebApplication. once again, i think this is better done in a custom way. its very easy to have something like this: class InjectorLocator { public static Injector getInjector() { // create and return injector here } } then instead of using springwebpage create your own that uses the static lookup from injectorlocator to get the injector as opposed to using the default springinjector. this can even allow you to do unit testing on your pages, just have some flag in getInjector() that returns a noop implementation. -Igor -- Christian Essl ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] localization problem
I can not test it right now, but it should work. Besides file.ro_RO.properties = file_ro_RO.properties Juergen On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: I'm developing a localized web application, where the use can change the language he wants the content to be displayed. However, if the localized message doesn't exist in the currently locale file (e.g. file.ro_RO.properties) wicket will not fall back to the default localized message which is in a 'file.properties' file. Is this the desired behavior or I may be missing something ? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
But how do we know what kind of documentation to write when we don't know what you are looking for? Component reference is there. Wiki contains several good docs on the inner workings, spring, hibernate, creating custom components. If you and other users to be don't ask for specific documentation, how should we be able to provide you with what you need/want? Just saying: there is no documentation, or not enough doesn't cut it. So, please, tell us before you either leave us, or before you know Wicket too good, what do you need, what are you looking for? Martijn On 11/17/05, Sam Gendler [EMAIL PROTECTED] wrote: Yeah, partially you are just seeing my frustration at the frameworkevaluation process.I know struts backwards and forwards, but thedeficiencies of that framework are all too well known. The same goesfor webwork. I really want to use a component based framework, but echo/echo2 just doesn't have enough community support/activedevelopers, and it has issues with maintaining too much state betweenrequests.Tapestry puts too much logic in the templates and has anobnoxious syntax for the template logic. However, it is a mature product with solid docs and even a book or two written about it, notto mention the support of the jakarta universe.Even rumour I'veheard about wicket screams to me that it is the framework I want, butevery time I try to dig in, i find it incredibly frustrating. Generally, I'm as good at picking up new technology, especially webdevelopment technology, as any developer I've come across, so if I'mhaving this much trouble getting up to speed with wicket, then what about the rest of my team once they have to begin trying to writecode.Simple apps from the examples are easy enough, but thecomplexity of the examples gets exponentially incomprehensible as thesophistication of the app increases, often making great big leaps of complexity between one exmaple and the next.We don't have the luxuryof adding sophistication incrementally, so we have to be able tomaximize the value of the framework almost immediately, and that isvery difficult given the current state of the docs.Browsing javadocs, hoping that the name of the class that provides thefunctionality I'm looking for will be sufficiently obvious to jump outat me doesn't really cut it when there is a team of 12 developersbeing held up while we guess as to a solution. The more I explore, the more I want to use wicket, but the less I think I can actually affordto.My only option is to assume that I can come up to speed fastenough to stay one step ahead of my team, writing the relevant docsand style guidelines before they need them, but I don't have any confidence I'll be able to do so.That leaves me looking at Tapestry(or some model 2 framework, god forbid), which I find veryfrustrating.In short, first impressions count for a lot in the kind of analysis I'm trying to perform, andWicket does not yet cut the mustard onthat score.It reminds me of Zope, circa mid 1999.Super easy to dothe simplest things, but add a little sophistication, and you'd better know exactly how everything works internally or it'll be like beatingyour head against a wall.Should I wind up using it (currently, I doubt it), I'll be sure tosubmit any docs I write back to the various projects. --samOn 11/16/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, the fact that is tells you to check out the wicket-stuff module is bad. We should fix that. But for the rest... it pretty basic cvs stuff to figure out what modules are in the repository. Works the same for all open source cvs projects out there. Anyway in case you are still interested in evaluating, you probably would want to check out the component reference of wicket examples first, as that gives you a nice overview of the components that Wicket delivers with the core distro. After that the telephone example is a nice one to look at some more typical application development features. Eelco On 11/16/05, Sam Gendler [EMAIL PROTECTED] wrote: Yeah, the answer lies in the fact that the shell-based cvs commands in the wicket-stuff documentation are utterly broken.Never mind that there is no visible line break between the two separate cvs commands, but it also says to check out the wicket-stuff module, which is merely the source for the wicket-stuff sourceforge site.In reality, since there is no list of available modules provided anywhere, and the link to the viewcvs displays the same wicket-stuff module that the cvs command downloads, you have to checkout '.' rather than wicket-stuff, although this is entirely non-obvious without reading the maven commands listed on the same page.Note that the maven commands appear, from my limited understanding of maven, to be correct.It does check out '.', which pulls the entire wicket-stuff project, including all the modules you listed. --samOn 11/16/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, there's: wicket-contrib-spring-examples
Re: [Wicket-user] Re: ComponentFeedbackMessageFilter
I thought I did that: //in constructor, where fc is the desired component filter = new ComponentFeedbackMessageFilter(fc); and protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } I copied this method from FormComponentFeedbackIndicator where it seems to work. But my custom FeedbackPanel still shows the errormessages for ALL the invalid components. But I looked at FeedbackPanel's internals and I could not find where the population of the errormessage ListView used the Filter. Of course it is possible. Just override getFeedbackMessageFilter on it and provide your own message filter. -Matej Marco van de Haar wrote: Does anyone know if it is at least possible to make a custom FeedbackPanel which displays messages only for a specific component? I want to make an extended FeedbackPanel which only shows messages for Component fc. See code below. But when I display my panel I see the feedbackmessages for ALL of the components that are invalid. I checked the toString() for fc: [MarkupContainer [Component id = integerProperty, page = No Page, path = inputForm:integerProperty.RequiredTextField]] which I think means it's the required textfield Does anyone know what I am doing wrong? public class FXTooltipFeedbackPanel extends FeedbackPanel { /** The message filter for this indicator component */ private ComponentFeedbackMessageFilter filter; /** * @param id Component id * @param fc formcomponent to display messages for */ public FXTooltipFeedbackPanel(String id, FormComponent fc) { super(id); filter = new ComponentFeedbackMessageFilter(fc); } /** * @return Let subclass specify some other filter */ protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } protected String getCSSClass(FeedbackMessage message) { return feedbackTooltipERROR; } } --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket for tapestry users
Title: Message Hi, the last projects I was involved I implemented with tapestry. I am of the opinion that it is important (and interesting) to checkonce in a while what the "competitors" are doing ;-) So the question is: Is anybody aware of some online resources where tapestry and wicket or tapestry and WebObjects are compared? cheers, detlef
Re: [Wicket-user] Re: ComponentFeedbackMessageFilter
Well, it's little more complicated. FeedbackPanel doesn't use the filter directly. It uses FeedbackMessagesModel to feed the ListView, and that model uses the Filter. Nevertheless, overriding getFeedbackMessageFilter worked well for me. Which version of wicket are you using? I'm using 1.1 and I'm having no problems with it. -Matej Marco van de Haar wrote: I thought I did that: //in constructor, where fc is the desired component filter = new ComponentFeedbackMessageFilter(fc); and protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } I copied this method from FormComponentFeedbackIndicator where it seems to work. But my custom FeedbackPanel still shows the errormessages for ALL the invalid components. But I looked at FeedbackPanel's internals and I could not find where the population of the errormessage ListView used the Filter. Of course it is possible. Just override getFeedbackMessageFilter on it and provide your own message filter. -Matej Marco van de Haar wrote: Does anyone know if it is at least possible to make a custom FeedbackPanel which displays messages only for a specific component? I want to make an extended FeedbackPanel which only shows messages for Component fc. See code below. But when I display my panel I see the feedbackmessages for ALL of the components that are invalid. I checked the toString() for fc: [MarkupContainer [Component id = integerProperty, page = No Page, path = inputForm:integerProperty.RequiredTextField]] which I think means it's the required textfield Does anyone know what I am doing wrong? public class FXTooltipFeedbackPanel extends FeedbackPanel { /** The message filter for this indicator component */ private ComponentFeedbackMessageFilter filter; /** * @param id Component id * @param fc formcomponent to display messages for */ public FXTooltipFeedbackPanel(String id, FormComponent fc) { super(id); filter = new ComponentFeedbackMessageFilter(fc); } /** * @return Let subclass specify some other filter */ protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } protected String getCSSClass(FeedbackMessage message) { return feedbackTooltipERROR; } } --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] Wicket for tapestry users
Title: Message Sorry, should read: "tapestry and wicket or wicket and WebObjects" of course ... -Original Message-From: Detlef Schulze Sent: Donnerstag, 17. November 2005 12:59To: wicket-user@lists.sourceforge.netSubject: [Wicket-user] Wicket for tapestry users Hi, the last projects I was involved I implemented with tapestry. I am of the opinion that it is important (and interesting) to checkonce in a while what the "competitors" are doing ;-) So the question is: Is anybody aware of some online resources where tapestry and wicket or tapestry and WebObjects are compared? cheers, detlef
Re: [Wicket-user] Preserve form state
Well, having to do validation in model seems like a step backwards from what I have now. There are already validators that can be attached to objects, no to mention, that I would have issues with feedback, etc. I still don't think layered model is a way to go. Currently, I have a solution, that works well form me. But it has two drawbacks. 1. It's really hacky. 2. It uses the invalidInput property of form components to store temporary values. When clicking on an ImmediateButton, all form components are marked invalid (so that they remember the values in invalidInput) and all feedbackMessages are supressed. So after clicking immediateButton, all feedback messages are hidden (even the valid one). The advantages are that validation works as usual. I'm attaching the source code in case anyone needs this. It seems that this behavior (not implementation) won't have enough support to get into wicket. -Matej Johan Compagner wrote: first of all we are talking about 2 problems here! Matej's and Laurent problems are completely different. I still believe that Matej should use a temp model (in between model) And the validations shouldn't be on the component level but between the between model and the real (strong typed) model. I really believe this is the best way. Any thing i can currently think of will result in something like that anyway.. The values Need to be stored somewhere!! So having something like a model: Model(Model realModel) { Hashmap values; getObject(Component comp) return values.get(comp); setObject(Component comp, Object value) values.put(comp, value); public void saveToReal() { Object realObject = realModel.getObject(null); while( Iterate over the values maps keys) Component key; String stringValue; Object value = converter.convertToType(stringValue); validator.validate(key,value) String id = key.getId() // or get some kind of binding see BoundedCompoundPropertyModel Objects.setValue(id,realObject,value,null); } } this is just a rought idea how a in between model should or could work. Laurents problem is completely different, He doesn't want to hold the data (and do nothing with it) over multiply pages. He just wants portions to be validated and portions to be kept for one request only but not validated. I think this is now already possible with the Button.defaultFormProcessing boolean Then the buttons must have a list of components which he must be validated before he does process everything. then he can call FormComponent.validate() and if that goes ok FormComponent.updateModel() (and so on on the complete List) I think we are then where we are. You just need a special button that has a list of FormComponents to be validated... On 11/16/05, *Johan Compagner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: i still think in youre case you have to use a inbetween model There is no other way. Even if we stored it inside the form itself then that is the inbetween model And i don't know if i want to support that. On 11/16/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. The problem is, that I don't want to validate the form, unless user clicks 'OK'. The model is updated after validation only. But the 'choose' button should NOT validate the form. I don't think it's a good thing storing the temporary values in model (at least in my case), because model is typed. The temporary values should only be strings (get from Http request). -Matej Johan Compagner wrote: Just one extra remark. Why can't use just use a model for this? And that model is an in between model for you real model object? Ok you have to do youre validation a bit different (it can't be between Form-Model but it has to be between TmpModel-RealModel This looks to me like a much better way to have multiply page forms... johan On 11/13/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. I know this has been discussed already, but still I'm opening it once more. I think there should be a way to preserve form state without validation and model updating. The use case is following. I have a (complex) form with some fields, that can not be entered directly, i.e. they have to be selected on other page. So I need to move between pages, but I don't want to lose any information entered on the previous page. If I use Button, the form gets processed, validated, etc and the action won't execute unless all entered data is valid. If I turn defaultProcessing off, the action executes, but the data
Re: [Wicket-user] CompoundPropertyModel without OGNL in 1.1
Very very nice! then what i did see in the profiler also is very real in the real world! And there is also another factor that you will only really see if the load is high.. and that is that there is also the same factor how many memory is gc'ed! johan On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Okay, I took CompoundPropertyModel from 1.2 and put it to my project, sothat I can directly compare CompoundPropertyModel from 1.1 and 1.2. AndJohan, you are going to like the result :)It's pretty impressive. On one page (with DataView - 7 columns and 10 rows), the rendering withold CompoundPropertyModels takes 330-400 ms and with new 40-80ms. Nowthat's a difference you can really feel.-MatejMatej Knopp wrote: Okay, I understand. Actually, I don't really want OGNL CompoundPropertyModel to be replaced. I just want to have the possibility of non-ognl compound property model in 1.1. So maybe It could be added to wicket-extensions? -Matej Martijn Dashorst wrote: I'd rather finalize 1.2 sooner, cutting off new features, than backport the OGNL replacement into 1.1. It is a breaking change, and by its nature, a 1.1.x release should not break stuff. Martijn On 11/16/05, Johan Compagner [EMAIL PROTECTED] wrote: are you really seeing big performance improvements when comparing the same app with 1.1 and 1.2? Thats nice to hear :) Backporting to 1.1.1 ... we could do it but it is a big change.. that could affect running installs (you can't just swap 1.1 to 1.1.1 then if you depend a bit more on ognl) This should be an issue where we should count votes! johan On 11/16/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. My current benchmark shows that CompoundPropertyModel is a serious performance issue when having big dataview. Is there any chance that the new CompoundPropertyModel from 1.2 will be backported to 1.1? -Matej --- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1288 (20051115) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: ComponentFeedbackMessageFilter
Tnx for clariffying that, im using the CVS version currently, but I could check if it works with 1.1. But I find it far more likely that I am overlooking some small thing... I'll will reexamine my code. is there any example which uses this, or a simple peice of code example I could check? Marco Matej Knopp wrote: Well, it's little more complicated. FeedbackPanel doesn't use the filter directly. It uses FeedbackMessagesModel to feed the ListView, and that model uses the Filter. Nevertheless, overriding getFeedbackMessageFilter worked well for me. Which version of wicket are you using? I'm using 1.1 and I'm having no problems with it. -Matej Marco van de Haar wrote: I thought I did that: //in constructor, where fc is the desired component filter = new ComponentFeedbackMessageFilter(fc); and protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } I copied this method from FormComponentFeedbackIndicator where it seems to work. But my custom FeedbackPanel still shows the errormessages for ALL the invalid components. But I looked at FeedbackPanel's internals and I could not find where the population of the errormessage ListView used the Filter. Of course it is possible. Just override getFeedbackMessageFilter on it and provide your own message filter. -Matej Marco van de Haar wrote: Does anyone know if it is at least possible to make a custom FeedbackPanel which displays messages only for a specific component? I want to make an extended FeedbackPanel which only shows messages for Component fc. See code below. But when I display my panel I see the feedbackmessages for ALL of the components that are invalid. I checked the toString() for fc: [MarkupContainer [Component id = integerProperty, page = No Page, path = inputForm:integerProperty.RequiredTextField]] which I think means it's the required textfield Does anyone know what I am doing wrong? public class FXTooltipFeedbackPanel extends FeedbackPanel { /** The message filter for this indicator component */ private ComponentFeedbackMessageFilter filter; /** * @param id Component id * @param fc formcomponent to display messages for */ public FXTooltipFeedbackPanel(String id, FormComponent fc) { super(id); filter = new ComponentFeedbackMessageFilter(fc); } /** * @return Let subclass specify some other filter */ protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } protected String getCSSClass(FeedbackMessage message) { return feedbackTooltipERROR; } } --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list
Re: [Wicket-user] Wicket for tapestry users
I don't really know if it's up to date, but you could check http://www.wicket-wiki.org.uk/wiki/index.php/For_Tapestry_Users in the Wicket wiki Marco Detlef Schulze wrote: Sorry, should read: tapestry and wicket or wicket and WebObjects of course ... -Original Message- *From:* Detlef Schulze *Sent:* Donnerstag, 17. November 2005 12:59 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Wicket for tapestry users Hi, the last projects I was involved I implemented with tapestry. I am of the opinion that it is important (and interesting) to check once in a while what the competitors are doing ;-) So the question is: Is anybody aware of some online resources where tapestry and wicket or tapestry and WebObjects are compared? cheers, detlef --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preserve form state
Thanks a lot for having sent the source code. I'll check it ASAP (but not before next week, I fear), because I'm *very* interested in encapsulating the behaviour you're talking about in a reusable package. I already have some ideas under the cover, but I'm far to having good knowledges of Wicket internals, and I guess your code will help me delve into those internals. In short, my idea, if feasible, would be to create a kind of SmartForm that could be a border around other FormComponents, and even embed other SmartForms. And a SmartForm validation will be bound to a set of Buttons/Actions explicitly added to the SmartForm using something like SmartForm.validateOnButton/Action(Button/Action). And you could also cascade validation : if a SmartForm b is embedded in another SmartForm a, you can choose on the SmartForm b if validation of the parent SmartForm (a) will cascade the validation to the SmartForm b. So you then have a SmartForm b, attached to a validation button bButton, and the SmartForm a, attached to a validation button aButton If b declares that validations cascade through it, then the following use cases will be as follows : - user presses bButton : only the validations of the b SmartForm are done (and also updates of the b models). The values entered by the user on the other formComponents of the a SmartForm are preserved (and here your code is of some interest to me). - user presses aButton : the validation occurs on all the formComponents inside the a SmartForm, and also on all the SmartForms that accept validation cascading, so formComponents of b SmartForm are also validated. Another interesting use case that is solved by this solution is the use case where in the same form you have some formComponents needed for the creation of something, and associated to a Create Button, and some other formComponents that display the contents of (editable) already created somethings (for bulk updates). Then you create 2 SmartForms : one SmartForm (lets call it createForm) for the formComponents needed when the user hits the Create Button (that then *need* to be validated), and one SmartForm for the formComponents of the rest of the page (lets call it updateForm, and say that it's bound to the global submit button of the page). And to end the settings of your components, you call some createForm.setCascadeValidation(false). Then when the global submit button of the page is called on the global updateForm, if the createForm is embedded in the updateForm, then validation will not occur on the createForm SmartForm (and that's good !). A last interesting use case for this : in all the pages of you application, you have a little box that allows the user to sign in. A user hits a page where he can enter some values in some fields. And before validating the page, he decides to log in. What I want is that after having logged in, the page still presents the values entered in its body by the user. So the need to : - have a single form for all the data of the page - use a concept like my SmartForm in order to separate the formComponents dedicated to the user login action (presumably login/password :-) from the formComponents of the main purpose of the page at hand (some blog entry formComponents, ... whatever ...). Without the use of a concept like SmartForms and changes in Components as those mentioned by Matej, it will be very difficult, verbose, and error prone to have this *simple* and *basic* (user friendly centered) behaviour on all the pages of an application ... But yet, it is still all in my head, I have nothing to present yet (but I hope it will come soon). My 0,05 EUR, :-) -- Laurent On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Well, having to do validation in model seems like a step backwards from what I have now. There are already validators that can be attached to objects, no to mention, that I would have issues with feedback, etc. I still don't think layered model is a way to go. Currently, I have a solution, that works well form me. But it has two drawbacks. 1. It's really hacky. 2. It uses the invalidInput property of form components to store temporary values. When clicking on an ImmediateButton, all form components are marked invalid (so that they remember the values in invalidInput) and all feedbackMessages are supressed. So after clicking immediateButton, all feedback messages are hidden (even the valid one). The advantages are that validation works as usual. I'm attaching the source code in case anyone needs this. It seems that this behavior (not implementation) won't have enough support to get into wicket. -Matej Johan Compagner wrote: first of all we are talking about 2 problems here! Matej's and Laurent problems are completely different. I still believe that Matej should use a temp model (in between model) And the validations shouldn't be on the component level but between the between model and the real (strong typed) model. I
Re: [Wicket-user] Preserve form state
it is not really a model in what you normally call a model. Now you are holding everything in those attributes What is then then? That is also a model but integrated into the form' I find that a bit uglier.. What kind of validation/feedback issues would you have? I don;t think anything will really change in the validation and or feedback. On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Well, having to do validation in model seems like a step backwards fromwhat I have now. There are already validators that can be attached toobjects, no to mention, that I would have issues with feedback, etc. I still don't think layered model is a way to go. Currently, I have asolution, that works well form me. But it has two drawbacks.1. It's really hacky.2. It uses the invalidInput property of form components to store temporary values. When clicking on an ImmediateButton, all formcomponents are marked invalid (so that they remember the values ininvalidInput) and all feedbackMessages are supressed. So after clickingimmediateButton, all feedback messages are hidden (even the valid one). The advantages are that validation works as usual.I'm attaching the source code in case anyone needs this. It seems thatthis behavior (not implementation) won't have enough support to get intowicket. -MatejJohan Compagner wrote: first of all we are talking about 2 problems here! Matej's and Laurent problems are completely different. I still believe that Matej should use a temp model (in between model) And the validations shouldn't be on the component level but between the between model and the real (strong typed) model. I really believe this is the best way. Any thing i can currently think of will result in something like that anyway.. The values Need to be stored somewhere!! So having something like a model: Model(Model realModel) { Hashmap values; getObject(Component comp)return values.get(comp); setObject(Component comp, Object value) values.put(comp, value);public void saveToReal(){ Object realObject = realModel.getObject(null); while( Iterate over the values maps keys) Component key; String stringValue; Object value = converter.convertToType(stringValue); validator.validate(key,value) String id = key.getId() // or get some kind of binding see BoundedCompoundPropertyModel Objects.setValue(id,realObject,value,null);} } this is just a rought idea how a in between model should or could work. Laurents problem is completely different, He doesn't want to hold the data (and do nothing with it) over multiply pages. He just wants portions to be validated and portions to be kept for one request only but not validated. I think this is now already possible with the Button.defaultFormProcessing boolean Then the buttons must have a list of components which he must be validated before he does process everything. then he can call FormComponent.validate() and if that goes ok FormComponent.updateModel() (and so on on the complete List) I think we are then where we are. You just need a special button that has a list of FormComponents to be validated... On 11/16/05, *Johan Compagner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: i still think in youre case you have to use a inbetween model There is no other way. Even if we stored it inside the form itself then that is the inbetween model And i don't know if i want to support that. On 11/16/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. The problem is, that I don't want to validate the form, unless user clicks 'OK'. The model is updated after validation only. But the 'choose' button should NOT validate the form. I don't think it's a good thing storing the temporary values in model (at least in my case), because model is typed. The temporary values should only be strings (get from Http request). -Matej Johan Compagner wrote:Just one extra remark.Why can't use just use a model for this?And that model is an in between model for you real model object? Ok you have to do youre validation a bit different(it can't be betweenForm-Modelbut it has to be between TmpModel-RealModelThis looks to me like a much better way to have multiply page forms...johanOn 11/13/05, *Matej Knopp* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. I know this has been discussed already, but still I'm opening it once more. I think there should be a way to preserve form state without validation and model updating. The use case is following. I have a (complex) form with some fields, that can not be entered directly, i.e. they have to be selected on other page. So I need to move between pages, but I don't want to lose any information entered on the previous page. If I use Button, the form gets processed, validated, etc and the action won't execute unless all entered data is valid. If I turn defaultProcessing off, the action executes, but the data (not written to model yet) is lost. What I'm using now is little hacky, but it works. I
Re: [Wicket-user] Preserve form state
youre SmartForms are just what i described as and Array/List inside a button so that a button knows what to valdate when it gets pressed. On 11/17/05, Laurent PETIT [EMAIL PROTECTED] wrote: Thanks a lot for having sent the source code.I'll check it ASAP (but not before next week, I fear), because I'm*very* interested in encapsulating the behaviour you're talking aboutin a reusable package. I already have some ideas under the cover, but I'm far to having goodknowledges of Wicket internals, and I guess your code will help medelve into those internals.In short, my idea, if feasible, would be to create a kind of SmartForm that could be a border around other FormComponents, andeven embed other SmartForms.And a SmartForm validation will be bound to a set of Buttons/Actionsexplicitly added to the SmartForm using something like SmartForm.validateOnButton/Action(Button/Action).And you could also cascade validation : if a SmartForm b is embeddedin another SmartForm a, you can choose on the SmartForm b if validation of the parent SmartForm (a) will cascade the validationto the SmartForm b.So you then have a SmartForm b, attached to a validation buttonbButton, and the SmartForm a, attached to a validation button aButtonIf b declares that validations cascade through it, then thefollowing use cases will be as follows :- user presses bButton : only the validations of the b SmartForm are done (and also updates of the b models). The values entered bythe user on the other formComponents of the a SmartForm arepreserved (and here your code is of some interest to me). - user presses aButton : the validation occurs on all theformComponents inside the a SmartForm, and also on all theSmartForms that accept validation cascading, so formComponents of b SmartForm are also validated.Another interesting use case that is solved by this solution is theuse case where in the same form you have some formComponents neededfor the creation of something, and associated to a Create Button, and some other formComponents that display the contents of (editable)already created somethings (for bulk updates).Then you create 2 SmartForms : one SmartForm (lets call itcreateForm) for the formComponents needed when the user hits the Create Button (that then *need* to be validated), and one SmartFormfor the formComponents of the rest of the page (lets call itupdateForm, and say that it's bound to the global submit button of the page).And to end the settings of your components, you call somecreateForm.setCascadeValidation(false).Then when the global submit button of the page is called on the globalupdateForm, if the createForm is embedded in the updateForm, then validation will not occur on the createForm SmartForm (andthat's good !).A last interesting use case for this :in all the pages of you application, you have a little box that allows the user to sign in.A user hits a page where he can enter some values in some fields. Andbefore validating the page, he decides to log in. What I want is thatafter having logged in, the page still presents the values entered in its body by the user.So the need to :- have a single form for all the data of the page- use a concept like my SmartForm in order to separate theformComponents dedicated to the user login action (presumably login/password :-) from the formComponents of the main purpose of thepage at hand (some blog entry formComponents, ... whatever ...).Without the use of a concept like SmartForms and changes in Componentsas those mentioned by Matej, it will be very difficult, verbose, and error prone to have this *simple* and *basic* (user friendly centered)behaviour on all the pages of an application ...But yet, it is still all in my head, I have nothing to present yet(but I hope it will come soon). My 0,05 EUR, :-)--LaurentOn 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Well, having to do validation in model seems like a step backwards from what I have now. There are already validators that can be attached to objects, no to mention, that I would have issues with feedback, etc. I still don't think layered model is a way to go. Currently, I have a solution, that works well form me. But it has two drawbacks. 1. It's really hacky. 2. It uses the invalidInput property of form components to store temporary values. When clicking on an ImmediateButton, all form components are marked invalid (so that they remember the values in invalidInput) and all feedbackMessages are supressed. So after clicking immediateButton, all feedback messages are hidden (even the valid one). The advantages are that validation works as usual. I'm attaching the source code in case anyone needs this. It seems that this behavior (not implementation) won't have enough support to get into wicket. -Matej Johan Compagner wrote: first of all we are talking about 2 problems here! Matej's and Laurent problems are completely different. I still believe that Matej should use a temp model (in between model) And the validations shouldn't be
Re: [Wicket-user] Preserve form state
Okay, so if I understand you correctly, you suggest changing default form processing like this? - immediate button submitted: validate(); if (hasError(); { markFormComponentsInvalid(); onError(); } updateFormComponentsFakeModel(); // this is executed even if form has Error. But the model of all // components has to be a special two layer model and must know // whether to update the real model or only the fake model. This seems doable, the little complication I'm aware of is to ensure that all form components are having this special model. Another thing is that maybe two kind of model wrappers will be needed. One implementing ICompoundModel and one not. I'm not quite sure here. Say you have a form and set it's model to something like DoubleLayerCompoundModelWrapper. (it's a wrapper implementing ICompoundModel). All form components will inherit it. So far, so good. But if I have a form component with it's own model (say PropertyModel), could I just wrap the model with DoubleLayerCompoundModelWrapper too, even if it's not compound model? -Matej Johan Compagner wrote: it is not really a model in what you normally call a model. Now you are holding everything in those attributes What is then then? That is also a model but integrated into the form' I find that a bit uglier.. It's not the nicest solution, I'm quite aware of that. Therefore this thread. What kind of validation/feedback issues would you have? I don;t think anything will really change in the validation and or feedback. On 11/17/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, having to do validation in model seems like a step backwards from what I have now. There are already validators that can be attached to objects, no to mention, that I would have issues with feedback, etc. I still don't think layered model is a way to go. Currently, I have a solution, that works well form me. But it has two drawbacks. 1. It's really hacky. 2. It uses the invalidInput property of form components to store temporary values. When clicking on an ImmediateButton, all form components are marked invalid (so that they remember the values in invalidInput) and all feedbackMessages are supressed. So after clicking immediateButton, all feedback messages are hidden (even the valid one). The advantages are that validation works as usual. I'm attaching the source code in case anyone needs this. It seems that this behavior (not implementation) won't have enough support to get into wicket. -Matej Johan Compagner wrote: first of all we are talking about 2 problems here! Matej's and Laurent problems are completely different. I still believe that Matej should use a temp model (in between model) And the validations shouldn't be on the component level but between the between model and the real (strong typed) model. I really believe this is the best way. Any thing i can currently think of will result in something like that anyway.. The values Need to be stored somewhere!! So having something like a model: Model(Model realModel) { Hashmap values; getObject(Component comp) return values.get(comp); setObject(Component comp, Object value) values.put(comp, value); public void saveToReal() { Object realObject = realModel.getObject(null); while( Iterate over the values maps keys) Component key; String stringValue; Object value = converter.convertToType(stringValue); validator.validate(key,value) String id = key.getId() // or get some kind of binding see BoundedCompoundPropertyModel Objects.setValue(id,realObject,value,null); } } this is just a rought idea how a in between model should or could work. Laurents problem is completely different, He doesn't want to hold the data (and do nothing with it) over multiply pages. He just wants portions to be validated and portions to be kept for one request only but not validated. I think this is now already possible with the Button.defaultFormProcessing boolean Then the buttons must have a list of components which he must be validated before he does process everything. then he can call FormComponent.validate() and if that goes ok FormComponent.updateModel() (and so on on the complete List) I think we are then where we are. You just need a special button that has a list of FormComponents to be validated... On 11/16/05, *Johan Compagner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [Wicket-user] Preserve form state
why use a non default process button? (immediate?) If you have a in between model then all youre buttons can just be normal once that just doe simple validation (or non) to the in between model Then have one (or more) buttons that knows about that in between model And if that button is pressed it calls a method like processModel() on the inbetween model Then that model will do the real validation and pushes data to the real model (just like form does now) All feedback can still be set then if something goes wrong. I don't see a problem doing that or do i miss something? I still think that this is for youre specific case a pretty clean solution. But maybe i am missing something. johan On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Okay, so if I understand you correctly, you suggest changing defaultform processing like this?- immediate button submitted: validate(); if (hasError(); {markFormComponentsInvalid(); onError(); } updateFormComponentsFakeModel();// this is executed even if form has Error. But the model of all// components has to be a special two layer model and must know // whether to update the real model or only the fake model.This seems doable, the little complication I'm aware of is to ensurethat all form components are having this special model. Another thing is that maybe two kind of model wrappers will be needed.One implementing ICompoundModel and one not. I'm not quite sure here.Say you have a form and set it's model to something like DoubleLayerCompoundModelWrapper. (it's a wrapper implementingICompoundModel).All form components will inherit it. So far, so good. But if I have aform component with it's own model (say PropertyModel), could I just wrap the model with DoubleLayerCompoundModelWrapper too, even if it'snot compound model?-MatejJohan Compagner wrote: it is not really a model in what you normally call a model. Now you are holding everything in those attributes What is then then? That is also a model but integrated into the form' I find that a bit uglier..It's not the nicest solution, I'm quite aware of that. Therefore this thread. What kind of validation/feedback issues would you have? I don;t think anything will really change in the validation and or feedback. On 11/17/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, having to do validation in model seems like a step backwards from what I have now. There are already validators that can be attached to objects, no to mention, that I would have issues with feedback, etc. I still don't think layered model is a way to go. Currently, I have a solution, that works well form me. But it has two drawbacks. 1. It's really hacky. 2. It uses the invalidInput property of form components to store temporary values. When clicking on an ImmediateButton, all form components are marked invalid (so that they remember the values in invalidInput) and all feedbackMessages are supressed. So after clicking immediateButton, all feedback messages are hidden (even the valid one). The advantages are that validation works as usual. I'm attaching the source code in case anyone needs this. It seems that this behavior (not implementation) won't have enough support to get into wicket. -Matej Johan Compagner wrote: first of all we are talking about 2 problems here! Matej's and Laurent problems are completely different. I still believe that Matej should use a temp model (in between model) And the validations shouldn't be on the component level but between the between model and the real (strong typed) model. I really believe this is the best way. Any thing i can currently think of will result in something like that anyway.. The values Need to be stored somewhere!! So having something like a model: Model(Model realModel) { Hashmap values; getObject(Component comp)return values.get(comp); setObject(Component comp, Object value) values.put(comp, value);public void saveToReal(){ Object realObject = realModel.getObject(null); while( Iterate over the values maps keys) Component key; String stringValue; Object value = converter.convertToType(stringValue); validator.validate(key,value) String id = key.getId() // or get some kind of binding see BoundedCompoundPropertyModel Objects.setValue(id,realObject,value,null);} } this is just a rought idea how a in between model should or could work. Laurents problem is completely different, He doesn't want to hold the data (and do nothing with it) over multiply pages. He just wants portions to be validated and portions to be kept for one request only but not validated. I think this is now already possible with the Button.defaultFormProcessing boolean Then the buttons must have a list of components which he must be validated before he does process everything. then he can call FormComponent.validate() and if that goes ok FormComponent.updateModel() (and so on on the complete List) I think we are then where we are. You just need a special button that has a list of FormComponents to be
Re: [Wicket-user] There must be some docs somewhere?
Martijn Dashorst wrote: But how do we know what kind of documentation to write when we don't know what you are looking for? I think part of the problem is that the documentation is not as easily found as I for one would like. For instance, from the front page of the Wicket site, if I want to find the New User's Guide, I would have to look at the Documentation section and decide that since nothing else looks likely, I'll check out the Wiki. There, in the documentation section, I'll find a link to the (quite incomplete) guide. As a new user, I don't care that the documentation is maintained in a wiki, and I might not want to go hunting through a wiki to find what I want. So just choosing to click that link is a leap of faith. Had there been a link from the front page to the New User's Guide, I wouldn't have hesitated to go to it. Similarly, for quite some time, even though I'd looked at the wicket-examples often, I'd always gone in looking for something specific, and never even noticed that there was a good Component Reference. Once again, if this were linked to from the home page, it would be much quicker to find. Or take the whole CVS issue. We all know that Sourceforge's CVS can get very annoying. I've been able to download the wicket-contrib modules that I know about, but I've never been able to get a comprehensive list of such modules. SF always tells me that the list is not available, but I've never found the whole list. Eelco's message in this thread is the longest list I've seen, and I doubt it's complete. What I would prefer would be a Documentation page linked off the front page which contains and organizes links to all the known resources. But for now, the documentation menu lists only Vision, FAQ, Javadoc, Wiki, and Dependencies. Plus there is the getting started menu, which has Examples and Download. The FAQ is minimal (which might be a good thing.) Vision is interesting, but doesn't tell me anything about *how* to do anything. Javadoc is great once you're going, but isn't usually helpful in getting going. The examples are good, but there aren't many. One specific example of my own process is that I needed to have a class with some markup and child classes with their own embedded markup. I didn't exactly want a border or a panel. It was only because I'd been reading this list and seen the phrase markup inheritance that I knew what to look for, and even then I found it with Google and not from any of the obvious documentation sources. I eventually found my way with Google and this mailing list, but the process might have been much quicker if the New User's Guide were more complete, and if these other resources were easier to find. I'm hoping in the next several weeks to be able to contribute a little to these, but I am still too far from being an expert to be very sure of myself in any of this. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preserve form state
Because I want form components to do the validation, not the model. I want the form code to be as close to an ordinary wicket form as possible. That means that components themselves do the validation, not the model. If I used the default process button, the action (like showing Choose screen) wouldn't be executed unless all entered data is valid. It seems that I will play a little with the idea of double layer models and see, if it's better than my current solution. -Matej Johan Compagner wrote: why use a non default process button? (immediate?) If you have a in between model then all youre buttons can just be normal once that just doe simple validation (or non) to the in between model Then have one (or more) buttons that knows about that in between model And if that button is pressed it calls a method like processModel() on the inbetween model Then that model will do the real validation and pushes data to the real model (just like form does now) All feedback can still be set then if something goes wrong. I don't see a problem doing that or do i miss something? I still think that this is for youre specific case a pretty clean solution. But maybe i am missing something. johan On 11/17/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Okay, so if I understand you correctly, you suggest changing default form processing like this? - immediate button submitted: validate(); if (hasError(); { markFormComponentsInvalid(); onError(); } updateFormComponentsFakeModel(); // this is executed even if form has Error. But the model of all // components has to be a special two layer model and must know // whether to update the real model or only the fake model. This seems doable, the little complication I'm aware of is to ensure that all form components are having this special model. Another thing is that maybe two kind of model wrappers will be needed. One implementing ICompoundModel and one not. I'm not quite sure here. Say you have a form and set it's model to something like DoubleLayerCompoundModelWrapper. (it's a wrapper implementing ICompoundModel). All form components will inherit it. So far, so good. But if I have a form component with it's own model (say PropertyModel), could I just wrap the model with DoubleLayerCompoundModelWrapper too, even if it's not compound model? -Matej Johan Compagner wrote: it is not really a model in what you normally call a model. Now you are holding everything in those attributes What is then then? That is also a model but integrated into the form' I find that a bit uglier.. It's not the nicest solution, I'm quite aware of that. Therefore this thread. What kind of validation/feedback issues would you have? I don;t think anything will really change in the validation and or feedback. On 11/17/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, having to do validation in model seems like a step backwards from what I have now. There are already validators that can be attached to objects, no to mention, that I would have issues with feedback, etc. I still don't think layered model is a way to go. Currently, I have a solution, that works well form me. But it has two drawbacks. 1. It's really hacky. 2. It uses the invalidInput property of form components to store temporary values. When clicking on an ImmediateButton, all form components are marked invalid (so that they remember the values in invalidInput) and all feedbackMessages are supressed. So after clicking immediateButton, all feedback messages are hidden (even the valid one). The advantages are that validation works as usual. I'm attaching the source code in case anyone needs this. It seems that this behavior (not implementation) won't have enough support to get into wicket. -Matej Johan Compagner wrote: first of all we are talking about 2 problems here! Matej's and Laurent problems are completely different. I still believe that Matej should use a temp model (in between model) And the validations shouldn't be on the component level but between the between model and the real (strong typed) model. I really believe this is the best way. Any thing i can currently think of will result in something like that anyway.. The values Need to be stored somewhere!! So
Re: Re: [Wicket-user] My take on Spring integration
done. -Igor On 11/17/05, Christian Essl [EMAIL PROTECTED] wrote: On Wed, 16 Nov 2005 23:50:11 -0800, Igor Vaynberg[EMAIL PROTECTED] wrote: http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-spring/src/java/wicket/contrib/ here i can see the proxy/injection/spring packages, so its up to date.Thanks now I can also check it out. One final thing: The JDKHandler should catch on method.invoke() theInvocationTargetException and throw the wrapped exception. Otherwise whenthe code which uses the proxy trys to catch an Exception thrown by the underlying object it will never get it (only anUndeclaredThrowableException). See the javadoc ofInvocationHandler.invoke() Throws.Christian I was just thinking of an easy way to configure the static instance gotten from SpringInjector.getInstance(). So I thought that SpringInjector.getInstance() would call ApplicationContext.getBean(SpringInjector,SpringInjector.class) and if there is none return the singelton instance. but then you have to make the bean name configurable, what if someone has two injectors or wants a different name. it will never end. creating a custom one is trivial because the base class is very simple. a few lines of code later you can have one that works great for you. An alternative could be that there is a generic injector which loads a list of IFieldValueFactories from the WebApplication. once again, i think this is better done in a custom way. its very easy to have something like this: class InjectorLocator { public static Injector getInjector() { // create and return injector here } } then instead of using springwebpage create your own that uses the static lookup from injectorlocator to get the injector as opposed to using the default springinjector. this can even allow you to do unit testing on your pages, just have some flag in getInjector() that returns a noop implementation. -Igor--Christian Essl___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
Or take the whole CVS issue.We all know that Sourceforge's CVS can getvery annoying.I've been able to download the wicket-contrib modules that I know about, but I've never been able to get a comprehensive listof such modules.SF always tells me that the list is not available, butI've never found the whole list. Eelco's message in this thread is the longest list I've seen, and I doubt it's complete. http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/ also eclipse has no problem listing all the modules available when checking out a project. -Igor
Re: [Wicket-user] There must be some docs somewhere?
OK, thanks for your feedback. We'll try to integrate them soon (better sooner than later). Martijn On 11/17/05, Scott Sauyet [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: But how do we know what kind of documentation to write when we don't know what you are looking for?I think part of the problem is that the documentation is not as easily found as I for one would like.For instance, from the front page of theWicket site, if I want to find the New User's Guide, I would have tolook at the Documentation section and decide that since nothing elselooks likely, I'll check out the Wiki.There, in the documentation section, I'll find a link to the (quite incomplete) guide.As a newuser, I don't care that the documentation is maintained in a wiki, and Imight not want to go hunting through a wiki to find what I want.So just choosing to click that link is a leap of faith.Had there been alink from the front page to the New User's Guide, I wouldn't havehesitated to go to it.Similarly, for quite some time, even though I'd looked at the wicket-examples often, I'd always gone in looking for somethingspecific, and never even noticed that there was a good ComponentReference.Once again, if this were linked to from the home page, itwould be much quicker to find. Or take the whole CVS issue.We all know that Sourceforge's CVS can getvery annoying.I've been able to download the wicket-contrib modulesthat I know about, but I've never been able to get a comprehensive list of such modules.SF always tells me that the list is not available, butI've never found the whole list. Eelco's message in this thread is thelongest list I've seen, and I doubt it's complete.What I would prefer would be a Documentation page linked off the front page which contains and organizes links to all the known resources.Butfor now, the documentation menu lists only Vision, FAQ, Javadoc, Wiki,and Dependencies.Plus there is the getting started menu, which has Examples and Download.The FAQ is minimal (which might be a goodthing.)Vision is interesting, but doesn't tell me anything about *how*to do anything.Javadoc is great once you're going, but isn't usually helpful in getting going.The examples are good, but there aren't many.One specific example of my own process is that I needed to have a classwith some markup and child classes with their own embedded markup.I didn't exactly want a border or a panel.It was only because I'd beenreading this list and seen the phrase markup inheritance that I knewwhat to look for, and even then I found it with Google and not from any of the obvious documentation sources.I eventually found my way with Google and this mailing list, but theprocess might have been much quicker if the New User's Guide were morecomplete, and if these other resources were easier to find.I'm hoping in the next several weeks to be able to contribute a little to these,but I am still too far from being an expert to be very sure of myself inany of this. -- Scott--- This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1
[Wicket-user] Redirecting to Intercept Page from within a Panel
I currently have a confirmation panel which allows a user to click a link and go to another page to edit their shipping address, but I want them to return to the confirmation panel (part of a page) after they edit their shipping address. So, I added a link to the panel with its onClick() method saying: getPage().redirectToInterceptPage(new MyPage()) However, when I do this, I get an error that says: wicket.WicketRuntimeException: Already redirecting to '/foo?path=13'. Cannot redirect more than once What does that mean? I don't understand where I'm redirecting more than once. Is there something I'm doing wrong or is this something that is not possible? Thanks for any help, Andrew
Re: [Wicket-user] Preserve form state
On 11/17/05, Johan Compagner [EMAIL PROTECTED] wrote: youre SmartForms are just what i described as and Array/List inside a button so that a button knows what to valdate when it gets pressed. Certainly, it is an attempt to generalize this solution. But you're not fair when you say that it is just the same. I'll try to code some things and then come back to the list with it. I would like to be able to have such functionality by coding this as a SmartForm user: MyPage.html form wicket:id=globalForm .. !-- Login logical form -- span wicket:id=loginForm input type=text wicket:id=login/ input type=password wicket:id=password/ ... input type=button wicket:id=loginButton/ /span !-- Search logical form -- span wicket:id=searchForm input type=text wicket:id=searchCriteria/ input type=button wicket:id=searchButton/ /span !-- Main body logical form -- input type=text wicket:id=globalField/ ... input type=button wicket:id=globalButton/ /form MyPage.java MyPage() { SmartForm globalForm = new SmartForm(globalForm); add(globalForm); SmartForm loginForm = new SmartForm(loginForm); add(loginForm); SmartForm searchForm = new SmartForm(searchForm); add(searchForm); // ... form configuration as usual, maybe use a CompoundPropertyModel ... loginForm.add(new TextField(login)); loginForm.add(new TextField(password)); loginForm.add(new Button(loginButton, Log In)); // Indicate that the loginForm will not participate in the Global Form validation process // So just the loginButton will have a validation/model update action on the loginForm loginForm.setPropagateValidation(false); // ... same for search Form searchForm.add(new TextField(searchCriteria)); searchForm.add(new Button(searchButton), Search); // SearchForm do not participate in global validation searchForm.setPropagateValidation(false); // Main page form globalForm.add(new TextField(globalField)); ... globalForm.add(new Button(globalButton, Submit page entries); } This would allow great validation units of work power, while keeping it as simple as it is now for common use cases. What do you think about it ? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
and dont forget irc.freenode.net #wicket there is usually someone who can answer your question there if you are looking for more of a real time conversation. -Igor
Re: [Wicket-user] Preserve form state
It would be nice if this thread ended up with some recommendations on how the (default) form processing itself might be enhanced in order to support complex validation/ model updating. Just a note to say that it's okay to send in patches that touch wicket-core :) Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
Igor Vaynberg wrote: Or take the whole CVS issue. We all know that Sourceforge's CVS can get very annoying. I've been able to download the wicket-contrib modules that I know about, but I've never been able to get a comprehensive list of such modules. SF always tells me that the list is not available, but I've never found the whole list. Eelco's message in this thread is the longest list I've seen, and I doubt it's complete. http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/ also eclipse has no problem listing all the modules available when checking out a project. Thank you. But is that link available from any of the places a beginner will look for documentation? I am a pretty competent Java programmer, and I've done small amounts of OSS work using CVS against Sourceforge; in fact I knew that sourceforge had a viewcvs implementation available, and knew I could find it if I tried. But I usually work with the TortoiseCVS Windows shell extension; when I use it to try to fetch modules it reports that the list is unavailable. If that list were available from the Wicket documentation (just the link above would be fine) then someone wanting to find what's in wicket-stuff would be able to do it without searching Sourceforge's documentation. It's not that the documentaion doesn't exist. Much does, and much of it is pretty good. But it's rather difficult to find. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CompoundPropertyModel without OGNL in 1.1
How about the percentage it takes up in comparison of the total computing for one request? Any other bottlenecks you can identify? Or was - like Johan said - OGNL one of the biggest hurdles? Eelco On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Okay, I took CompoundPropertyModel from 1.2 and put it to my project, so that I can directly compare CompoundPropertyModel from 1.1 and 1.2. And Johan, you are going to like the result :) It's pretty impressive. On one page (with DataView - 7 columns and 10 rows), the rendering with old CompoundPropertyModels takes 330-400 ms and with new 40-80ms. Now that's a difference you can really feel. -Matej Matej Knopp wrote: Okay, I understand. Actually, I don't really want OGNL CompoundPropertyModel to be replaced. I just want to have the possibility of non-ognl compound property model in 1.1. So maybe It could be added to wicket-extensions? -Matej Martijn Dashorst wrote: I'd rather finalize 1.2 sooner, cutting off new features, than backport the OGNL replacement into 1.1. It is a breaking change, and by its nature, a 1.1.x release should not break stuff. Martijn On 11/16/05, Johan Compagner [EMAIL PROTECTED] wrote: are you really seeing big performance improvements when comparing the same app with 1.1 and 1.2? Thats nice to hear :) Backporting to 1.1.1 ... we could do it but it is a big change.. that could affect running installs (you can't just swap 1.1 to 1.1.1 then if you depend a bit more on ognl) This should be an issue where we should count votes! johan On 11/16/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. My current benchmark shows that CompoundPropertyModel is a serious performance issue when having big dataview. Is there any chance that the new CompoundPropertyModel from 1.2 will be backported to 1.1? -Matej --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1288 (20051115) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
are you pointing tortoise to the right place? cvsroot sf.net/cvsroot/wicket-stuff as opposed to sf.net/cvsroot/wicket-stuff/wicket-stuff ? the latter is for the wicket-stuff website itself. eclipse, for example, has no problems listing all the modules when i point it to sf.net/cvsroot/wicket-stuff. -Igor On 11/17/05, Scott Sauyet [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: Or take the whole CVS issue.We all know that Sourceforge's CVS can get very annoying.I've been able to download the wicket-contrib modules that I know about, but I've never been able to get a comprehensive list of such modules.SF always tells me that the list is not available, but I've never found the whole list. Eelco's message in this thread is the longest list I've seen, and I doubt it's complete. http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/ also eclipse has no problem listing all the modules available when checking out a project.Thank you.But is that link available from any of the places a beginnerwill look for documentation?I am a pretty competent Java programmer,and I've done small amounts of OSS work using CVS against Sourceforge; in fact I knew that sourceforge had a viewcvs implementation available,and knew I could find it if I tried.But I usually work with theTortoiseCVS Windows shell extension; when I use it to try to fetchmodules it reports that the list is unavailable.If that list were available from the Wicket documentation (just the link above would befine) then someone wanting to find what's in wicket-stuff would be ableto do it without searching Sourceforge's documentation.It's not that the documentaion doesn't exist.Much does, and much of it is pretty good.But it's rather difficult to find. -- Scott---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CompoundPropertyModel without OGNL in 1.1
Well, the numbers I've sent are rought, I know, I didn't profile it. It's just a filter that checks how much time does it take to process a request. The only change between the two numbers was that I switch old CompoundPropertyModel to new model (called FastCompoundPropertyModel to distinguish easier :)) I might count the time, how much does it take for the model to access bean data, shouldn't be difficult. I'm not aware of any other bottleneck, the current numbers are quite satisfying for me now. -Matej Eelco Hillenius wrote: How about the percentage it takes up in comparison of the total computing for one request? Any other bottlenecks you can identify? Or was - like Johan said - OGNL one of the biggest hurdles? Eelco On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Okay, I took CompoundPropertyModel from 1.2 and put it to my project, so that I can directly compare CompoundPropertyModel from 1.1 and 1.2. And Johan, you are going to like the result :) It's pretty impressive. On one page (with DataView - 7 columns and 10 rows), the rendering with old CompoundPropertyModels takes 330-400 ms and with new 40-80ms. Now that's a difference you can really feel. -Matej Matej Knopp wrote: Okay, I understand. Actually, I don't really want OGNL CompoundPropertyModel to be replaced. I just want to have the possibility of non-ognl compound property model in 1.1. So maybe It could be added to wicket-extensions? -Matej Martijn Dashorst wrote: I'd rather finalize 1.2 sooner, cutting off new features, than backport the OGNL replacement into 1.1. It is a breaking change, and by its nature, a 1.1.x release should not break stuff. Martijn On 11/16/05, Johan Compagner [EMAIL PROTECTED] wrote: are you really seeing big performance improvements when comparing the same app with 1.1 and 1.2? Thats nice to hear :) Backporting to 1.1.1 ... we could do it but it is a big change.. that could affect running installs (you can't just swap 1.1 to 1.1.1 then if you depend a bit more on ognl) This should be an issue where we should count votes! johan On 11/16/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. My current benchmark shows that CompoundPropertyModel is a serious performance issue when having big dataview. Is there any chance that the new CompoundPropertyModel from 1.2 will be backported to 1.1? -Matej --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1288 (20051115) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Wicket for tapestry users
A lot of tbd :) I think if you want to compare, there's nothing that beats taking a look at code. Wicket has e.g. a hangman example and a component reference (part of wicket-examples); if you take a look at that code, and maybe try something yourself, you should get a fairly good idea. Some of the main differences: * Wicket is not a managed framework. That means that you - the programmer - are in charge of component creation yourself. You do this with javacode opposed to doing it declarative. Pro: gives you flexibility/ you wont be limited by what the framework builders thought up/ you don't have to learn how the framework manages and how the declaring language (xml) works. Con: harder to integrate with other frameworks somethimes/ wicket internals sometimes difficult. * (like Igor said) Wicket purposefuly does not support scripting like features in your markup. Pro: everything stays very clean and it is easier to guess how things should be done. Con: harder for people that are used to a 'php/jsp way of doing things' and you need programmers that at least understand the basics of OO Java programming. Pro: clarity and cleaneness. Con: some things are more work with Wicket and you have to keep your java component tree in sync with the markup nesting. * With Wicket every component is truly stateful. Every property you define is part of it's state, and there is a flexible undo mechanism you can use to support any advanced backbutton support you might want. No need for a rewind mechanism. Furthermore, wicket component can be nested and can take part of any collaboration you want in the same fashion you could do in e.g. Swing. Pro: flexibility and very easy to do complex things if you know your Java. Con: sometimes easy to end up with unoptimized spaghetti like code if you take too many short cuts (much like you could have with Swing). * Creating custom components with Wicket is super easy. Just extend from an existing one (or from base class WebComponent or WebMarkupContainer), make it available in your classpath and your done. There's no extra configuration (libraries) and magical strings (ids) involved. For advanced component initialization, you can use IInitializer. Hope this helps, Eelco On 11/17/05, Marco van de Haar [EMAIL PROTECTED] wrote: I don't really know if it's up to date, but you could check http://www.wicket-wiki.org.uk/wiki/index.php/For_Tapestry_Users in the Wicket wiki Marco Detlef Schulze wrote: Sorry, should read: tapestry and wicket or wicket and WebObjects of course ... -Original Message- *From:* Detlef Schulze *Sent:* Donnerstag, 17. November 2005 12:59 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Wicket for tapestry users Hi, the last projects I was involved I implemented with tapestry. I am of the opinion that it is important (and interesting) to check once in a while what the competitors are doing ;-) So the question is: Is anybody aware of some online resources where tapestry and wicket or tapestry and WebObjects are compared? cheers, detlef --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] performance problem - urgent
Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
The online page throws an exception. Are you using a resource reference(!) and not a plain resource? Check out PackagedResourceReference. Juergen On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
No, he is not using resource reference. The site worked, just a while ago. The image was a static image, served by the http server, just without the right headers. -Matej Juergen Donnerstag wrote: The online page throws an exception. Are you using a resource reference(!) and not a plain resource? Check out PackagedResourceReference. Juergen On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preserve form state
do you really want that seperating also in the html? (with all those spans?) Looking at youre example and guessing what the smartform (and the button in it does) IT is the same, the smart form is just the holder of the components just as i said my List object inside a button would be. It is just a bit different composition of things. I do see something in this (don't know how manu people would really use this but it would be nice) What i don't like is that you also has to specify it in html. I would like to do that pure in java. (so a smart form is not a Wicket component) johan On 11/17/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 11/17/05, Johan Compagner [EMAIL PROTECTED] wrote: youre SmartForms are just what i described as and Array/List inside a buttonso that a button knows what to valdate when it gets pressed. Certainly, it is an attempt to generalize this solution. But you'renot fair when you say that it is just the same.I'll try to code some things and then come back to the list with it.I would like to be able to have such functionality by coding this as a SmartForm user:MyPage.htmlform wicket:id=globalForm ..!-- Login logical form --span wicket:id=loginForminput type=text wicket:id=login/ input type=password wicket:id=password/...input type=button wicket:id=loginButton//span!-- Search logical form -- span wicket:id=searchForminput type=text wicket:id=searchCriteria/input type=button wicket:id=searchButton//span !-- Main body logical form --input type=text wicket:id=globalField/...input type=button wicket:id=globalButton/ /formMyPage.javaMyPage() {SmartForm globalForm = new SmartForm(globalForm);add(globalForm);SmartForm loginForm = new SmartForm(loginForm);add(loginForm); SmartForm searchForm = new SmartForm(searchForm);add(searchForm);// ... form configuration as usual, maybe use a CompoundPropertyModel ...loginForm.add(new TextField(login)); loginForm.add(new TextField(password));loginForm.add(new Button(loginButton, Log In));// Indicate that the loginForm will not participate in the GlobalForm validation process // So just the loginButton will have a validation/model updateaction on the loginFormloginForm.setPropagateValidation(false);// ... same for search FormsearchForm.add(new TextField(searchCriteria)); searchForm.add(new Button(searchButton), Search);// SearchForm do not participate in global validationsearchForm.setPropagateValidation(false);// Main page formglobalForm.add (new TextField(globalField));...globalForm.add(new Button(globalButton, Submit page entries);}This would allow great validation units of work power, while keeping it as simple as it is now for common use cases.What do you think about it ?---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Examfor All Training Attendees Through End of 2005. For more info visit:http://ads.osdn.com/?ad_idv28alloc_id845opclick ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Redirecting to Intercept Page from within a Panel
redirectToInterceptPage() should only really be used in the checkAccess() page If you want to return to a page. Why not give the page that is Editing the Shipping address the page instance where it came from and where he should return to? so youre link click: setResponsePage(new MyPage(this)); and then in MyPage in the form submit (or something) setResponsePage(myPreviousStoredPage) johan On 11/17/05, Andrew Berman [EMAIL PROTECTED] wrote: I currently have a confirmation panel which allows a user to click a link and go to another page to edit their shipping address, but I want them to return to the confirmation panel (part of a page) after they edit their shipping address. So, I added a link to the panel with its onClick() method saying: getPage().redirectToInterceptPage(new MyPage()) However, when I do this, I get an error that says: wicket.WicketRuntimeException: Already redirecting to '/foo?path=13'. Cannot redirect more than once What does that mean? I don't understand where I'm redirecting more than once. Is there something I'm doing wrong or is this something that is not possible? Thanks for any help, Andrew
Re: [Wicket-user] performance problem - urgent
Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preserve form state
On 11/17/05, Johan Compagner [EMAIL PROTECTED] wrote: do you really want that seperating also in the html? (with all those spans?) No, not sure it's what I definitely want, I'm still in the brainstorming process, as I said. Looking at youre example and guessing what the smartform (and the button in it does) IT is the same, the smart form is just the holder of the components just as i said my List object inside a button would be. It is just a bit different composition of things. Yes, it is some kind of holder with some interesting behaviour. As a Wicket component, I thought that it was cool that this component can decide if it wants to participate to the current validation or not, based on the propagateValidation flag and on the button(s)/action(s) that triggered the global/real html form submit. I do see something in this (don't know how manu people would really use this but it would be nice) What i don't like is that you also has to specify it in html. I would like to do that pure in java. (so a smart form is not a Wicket component) I understand that SmartForm is not directly bound to an html item, but I wanted it to be like a Border ... so that it has the power to participate in the standard validation / rendering flow. I think we definitely arrive at the time where I have to suggest some code base (be it a patch toward the core, or some Components extensions, or a mix of the two with, as Eelco suggests, a patch toward core that could provide hooks to do the rest in third party libraries ...) Hope this will come soon, -- Laurent --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I thought a little and maybe, but just maybe, the images are not cached because of the way wicket forms the urls and everything ... I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All
Re: [Wicket-user] performance problem - urgent
But you don't have the wicket servlet mapped to the images url, so it has no way to affect the images. Another thing that comes to my mind is that maybe you have a servlet filter that can cause this, but it doesn't seem probable to me. Could you send your web.xml? -Matej Dorel Vaida wrote: Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I thought a little and maybe, but just maybe, the images are not cached because of the way wicket forms the urls and everything ... I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user
Re: [Wicket-user] performance problem - urgent
is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1290 (20051117) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
I see on the home page 'Cache-Control no-cache'. Is this there for a special reason? META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 How does this affect the browser? Martijn On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I thought a little and maybe, but just maybe, the images are not cached because of the way wicket forms the urls and everything ... I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free
Re: [Wicket-user] performance problem - urgent
#: Matej Knopp changed the world a bit at a time by saying on 11/17/2005 8:28 PM :# No, he is not using resource reference. The site worked, just a while ago. The image was a static image, served by the http server, just without the right headers. -Matej Matej can you add some more details to the last sentence of yours. Thanks a lot. ./alex -- .w( the_mindstorm )p. Juergen Donnerstag wrote: The online page throws an exception. Are you using a resource reference(!) and not a plain resource? Check out PackagedResourceReference. Juergen On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user !DSPAM:437ccbf7533428965110494! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
I made a copy of the sources on my local disk, and removed those meta-tags. It didn't help :-( It probably is a configuration issue. Did you test on a alternate system, and do you have the same problem there? Martijn On 11/17/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I see on the home page 'Cache-Control no-cache'. Is this there for a special reason? META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 How does this affect the browser? Martijn On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I thought a little and maybe, but just maybe, the images are not cached because of the way wicket forms the urls and everything ... I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list
Re: [Wicket-user] performance problem - urgent
#: Martijn Dashorst changed the world a bit at a time by saying on 11/17/2005 9:55 PM :# I see on the home page 'Cache-Control no-cache'. Is this there for a special reason? META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 How does this affect the browser? Martijn afaik these headers instruct the browser to fetch the page for each hit. I don't know how static content is treated, but this may be the cause. ./alex -- .w( the_mindstorm )p. On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I thought a little and maybe, but just maybe, the images are not cached because of the way wicket forms the urls and everything ... I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
Re: [Wicket-user] performance problem - urgent
The image is served by the http server (apache), but is seems to be obtained through tomcat connector, so it's provided by tomcat. Neverthelles, the result is, that for some reason, the image lacks the Last-Modified http header. Therefore the browser always checks and downloads it, because it doesn't know that the image hasn't changed. -Matej Alexandru Popescu wrote: #: Matej Knopp changed the world a bit at a time by saying on 11/17/2005 8:28 PM :# No, he is not using resource reference. The site worked, just a while ago. The image was a static image, served by the http server, just without the right headers. -Matej Matej can you add some more details to the last sentence of yours. Thanks a lot. ./alex -- .w( the_mindstorm )p. Juergen Donnerstag wrote: The online page throws an exception. Are you using a resource reference(!) and not a plain resource? Check out PackagedResourceReference. Juergen On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user !DSPAM:437ccbf7533428965110494! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1290 (20051117) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user !DSPAM:437ce05d649351091387246! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1290 (20051117) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user !DSPAM:437ce05d649351091387246! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1290 (20051117) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user !DSPAM:437ce05d649351091387246! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1290 (20051117) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Redirecting to Intercept Page from within a Panel
Yeah, that's what I did instead and it worked. Thanks, AndrewOn 11/17/05, Johan Compagner [EMAIL PROTECTED] wrote: redirectToInterceptPage() should only really be used in the checkAccess() page If you want to return to a page. Why not give the page that is Editing the Shipping address the page instance where it came from and where he should return to? so youre link click: setResponsePage(new MyPage(this)); and then in MyPage in the form submit (or something) setResponsePage(myPreviousStoredPage) johan On 11/17/05, Andrew Berman [EMAIL PROTECTED] wrote: I currently have a confirmation panel which allows a user to click a link and go to another page to edit their shipping address, but I want them to return to the confirmation panel (part of a page) after they edit their shipping address. So, I added a link to the panel with its onClick() method saying: getPage().redirectToInterceptPage(new MyPage()) However, when I do this, I get an error that says: wicket.WicketRuntimeException: Already redirecting to '/foo?path=13'. Cannot redirect more than once What does that mean? I don't understand where I'm redirecting more than once. Is there something I'm doing wrong or is this something that is not possible? Thanks for any help, Andrew
Re: [Wicket-user] Re: ComponentFeedbackMessageFilter
Hmm the code we were looking at was: class MyFbPanel extends FeedbackPanel { private final Component component; MyFbPanel(String id, Component c) { super(id); this.component = c; } protected IFeedbackMessageFilter getFeedbackMessageFilter() { return new ComponentFeedbackMessageFilter(component); } } This is an actual documented Java gotcha, discussed in the JavaOne presentation More Java Puzzlers, by Neal Gafter and Joshua Blog. public class JavaPuzzler { public static void main(String[] args) { new B(Hello).print(); } public static abstract class A { public A() { print(); } protected abstract void print(); } public static class B extends A { final String foo; public B(String f) { super(); this.foo = f; } protected void print() { System.out.println(foo = + foo); } } } What do you expect on the console here? Martijn On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Well, it's little more complicated. FeedbackPanel doesn't use the filter directly. It uses FeedbackMessagesModel to feed the ListView, and that model uses the Filter. Nevertheless, overriding getFeedbackMessageFilter worked well for me. Which version of wicket are you using? I'm using 1.1 and I'm having no problems with it. -Matej Marco van de Haar wrote: I thought I did that: //in constructor, where fc is the desired component filter = new ComponentFeedbackMessageFilter(fc); and protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } I copied this method from FormComponentFeedbackIndicator where it seems to work. But my custom FeedbackPanel still shows the errormessages for ALL the invalid components. But I looked at FeedbackPanel's internals and I could not find where the population of the errormessage ListView used the Filter. Of course it is possible. Just override getFeedbackMessageFilter on it and provide your own message filter. -Matej Marco van de Haar wrote: Does anyone know if it is at least possible to make a custom FeedbackPanel which displays messages only for a specific component? I want to make an extended FeedbackPanel which only shows messages for Component fc. See code below. But when I display my panel I see the feedbackmessages for ALL of the components that are invalid. I checked the toString() for fc: [MarkupContainer [Component id = integerProperty, page = No Page, path = inputForm:integerProperty.RequiredTextField]] which I think means it's the required textfield Does anyone know what I am doing wrong? public class FXTooltipFeedbackPanel extends FeedbackPanel { /** The message filter for this indicator component */ private ComponentFeedbackMessageFilter filter; /** * @param id Component id * @param fc formcomponent to display messages for */ public FXTooltipFeedbackPanel(String id, FormComponent fc) { super(id); filter = new ComponentFeedbackMessageFilter(fc); } /** * @return Let subclass specify some other filter */ protected IFeedbackMessageFilter getFeedbackMessageFilter() { return filter; } protected String getCSSClass(FeedbackMessage message) { return feedbackTooltipERROR; } } --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
OK, I'll try to be more helpful in my criticism... Having finally found wicket-stuff, I was able to spend some time looking at the code that addresses my needs (hibernate integration most specifically), and I'm feeling a little more comfortable. More importantly, I'm going to have to write sample/framework code and documentation for my team in order to bring them up to speed. If I do so, I will certainly be contributing them back to be integrated into the documentation in some way. Off the top of my head, here are some of the things I would like to see: A suite of examples that build upon each other in gradual steps, introducing concepts in a logical order in order to build an increasingly complex application in an attempt to reduce the slope of the learning curve. Ideally, the final examples should be a fairly usable application, using all the functionality available and demonstrating best practices. That's basically the structure of the ... in Action books from Manning, whgch has always worked well for me. Not trivial to generate, of course, but it seems like whoever does would be a srong candidate for authorship of WIcket in Action which is a nice resume bullet point. The widespread use of anonymous classes in all of the example code make life needlessly difficult for newcomers. I'm still having trouble understanding how and when some of the model objects get updated, although the wicket-stuff code started to clear some of that up. Personally, I think the use of anonymous classes should be saved until after a reasonable understanding of the functionality has been achieved. Database integration is fundamental to the vast majority of web applications, and yet it is totally unaddressed by the current documentation. I kept finding reference to tight integration with Hibernate, but could never find examples or even a description of it. That stuff should be put front and center in the core docs. It was the piece I started looking for first, in order to evaluate wicket, and I was unable to find it for days. The nice thing is that if examples use a fairly generic DAO abstraction, it should be possible to provide nice examples that aren't dependant upon any particular suite of technologies. Just describe the DAO interface and then use those them to access standard POJOs. Obviously, most folks will probably be doing a Hibernate/Spring thing, so addressing best practices for combin ing those technologies with Wicket is enormously valuable, but it should be secondary to providing generic best practices for dealing with DAO access, detachability, etc. One of the issues I'm still having is that I know nothing about Spring. Since every example I've found uses Spring inversion of control, they can be difficult to comprehend the flow. By using a generic DAO interface, it would be easier to understand the relevant wicket concepts, and I could then separate hibernate from spring and wicket. Another fundamental change - make sure ALL of the examples are listed on the website, even if they don't all have nice descriptive documents. I read through the examples on the home page (hellow world, navomatic, guestbook, and stockquote), and assumed that that was all that was available from the examples. I didn't happen to click on the link to see the wicket-examples in live action, which would have exposed all the other available examples, including the all important component reference. There is no direct link to the component reference from the wicket home page. You have to click on a link describe merely as 'live action' versions of the examples listed on the same page, in order to discover it. In my case, I didn't discover it until I installed the wicket-examples into my own container and pointed my browser at it. The descriptive documentation for wicket-stuff really needs to be improved. I hate to say it, but I'm pretty old school. I edit my java code in vi in a terminal window. I use CVS from the command line. I compile my projects with ant. I can't stand eclipse (it just eats up desktop real estate and forces me to use the mouse all the time). As such, randomly discovering that all of the instructions on the wicket-stuff website were incorrect is more than a little difficult and frustrating. Just cleaning up the instructinos and providing a decent description of what I can expect to fnd for my trouble would be REALLY handy. I still don't know what the wicket quickstart project is or does. I don't know use any of those IDEs and there is very little descriptive text. If I knew what it provided, I might motivate to install eclipse to check it out, but given the lack of usefulness of other examples and documentation, I figured it would be similar, so I never bothered to investigate that far, since it would have been a large PITA. Actually, I just watched the video and it doesn't provide any info about writing wicket code, beyond how to insert a label, which is covered by hello, world. So,
Re: [Wicket-user] Preserve form state
OK, now I have a first attempt to submit. It is what could be considered as a cleaner way to address Matej's initial problem. But it is a hack to the core, so it's normal that I've come up with something cleaner I think. And as it's a modification to the core, it's also more error-prone. It is too late tonight for me to explain what I did, so please for the moment take a look at the 2 new classes versions : wicket.markup.html.form.Form wicket.markup.html.form.FormComponent or the diffs files if you prefer. And I've joined 2 very basic test files (markup class) In short : in the new version, on formSubmitted(), child form components are told that a new user input is available (method FormComponent.newUserInputAvailable()). In this method, the FormComponent stores the user input in a rawInput field. This rawInput is then available for re-rendering for both use cases : when data is invalid and when model is not up to date (for example when returning from another page as in Matej's use case, the form will be rendered again with the rawInput, and not the model). You can see that it also frees the FormComponent code from the weird NO_INVALID_INPUT constant (by using a modelUpToDate boolean field) Fiuu, time to sleep now ! :-) regards, -- laurent Form.java.diff Description: Binary data Form.java Description: Binary data FormComponent.java Description: Binary data FormComponent.java.diff Description: Binary data
Re: [Wicket-user] Preserve form state
Whoops, the missing test files in attachment ... :-) On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: OK, now I have a first attempt to submit. It is what could be considered as a cleaner way to address Matej's initial problem. But it is a hack to the core, so it's normal that I've come up with something cleaner I think. And as it's a modification to the core, it's also more error-prone. It is too late tonight for me to explain what I did, so please for the moment take a look at the 2 new classes versions : wicket.markup.html.form.Form wicket.markup.html.form.FormComponent or the diffs files if you prefer. And I've joined 2 very basic test files (markup class) In short : in the new version, on formSubmitted(), child form components are told that a new user input is available (method FormComponent.newUserInputAvailable()). In this method, the FormComponent stores the user input in a rawInput field. This rawInput is then available for re-rendering for both use cases : when data is invalid and when model is not up to date (for example when returning from another page as in Matej's use case, the form will be rendered again with the rawInput, and not the model). You can see that it also frees the FormComponent code from the weird NO_INVALID_INPUT constant (by using a modelUpToDate boolean field) Fiuu, time to sleep now ! :-) regards, -- laurent Form.java.diff Description: Binary data Form.java Description: Binary data FormComponent.java Description: Binary data FormComponent.java.diff Description: Binary data Title: Wicket SmartForms Test Page ... TestPage.java Description: Binary data TestPage.properties Description: Binary data
Re: [Wicket-user] There must be some docs somewhere?
Sam Gendler wrote: ... The nice thing is that if examples use a fairly generic DAO abstraction, it should be possible to provide nice examples that aren't dependant upon any particular suite of technologies. Just describe the DAO interface and then use those them to access standard POJOs. Obviously, most folks will probably be doing a Hibernate/Spring thing, so addressing best practices for combin ing those technologies with Wicket is enormously valuable, but it should be secondary to providing generic best practices for dealing with DAO access, detachability, etc. ... 1. hibernate/spring integration (separate from wicket) 2. hibernate/spring/wicket best practices Sam -- all of what you propose sounds excellent. [The tradional example has been the pet shop, but nowadays, I think a blogging system is a nice worked example for a web framework.] I haven't had a chance to look at Igor, et al's new Spring integration, but here are a few bits of advice from my experiments with Wicket/Spring/Hibernate: - If you're using Spring to manage your DAOs, you don't need to look at wicket-contrib-hibernate. - Spring and Hiberate already integrate together really easily. Take a look at org.springframework.orm.hibernate3.LocalSessionFactoryBean. They should have plenty of examples, but if you need a more complete spring.xml, let me know and I'll send you one. - To map Hibernate sessions to requests, Spring AOP's OpenSessionInViewInterceptor makes everything automatic. Here's what I use: !-- The openSessionInViewInterceptor is for Wicket requests; the HibernateInterceptor is for business objects -- bean name=openSessionInViewInterceptor class=org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor property name=sessionFactoryref bean=sessionFactory//property property name=flushModeNamevalueFLUSH_AUTO/value/property /bean - For an example of Transaction Templates, take a look at http://blog.exis.com/colin/archives/2004/07/31/concise-transaction-definitions-spring-11/ - If you can get to the DAOs from your pages or models and your Sessions are managed correctly, using them with Wicket is very easy. - I'm not yet sure what the best practice for detatching is. If you have relatively small objects and plety of RAM, you could use hibernate's lock() function to attach to the current Hibernate session. Most likely, though, having your models keep the id of the object and loading them from the DAO maks the most sense. Good luck, Dan --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
irt spring+hibernate+wicket: Dan is absolutely correct when he says that wicket should never touch hibernate directly. all the hibernate-related logic should stay inside spring and be exposed directly through a dao object or through a service facade. i think wicket-contrib-data and wicket-contrib-data-hibernate should be taken out of cvs as they do not display good programming practices in general. i thought Phil was going to do that, but i guess he never got around to it, are you reading Phil? take a look at wicket-phonebook in wicket-stuff, its an extremely simple crud application that uses the above technologies. it also has excellent javadoc thanks to Gwyn. irt general dao: if you are talking about pulling out data from the database to display, such dao already exists and is documented. look up: IDataProvider in wicket-extensions. it is used by the DataView component which is also in the extensions. to see a demo of these look in wicket-phonebook or wicket-examples - repeaters. the repeater examples build upon each other from a simple looping view to a fully database driven datatable component. irt spring integration: spring integration doesn't come easy with a framework like wicket. unlike servlets which are fairly static singletons wicket applications consist of a lot of volatile objects with varying life cycles. this makes keeping dependencies difficult especially because objects are often serialized. there are basically two approaches: simpler approach is to keep all your dependencies in wicket's singleton Application object and let everything else look up dependencies from there, the other approach is more sophisticated - it involves creating proxies for dependencies that can be serialized and retain enough information to be able to look up the dependency when they are deserialized (possibly in another vm). i recently wrote up an article on this in the wiki that describes the two ways: http://www.wicket-wiki.org.uk/wiki/index.php/Spring i haven't had much time to spend on it so its rough around the edges. people should feel free to fix it, it is a wiki after all. irt detaching: the whole idea of detaching objects is to reduce session state. if you have a pretty big object that you are using as a model, why keep it in session when you can only keep the id and load the object when it is fist accessed. if you are using the object as a model for the form, then you don't need to reattach/lock it, just use hibernate merge instead of saveorupdate. see wicket-phonebook for both use cases. irt trail tutorial: if someone can come up with a scope/spec for a small wicket+hibernate+spring application / trail breakdown i can put one together as long as other people promise to write documentation, some javadoc, and dress up the html templates. -Igor On 11/17/05, Dan Gould [EMAIL PROTECTED] wrote: Sam Gendler wrote:... The nice thing is that if examples use a fairly generic DAO abstraction, it should be possible to provide nice examples that aren't dependant upon any particular suite of technologies.Just describe the DAO interface and then use those them to access standard POJOs.Obviously, most folks will probably be doing a Hibernate/Spring thing, so addressing best practices for combin ing those technologies with Wicket is enormously valuable, but it should be secondary to providing generic best practices for dealing with DAO access, detachability, etc 1. hibernate/spring integration (separate from wicket) 2. hibernate/spring/wicket best practices Sam -- all of what you propose sounds excellent.[The tradional example has been the pet shop, but nowadays, I think ablogging system is a nice worked example for a web framework.]I haven't had a chance to look at Igor, et al's new Spring integration, but here are a few bits of advice from my experiments withWicket/Spring/Hibernate:- If you're using Spring to manage your DAOs, you don't need to look atwicket-contrib-hibernate.- Spring and Hiberate already integrate together really easily.Take a look at org.springframework.orm.hibernate3.LocalSessionFactoryBean.Theyshould have plenty of examples, but if you need a more completespring.xml, let me know and I'll send you one.- To map Hibernate sessions to requests, Spring AOP's OpenSessionInViewInterceptor makes everything automatic.Here's what Iuse: !-- The openSessionInViewInterceptor is for Wicket requests; the HibernateInterceptoris for business objects --bean name=openSessionInViewInterceptor class=org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor property name=sessionFactoryref bean=sessionFactory//propertyproperty name=flushModeNamevalueFLUSH_AUTO/value/property/bean- For an example of Transaction Templates, take a look at http://blog.exis.com/colin/archives/2004/07/31/concise-transaction-definitions-spring-11/- If you can get to the DAOs from your pages or models and your Sessionsare managed correctly, using them with Wicket is very easy. - I'm not yet sure what the best
Re: [Wicket-user] There must be some docs somewhere?
Martijn and I are writing Wicket In Action currently. We're not using the gradual examples thing like e.g. Tapestry In Action has because we don't like it that much. Maybe Martijn more than me, but I thought such a book-wide example is too far fetched to be useful. Personally, I am much more charmed about 'Programming Ruby The Pragmatic Programmer's Guide' that has a lot of small but focussed examples. Anyway, if I had more time I would definitively want to write a more elaborate example like a blog. The cdapp example that you can find in wicket-contrib-examples is my try of an application with Hibernate CRUD and some extra's. Please check that one out too. Eelco A suite of examples that build upon each other in gradual steps, introducing concepts in a logical order in order to build an increasingly complex application in an attempt to reduce the slope of the learning curve. Ideally, the final examples should be a fairly usable application, using all the functionality available and demonstrating best practices. That's basically the structure of the ... in Action books from Manning, whgch has always worked well for me. Not trivial to generate, of course, but it seems like whoever does would be a srong candidate for authorship of WIcket in Action which is a nice resume bullet point. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
Oh, and one of the by products we plan for us writing Wicket In Action is a useable reference manual. Something that doesn't conflict our interests with Manning of course, but that serves as a good point of finding how to do things in Wicket. Re looking for support: I am currently thinking setting up a support company for Wicket. I would need it for several things, giving official Wicket support being one of them. If demand is large enough, such a company can be fact in a few months from now. Eelco On 11/17/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Martijn and I are writing Wicket In Action currently. We're not using the gradual examples thing like e.g. Tapestry In Action has because we don't like it that much. Maybe Martijn more than me, but I thought such a book-wide example is too far fetched to be useful. Personally, I am much more charmed about 'Programming Ruby The Pragmatic Programmer's Guide' that has a lot of small but focussed examples. Anyway, if I had more time I would definitively want to write a more elaborate example like a blog. The cdapp example that you can find in wicket-contrib-examples is my try of an application with Hibernate CRUD and some extra's. Please check that one out too. Eelco A suite of examples that build upon each other in gradual steps, introducing concepts in a logical order in order to build an increasingly complex application in an attempt to reduce the slope of the learning curve. Ideally, the final examples should be a fairly usable application, using all the functionality available and demonstrating best practices. That's basically the structure of the ... in Action books from Manning, whgch has always worked well for me. Not trivial to generate, of course, but it seems like whoever does would be a srong candidate for authorship of WIcket in Action which is a nice resume bullet point. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user