[Wicket-user] Header contribution not always rendered
Hello, Something is going wrong with my header contributions. A css that was added like this add(HeaderContributor.forCss(MyPage.class, MyPage.css)); are only rendered once and then never again. To be precise: - I start jetty. - I request the page (it is bookmarkable). - I get redirected to the signin page, I log in. - The page is displayed correct (with the css). - I press reload and the css is gone. The link is actually not in the header. - Press reload another 50 times, no more css. I have also seen another scenario: the first time the page is rendered it misses the css, the second time it is present and in all following renderings it is gone. All css added with wicket:head/wicket:link elements renders fine. I am using Wicket 1.x, revision 470570 (at moment of writing the latest revision of 1.x). Any ideas on what it is going on here? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Header contribution not always rendered
Ok, I'll try to extract the problem. Erik. Eelco Hillenius schreef: On 11/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: add a bug into jira preferrably with a quickstart Or maybe even better a unit test that proves this and that we can put in wicket. Eelco -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Alter text of Label at render?
Something like this? class MyLabel extends Label { private String text; public MyLabel(String id, String text, final FormComponent fc) { super(id, new AbstractReadOnlyModel() { Object getObject(Component component) { return text + (fc.isRequired() ? * : ); } this.text = text; } } Have fun, Erik. Jonathan Sharp schreef: I have a custom label component that extends label. In the constructor it takes a form component that I want it to check if isRequired() at render time and append * to the text of the label. What would be the easiest way to do this? The data for the label could be passed in through various models, etc. Cheers, -js -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Authentication Tomcat - Wicket
Hi Rik, We use Acegi because of its excellent backend features. We do not use Acegi to do authorization in the frontend, we just give a username/pasword and ask it for the roles. Acegi gets it out of LDAP for us, wicket-auth-roles does the authorization. The Acegi filter sets the authenticated user on a tread-local, but that is the only involvement of Acegi in the front-end. However, having the thread-local Acegi can be still for used for securing the spring configured services. The authorization settings are set by our application and stored in the Wicket metadata facility (again using wicket-auth-roles). If desired we could have easily read that information from an ACL file. Would this be an acceptable solution? Erik. Rik van der Kleij schreef: Hi, That is also the reason why Acegi and Wicket don't integrate well. Till now I have not found a good way to secure Wicket components by Acegi. Acegi is based on URL requests, method intercepting and securing domain objects by ACL's. According to me you want to set authorization on component level. Annotations is a way but I prefer security by configuration. Maybe the only good solution is to build a Wicket specific solution. Regards, Rik -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters
Did you try %2b ? Erik. jan_bar schreef: Hi, I use nice URL with a parameter that contains a '+' character. The '+' is URLDecoded to space (' ') in AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine. So I URLEncoded the parametr, so my nice URL looks like http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by servlet, so Wicket again sees it as someId/1+1, so the result is someId=1 1. How can I pass the '+' as parameter? Thanks, Jan -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters
Ah. Sorry. Erik. jan_bar schreef: Sure, have a look at the url in my original post :-) Jan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Authentication Tomcat - Wicket
Here is a rough outline. You'll need to study wicket-auth-roles-example to see how you can integrate this. You can put the the Wicket servlet behind 2 different url patterns. In your own session implementation you can access the http session and read the authenticated user and/or roles as was set by Tomcat. When authorisation is required and no user in the session, you can forward to a secured url with a RestartResponseAtInterceptPageException. Note that in this setup only the login page needs to be behind the secured url. Erik. Dmitry Kandalov schreef: Erik van Oosten wrote: Wicket supports per component authorisation. You could take a look at wicket-auth-roles-example (a small project available through svn). In this project some components (pages) are marked. The mark indicates which roles are required for the component. As long as the user does not hit those components the application runs fine. As soon as the user does hit such a component, the sign-in page is displayed. Erik. Thanks for advice, example is good. But I have to use tomcat authentication (not authorization). To make it work I have to declare security-constraint. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why add(IBehavior) is final?
I am definitely /not/ against removing final, but it is not going to work (not in general that is). Alberto's defense is that the user thinks he is working with a field, while in reality he is working with a panel. I assume that Alberto is using a panel because he wants some extra functionality around the field, say a button or a link. Anyway, now the user adds some behavior, say 'new SimpleAttributeModifier(style, background-color: #d91)'. Now in the described setup only the field will get the new background, while the user probably also wanted to color the whitespace around it. As a user I would find this pretty confusing. In short: there is no way of hiding the fact that the component you are offering to a user is a composite, if you also want the user to have access to the inner components. So my solution would be to either expose the inner field through a getter, or write the addToField method that was discussed earlier. Regards, Erik. Eelco Hillenius schreef: I could definitively live with removing final there. And maybe some other methods too. Anyone against removing final from add(IBehavior)? Eelco On 11/9/06, Alberto Bueno [EMAIL PROTECTED] wrote: Hi, now I have this solution, but I don't like it for you reasons: - Now I have two methods to add a Behavior: add(IBehavior) and addToField(IBehavior), and for the users can be confuse. - I want to have a transparent component. The user doesn't have to know that he is working with a panel. This is working with a field. If I have: MyField extends Panel{ public MyField(MarkupContainer parent, String id){ super(parent, id); new TextField(this, myField); } } For the user, MyField is a form Component, and if he add a new Behavior, the user thinks that the behavior is for the field, not for the panel. This is the idea... Why don't you write in your panel: void addToField(Behavior b) {...}? There is no need to corrupt the meaning of Wicket methods ;) Regards, Erik. Alberto Bueno schreef: Hi, I want to overwrite the add(IBehavior) method of the component, but this method is final. I want to use the same idea of AlternateParent when we add a new component. I have a panel, and I want to add a behavior in the panel, but the behavior is used in a field component that is in the panel. I don't want to say: panel.get(myField).add(new MyBehavior()); I want to say: panel.add(new MyBehavior()); and in the add() method of the panel say: public Component add(final IBehavior behavior) { get(myField).add(behavior); } Any idea to implement this functionality? Thanks -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why add(IBehavior) is final?
Why don't you write in your panel: void addToField(Behavior b) {...}? There is no need to corrupt the meaning of Wicket methods ;) Regards, Erik. Alberto Bueno schreef: Hi, I want to overwrite the add(IBehavior) method of the component, but this method is final. I want to use the same idea of AlternateParent when we add a new component. I have a panel, and I want to add a behavior in the panel, but the behavior is used in a field component that is in the panel. I don't want to say: panel.get(myField).add(new MyBehavior()); I want to say: panel.add(new MyBehavior()); and in the add() method of the panel say: public Component add(final IBehavior behavior) { get(myField).add(behavior); } Any idea to implement this functionality? Thanks -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Authentication Tomcat - Wicket
Wicket supports per component authorisation. You could take a look at wicket-auth-roles-example (a small project available through svn). In this project some components (pages) are marked. The mark indicates which roles are required for the component. As long as the user does not hit those components the application runs fine. As soon as the user does hit such a component, the sign-in page is displayed. Erik. Dmitry Kandalov schreef: I want to define security constraints for tomcat authentication so that one part of my wicket application would be anonymously available and another not. So I guess I need different url's. What is the best way to do this? Should I make two different WebApplication's and map them to different url's or should I implement IRequestCodingStrategy? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: License headers
My point is that in checkstyle you are free to enforce both the presence _and absence_ of anything that can be expressed as a regular expression. So that includes the $Id$ tag. That I always enforce inclusion of an $Id$ is just an example. In most of my projects I don't have a lot of merging to do. I can imagine that you would enforce exclusion of $Id$ for Wicket. Regards, Erik. Johan Compagner schreef: i don't hope that #Id# is mandatory! I hate those things. Because those things mess up merging of branches because they constantly change. It is totally stupid that this is the case. A merge should ignore those completely. johan -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/
Re: [Wicket-user] Prevent Brute Force and the like
Another option is to lower the throughput (number of login requests handled per minute) for that IP address. In this case you should probably use Wicket 2 to optimize session usage. Erik. Korbinian Bachl schreef: Bad idea - some ISPs and proxys would be locked out... cachapta would be solution of choice here. Regards Korbinian -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Johannes Fahrenkrug Gesendet: Montag, 6. November 2006 14:01 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Prevent Brute Force and the like Hi! I'd like to prevent brute force attacks on the login page of my wicket application. What would be the best approach? This is what I'm thinking about doing: Record when the last request for the loginpage from a certain IP came in and only handle the request when at least a second or two have passed. This would have to be done application wide because when an attacker uses a tool like cURL a new session is created with each request. So what would you guys suggest? - Johannes -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prevent Brute Force and the like
Disadvantage is that the server will keep the request processing thread occupied during the waiting period. A brute force attach that fires multiple requests simultaneously will not be stopped by this and will bring the server to its knees even more quickly. So Johan was right, you should not do this in the web application. Now if you start using AsyncWeb it would be quite another story of course... Regards, Erik. Johannes Fahrenkrug schreef: That's not a bad idea... that would mean delaying a response for a second or two _every time_ a false login happens... That would be a rather simple but yet effective solution, too: It would render brute force useless and behave quite similar to the Linux shell login you mentioned -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: License headers
Hi Martijn, There are checkstyle plugins for Eclipse and for IDEA. Don't know about Netbeans. In addition checkstyle is able to check for a header (even as a RE), or check for the presence/absence of any RE. I used checkstyle frequently to enforce a correct copyright header, the presence of an $Id$ tag, presence of javadoc and a lot of code formatting rules. Regards, Erik. Martijn Dashorst schreef: I was going to propose to use checkstyle instead. Problem with checkstyle is that it is not a unit test and doesn't run inside Eclipse, NetBeans or IDEA :-). -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/
Re: [Wicket-user] Ajax autocompletion troubles
I verified it just now and it works!!! Congratulations on solving this apparently difficult bug! Thanks, Erik. Matej Knopp schreef: Is that problem still present? Could you please check current svn too? -Matej -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Change default prefix for url
Hello Maciej, You can find more here: http://cwiki.apache.org/WICKET/obfuscating-urls.html. Erik. [EMAIL PROTECTED] schreef: Hi all ! Is there a way to change the default prefix for url before instances? My current URLs look like: http://127.0.0.1/application?wicket:interface=:22:: How can I change the wicket prefix so the URL is looking like this: http://127.0.0.1/application?portal:interface=:22:: I need this for security. Visitors should not know that the application is using wicket. Thank you very much, Maciej Bednarz -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Weird Wiki problem
Hello, I created a child page from page i18n. When I look at http://cwiki.apache.org/WICKET/reference-library.html, you can not see a link to the new page. It _is_ visible through http://cwiki.apache.org/confluence/display/WICKET/Reference+library. Why are these different? And also, why is the first recommended even though it does not show up to date information? Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Weird Wiki problem
Okay, understood. Makes sense. I hope the update happens at least once a day. Twice would be nicer :) Thanks, Erik. Martijn Dashorst schreef: The wiki's is exported every so often (don't know the frequency, Kenneth) to a static space (the preferred linking space) accomodate the scalability issues Apache faces with their infrastructure (something about several tera byte per month). Martijn -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How can I prevent duplicate header contributions?
I solved it already. I added the following to the behavior: public void bind(Component component) { super.bind(component); component.add(HeaderContributor.forJavaScript(this.getClass(), javascriptfile.js)); } Erik. Erik van Oosten schreef: Hello, I used Igor's template below for something else. Just like in the example I add a generic javascript function to the header. However, the function is added once for every time I add the behavior to an component in the page. Who knows a clean way to prevent this? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax autocompletion troubles
Hi Matej, You can download a quickstart here: https://omelet.zapto.org/ajaxtrouble.zip (3Mb). Regards, Erik. Matej Knopp schreef: Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//script These pieces of javascript are unfortunately not being executed. Note that the id's are empty and there this weird src_ attribute. I am sure how FireFox treats this. Also I wonder why the scripts are so carefully commented. I guess that every browser that supports Ajax will not need these comments. I tried to debug the load phase with FireBug. Unfortunately my JavaScript is lacking way too much for this advanced stuff. Any help is greatly appreciated. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services
Re: [Wicket-user] Programmatically/Dynamically change html
font color=red Red /font Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Programmatically/Dynamically change html
Oops, too quick. font wicket:id=colorcomp Red /font Label l = new Label(colorcomp, Blue) add(l); l.add(new SimpleAttribyteModifier(color, blue)); Erik. Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Programmatically/Dynamically change html
Ah, I see. I think you'll have to create a panel (or a fragment) for each variation and then add the appropriate panel (fragment). Does that make sense? Erik. Shams Mahmood schreef: Well I guess the main challenge lies here : span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to change this to: a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Oops, too quick. font wicket:id=colorcomp Red /font Label l = new Label(colorcomp, Blue) add(l); l.add(new SimpleAttribyteModifier(color, blue)); Erik. Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Programmatically/Dynamically change html
Hmm. I remember that more people asked for generated templates. Don't remember an answer though. Perhaps you can investigate the class WebMarkupContainerWithAssociatedMarkup or its super classes to see how Wicket loads the templates. Good luck, Erik. Shams Mahmood schreef: I actually wanted to change the html source dynamically Rather than writing different panel which would limit all my variations :) Shams -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tabbed Panel
Igor Vaynberg wrote: On 11/2/06, *Michael Welter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: it is all css, so you might have to tweak that to the desired effect. On another note, is the sliding doors method of displaying tabs going to be implemented in Wicket? doesnt tabbedpanel already use that? You answered yourself here: it is all css :) If you want to use sliding doors, it is your own responsibility to provide the right css. Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tabbed Panel
Yep, that is correct. Luckily that is all in place so you could say that TabbedPanel is Sliding-Doors-ready. I only reacted to the phrase 'TabbedPanel uses sliding doors' which is IMHO not correct. Erik. Igor Vaynberg schreef: On 11/2/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: doesnt tabbedpanel already use that? You answered yourself here: it is all css :) If you want to use sliding doors, it is your own responsibility to provide the right css. not entirely, sliding doors does require an ul list and certain divs as far as i remember, but i thought the panel and examples in component reference do use sliding doors -igor -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax autocompletion troubles
I used the 1.x branch from svn at October 1, around 14:00 CET. Do you want me to check today's svn? Erik. Matej Knopp schreef: Is that problem still present? Could you please check current svn too? -Matej -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax autocompletion troubles
I just did an update and I see that relevant files have been changed. I'll try immediately. Thanks, Erik. Erik van Oosten schreef: I used the 1.x branch from svn at October 1, around 14:00 CET. Do you want me to check today's svn? Erik. Matej Knopp schreef: Is that problem still present? Could you please check current svn too? -Matej -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Radiant] Copying a page
Could this be introduced for new pages? For some behaviors you need to create multiple parts. Having these present upfront gives one less thing to explain to the users. The default content could be provided by the behavior. Erik. John W. Long wrote: Mmm, that's an interesting thought. So when you create a new page it would have blank parts defined for every one of it's parent's parts? You could then delete them or add others, but it would inherit it's parent's parts at creation time? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Wicket-user] How can I change the tag value?
Hi Carfield, Do something like this: a href=# wicket:id=change_statusspan wicket:id=statusdeactivate/span/a and Link link = new Link(change_status) { onSubmit() {...} }; link.add(new Label(status, )); Erik. Carfield Yim schreef: Say if I need to change the text of a link base on runtime information, e.g., for the following links: a href=# wicket:id=change_statusdeactivate/a For the active user it will show deactivate but for deactivate I would like it show activate. How can I do that in wicket? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] about wicket 1.2.3
I was planning on extending my ajax tabs with something that adds an # ancher to the url. That way the url does change but no page reload is triggered in the browser. Upon a reload the anchor can be used by the component to immediately display the correct tab. I did not investigate how to do this yet. But I will as soon as I have finished the higher priority features. Erik. Johan Compagner wrote: 3 Don't know what the current state is and what exactly the bug is now. in my eyes a ajax request should never up the version of a page. because the url of the browser doesn't change so if you do a refresh you get another one again. I guess matej is looking into this? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about i18n
Hi Carfield, There is also the wicket:message tag. I am trying to find documentation on the wiki but I failed. I guess you'll have to google for it. Erik. Carfield Yim schreef: Have read these two page: http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket Look like I have 2 options: 1) Have a of of span wicket:id=xxx/span at HTML and fill all those span at Java code. 2) Have a lot of MyPage_[locate].html . Sound like both are not very ideal, as 1) need programmer add a long list of labels at java code, and 2) need designer keep multiple copy of HTML in sync manually. I just wonder if I have just have HTML template like html body span wicket:id = main_border {label.message_to_user} /span /body /html Then wicket will look it up from bundle without the programmer fill a long list of span component? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about i18n
Wicket will search all resource files with the names equal to the components in your component hierarchy, with your application as a last resort (as Martin shows in his e-mail). So for a MyApplication, with a MyPage containing a MyPanel Wicket will look in: 1. MyPanel.properties (and _locale variants) 2. MyPage.properties (..) 3. MyApplication.properties (..) Actually, it even goes two steps further. Wicket will also look at property files for the base classes of MyPanel, MyPage and MyApplication. Secondly you can have different styles and variants. Erik. Carfield Yim schreef: Thanks for pointing out this, this is very useful. However according to http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html Look like if for page class MyPage.class, then it will use the bundle define at MyPage_[locate].properties, right? However, I guess most people like to put all bundles key value pair in single properties file so that it is easier to reuse and translate. I believe this can be done in wicket, anyone know how? On 11/1/06, Erik van Oosten [EMAIL PROTECTED] wrote: Hi Carfield, There is also the wicket:message tag. I am trying to find documentation on the wiki but I failed. I guess you'll have to google for it. Erik. Carfield Yim schreef: Have read these two page: http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket Look like I have 2 options: 1) Have a of of span wicket:id=xxx/span at HTML and fill all those span at Java code. 2) Have a lot of MyPage_[locate].html . Sound like both are not very ideal, as 1) need programmer add a long list of labels at java code, and 2) need designer keep multiple copy of HTML in sync manually. I just wonder if I have just have HTML template like html body span wicket:id = main_border {label.message_to_user} /span /body /html Then wicket will look it up from bundle without the programmer fill a long list of span component? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax autocompletion troubles
Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_="undefined"!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_="undefined"!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_="undefined"!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_="undefined"!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_="undefined"!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_="undefined"!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_="undefined" id=""!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_="undefined" id=""!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_="undefined" id=""!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//script These pieces of _javascript_ are unfortunately not being executed. Note that the id's are empty and there this weird "src_" attribute. I am sure how FireFox treats this. Also I wonder why the scripts are so carefully commented. I guess that every browser that supports Ajax will not need these comments. I tried to debug the load phase with FireBug. Unfortunately my _javascript_ is lacking way too much for this advanced stuff. Any help is greatly appreciated. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Downloa
Re: [Wicket-user] strip wicket: tags?
Hi Ryan, This is covered in http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html. Erik. ryan mckinley schreef: Hello- I'm new to wicket, so forgive me if this is posted obviously somewhere... The intro page says, Wicket has a simple setting to strip them all out, resulting in ordinary, standards-compliant HTML. What tag do I use? Where can i look to find this? thanks in advance ryan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] (Not a) Bug in getting Model (1.2-snapshot)
I understand. Looks like a solid answer to me. Erik. Igor Vaynberg schreef: On 10/30/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If did see something else, if you look at Component#initModel there is a for loop that iterates up to the root of the component hierarchy. In the loop body Component#getModel is called. Note however that getModel will potentially recursively call initModel again. Is this intentional? This will work of course, but it looks like both a loop and recursion is redundant and could (in some corner cases) cause unexpected behavior. we have to do that because both getModel() and initModel() are nonfinal. so yes, there are cases where you can do something weird, but it will be a user error because you overrode one or both of those and did not do it properly. i dont really think there is much we can do about that. -igor -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Question on getting Model (1.2-snapshot)
Hi, I see some very unexpected behavior in getting the model object inside a list view. Here is my case: -- The data classes class Course {...} class Person { private List addresses; ...getter/setters...} class Address { private String street; private String city; ...getter/setters... } -- The components class MyPage extends Page { public MyPage(...) { ... setModel(new CompoundPropertyModel(new Course(...))); // setting Course as model object add(new MyPanel(...)); } } class MyPanel extends Panel { public MyPanel(...) { setModel(new CompoundPropertyModel(new Person())); // --- setting Person as model object add(new ListView(addresses)) { protected void populateItem(ListItem item) { assert item.getModelObject() instanceof Address; // - assert succeeds item.add(new Label(street));// - WicketException during rendering } } } } --The problem. The assert in the method populateItem holds. However, the label will try to get the street property from a 'Course' instance. I expected it to get the property from the Address instance that was also seen in the assert. --A possible cause. If you debug the method onComponentTagBody() in Label(), you eventually see that the parent of the Label is a ListItem, but the parent of the ListItem is MyPage! I expected the parents to be a ListView, and then a MyPanel and only then a MyPage. Is this a bug or I am missing something? Regards, Erik. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bug in getting Model? (1.2-snapshot)
Here is the same pseudo code, but now laid out for better readability. I appreciate any background before I file this as a bug. -- The data classes class Course {...} class Person { List addresses; ...getter/setters.. } class Address { String street; String city; ...getter/setters... } -- The components class MyPage extends Page { public MyPage(...) { ... // setting a *Course* as model object setModel(new CompoundPropertyModel(new Course(...))); add(new MyPanel(...)); } } class MyPanel extends Panel { public MyPanel(...) { // setting a *Person* as model object setModel(new CompoundPropertyModel(new Person())); add(new ListView(addresses)) { protected void populateItem(ListItem item) { // assertion succeeds, model object is an *Address* assert item.getModelObject() instanceof Address; // *WicketException* during rendering phase item.add(new Label(street)); } } } } --The problem. The assert in the method populateItem holds. However, the label will try to get the street property from a _Course_ instance. I expected it to get the property from the _Address_ instance that was also seen in the assert. --A possible cause. If you debug the method onComponentTagBody() in Label(), you eventually see that the parent of the Label is a ListItem, but the parent of the ListItem is MyPage! I expected the parents to be a ListView, and then a MyPanel and only then a MyPage. I am missing something or is this a bug? Regards, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] (Not a) Bug in getting Model (1.2-snapshot)
Thanks Igor, Replacing ListView with PropertyListView did the trick. I missed the obvious fact that the list item's model should also be a CompoundPropertyModel. I tried to reproduce the parent-structure problem. But I can't, so I must have seen something else there. Sorry for that. If did see something else, if you look at Component#initModel there is a for loop that iterates up to the root of the component hierarchy. In the loop body Component#getModel is called. Note however that getModel will potentially recursively call initModel again. Is this intentional? This will work of course, but it looks like both a loop and recursion is redundant and could (in some corner cases) cause unexpected behavior. Regards, Erik. Igor Vaynberg wrote: are you sure the parent of the listitem is really the page, i find that unlikely. but your code wouldnt work either way you are adding the label without a model to the listitem. when the label renders it is going to look for the first component in its upwards hierarchy with the compound model, and what it should find is the panel with the person compound property model. then it is going to try to find [ person.street] property and fail. to fix this you need to make the listitem's model compound as well. the easiest way is to extend PropertyListView instead of ListView makes sense? -igor -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket With Acegi
Hi, Here is an example (we're using wicket-auth-roles). We use Spring to inject the authentication manager into the application. Regards, Erik. --8-- public class MySession extends AuthenticatedWebSession { .. constructor, etc... /** * Attempts to authenticate a user that has provided the given username and password. * @param username current username * @param password current password * @return codetrue/code if authentication succeeds, codefalse/code otherwise */ public boolean authenticate(String username, String password) { String u = username == null ? : username.trim(); String p = password == null ? : password.trim(); // Create an Acegi authentication request. UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(u, p); // Attempt authentication. try { AuthenticationManager authenticationManager = ((MyApplication) getApplication()).getAuthenticationManager(); Authentication authResult = authenticationManager.authenticate(authRequest); SecurityContextHolder.getContext().setAuthentication(authResult); return true; } catch (AuthenticationException e) { // Clear the security context. SecurityContextHolder.getContext().setAuthentication(null); return false; } } /** * Returns the current user roles. * @return current user roles */ public Roles getRoles() { if (isSignedIn()) { Roles roles = new Roles(); // Retrieve the granted authorities from the current authentication. These correspond one on // one with user roles. GrantedAuthority[] authorities = SecurityContextHolder.getContext().getAuthentication().getAuthorities(); for (int i = 0; i authorities.length; i++) { GrantedAuthority authority = authorities[i]; roles.add(authority.getAuthority()); } return roles; } return null; } } --8-- sunraider schreef: Can you give me a sample of how the authorizationstrategy can be plugged in for Acegi? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to use links from an evicted page?
Hi, Is there some way to use links on a page that has been evicted from the pagemap? Here is my use-case. On the home page of the application I am using the AjaxFallbackLink to replace components. From the home page the user might go back and forth between several (bookmarkable) pages, going back with the back button. If the user then clicks on the ajax link, the homepage has been evicted from the pagemap and the link no longer works. However, it would be easy for me to rebuild the home page. Is the latter possible? Or should I prevent the homepage from being evicted at all? But then how does that work when there are multiple versions of the homepage? I'd appreciate any insight or references, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-auth-roles proposed change
Hi, I was just looking at the issue tracker at http://issues.apache.org/jira/browse/WICKET to submit a change request for wicket-auth-roles. However I do not see under which project it should be put. In fact I can not find wicket-auth-roles on http://wicketframework.org at all! My idea is to change InstantiationPermissions#authorizedRoles to: // TODO: make java 5 code by inserting generics again public Roles authorizedRoles(final Class componentClass) { if (componentClass == null) { throw new IllegalArgumentException(Argument componentClass cannot be null); } Class c = componentClass; while (Component.class.isAssignableFrom(c) !rolesForComponentClass.containsKey(c)) { c = c.getSuperclass(); } return (Roles) rolesForComponentClass.get(c); } This way you can define authorization rules on base classes and all sub-classes will automatically inherit these authorization rules. It is easy to override this by explicitly adding authorization rules for a subclass. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] varying the presentation of a Panel...
Hi Erik, As far as I understand it, the Panel is always associated with one html template with the same name as the panel. Actually this is not true. You can work with styles and variations. I have never done myself, but you can do something like: class MyPanel extends Panel { public String getVariation() { return new Random().nextBool() ? abc : xyz; } } and have the templates MyPanel_abc.html and MyPanel_xyz.html. Have fun, Erik. Erik Brakkee schreef: Hi, In many cases, it is useful to define an application wide Panel for commonly recurring parts of the user interface. Nevertheless, sometimes, it is necessary to vary only the presentation of a Panel. As far as I understand it, the Panel is always associated with one html template with the same name as the panel. Hence, my question is how I can easily vary the html template for a specific instance of a panel without changing it application wide. Most easy would be sometihing like this: // with the default HTML template Panel p = new Panel(); // with a template different from the default. Panel p = new Panel(); p.setTemplate(xyz.html); // with a class path resource InputStream is = ...; p.setTemplate(is); // with a template in an input stream. Is something like this already possible? Cheers Erik -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Autoenabled links and custom style for em element
You can give the em tag custom style by doing something like: span.menu em { font-style: normal; } But I would go for Frank's solution. Regards, Erik. [EMAIL PROTECTED] schreef: Hallo there, I would like to change the output class of the em element for autoenabled links. Currently I use the following code to create a link: Link link = new BookmarkablePageLink(link, pageClass).setAutoEnable(true); After rendering such a link I get a href=/portal class=menuSub 1/a and for enabled state: span class=menuemSub 2/em/span Does someone experienced know how to disable the em tags or how to add a custom css style to them? One of the following possiblities would be fine as output: span class=menuemSub 2/em/span or span class=menuSub 2/span Thank you for any assistance to solve my problem, Maciej A. Bednarz -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] enable/remove added behaviors
Hi, It is up to the component on how to interpreted the disabled property. In your case you could make a new form component (use TextArea as template) that shows a div with scroll bars instead of an input element. If you still need the input element, simply add it, but make it hidden. Regards, Erik. ChuckDeal schreef: I'm not sure about other browsers, but IE6 doesn't allow scrolling of a disabled TextArea. TextArea extends FormComponent and form component has an internal Behavior that adds the disabled attribute when the field is set to disabled (setEnabled(false)). This causes my project grief because we need to add the READONLY attribute instead. But, as far as I can see there is no way to remove a Behavior because they are not named (ala a Map) and the getBehaviors returns an unmodifiable List. I see that the DisabledAttributeModifier extends AttributeModifer that supports an enabled flag, but this internal class is private and it makes working with it difficult. Does this non-scrolling behavior happen with other browsers or just IE? If it happens elsewhere, might I suggest that Wicket change it's default behavior to put a readonly attribute instead of disabled? What is the recommended way of working with behaviors that are already added to a Component? Here is what I came up with for disabling the behavior for a TextArea. Notice that I had to use the FQN instead of the Class object because the behavior is private to FormComponent. public class TextAreaFixer { /** * Constructor for TextAreaFixer */ private TextAreaFixer() { super(); } /** * Find the FormComponent$DisabledAttributeModifier and disable it! * * @param textArea */ public static void updateTextArea(TextArea textArea) { for (IBehavior behavior : (ListIBehavior)textArea.getBehaviors()) { if (behavior.getClass().getName().equals(wicket.markup.html.form.FormComponent$DisabledAttributeModifier)) { ((AttributeModifier)behavior).setEnabled(false); break; } } } } Then to use it, in my code: TextArea description = new TextArea(description); add(description); TextAreaFixer.updateTextArea(description); Is ther a better way to do what I am trying to accomplish? Thanks! -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] enable/remove added behaviors
His problem is that the disabled attribute is added by a behavior and that he can not remove the behavior. Erik. Frank Bille schreef: On 10/20/06, *ChuckDeal* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Then to use it, in my code: TextArea description = new TextArea(description); add(description); TextAreaFixer.updateTextArea(description); Is ther a better way to do what I am trying to accomplish? I'm not sure what it is that you want but can't you just say: textArea.add(new SimpleAttributeModifier(readonly, readonly)); - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] enable/remove added behaviors
Yes indeed. Although I would not attempt to make the div look exactly like a text area, that would be a very painful exercise. My thoughts were along the lines of: .readonlytextearea { width: 500px; height: 150px; overflow: auto; border: thin solid #000; } Erik. ChuckDeal schreef: To be clear, you are proposing that I create a new component that generates a div with css that makes it appear to be a TextArea, then when I determine (determination based upon the user/data) that I want a readonly TextArea, I replace the real TextArea with a FakeTextArea prior to rendering? Before I attempt this myself, has anyone created a div based TextArea component, that can be made available to me? Erik van Oosten wrote: Hi, It is up to the component on how to interpreted the disabled property. In your case you could make a new form component (use TextArea as template) that shows a div with scroll bars instead of an input element. If you still need the input element, simply add it, but make it hidden. Regards, Erik. ChuckDeal schreef: I'm not sure about other browsers, but IE6 doesn't allow scrolling of a disabled TextArea. TextArea extends FormComponent and form component has an internal Behavior that adds the disabled attribute when the field is set to disabled (setEnabled(false)). This causes my project grief because we need to add the READONLY attribute instead. But, as far as I can see there is no way to remove a Behavior because they are not named (ala a Map) and the getBehaviors returns an unmodifiable List. I see that the DisabledAttributeModifier extends AttributeModifer that supports an enabled flag, but this internal class is private and it makes working with it difficult. Does this non-scrolling behavior happen with other browsers or just IE? If it happens elsewhere, might I suggest that Wicket change it's default behavior to put a readonly attribute instead of disabled? What is the recommended way of working with behaviors that are already added to a Component? Here is what I came up with for disabling the behavior for a TextArea. Notice that I had to use the FQN instead of the Class object because the behavior is private to FormComponent. public class TextAreaFixer { /** * Constructor for TextAreaFixer */ private TextAreaFixer() { super(); } /** * Find the FormComponent$DisabledAttributeModifier and disable it! * * @param textArea */ public static void updateTextArea(TextArea textArea) { for (IBehavior behavior : (ListIBehavior)textArea.getBehaviors()) { if (behavior.getClass().getName().equals(wicket.markup.html.form.FormComponent$DisabledAttributeModifier)) { ((AttributeModifier)behavior).setEnabled(false); break; } } } } Then to use it, in my code: TextArea description = new TextArea(description); add(description); TextAreaFixer.updateTextArea(description); Is ther a better way to do what I am trying to accomplish? Thanks! -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Components Entirely In Java?
Jonathan, In my current application I have about 10 similar looking search forms that are all generated with a list that specifies the layout to be used, and the property to be set in a model object. There is only 1 html file containing only 3 fragments to drive all the search forms. For each fragment there is a corresponding form specification item. To be more specific, these are three form specification item types:1: simple form item: label and text input, 2: checkbox input and label, 3: label and 2 text input for from-untill values. In the actual form the fragments are added with a repeater element. With the use of a CompoundPropertyModel on the form and PropertyModels on the input elements there is no dependency to specific form model object types. The setup also allows for additional validators and behaviors like autocompletion. The trick here is to let the form specification item contain (or create for Wicket 2) the FormComponent. That form component is later added to the right fragment. The labels and access keys are retrieved from a resource file. Have fun, Erik. Jonathan Sharp schreef: That's what I'm after, the majority of our interface is form driven and laid out using basic block elements with CSS handling all of the positioning. Even then, laying it out with span tags would be better than what we have currently (developers have too much freedom with presentation... font tags are S-O-O '90s) hehe Thanks, -js -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] adding class to listview
If you want to maintain existing classes, you'd better use: item.add(new AttributeAppender(class, new Model(foo), )); Erik. Igor Vaynberg schreef: item.add(new SimpleAttributeModifier(class, foo)); -Igor -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket encoding problem, does wicket will be up to mark????
Please read this: http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html Regards, Erik. ketan gote schreef: hello friends does wicket support UTF-8 setting by default, but it doesn't work in oracle application server . and also on tomcat? WebResponse webres = (WebResponse )getResponse(); HttpServletResponse hsr = webres.getServletHttpResponse(); Systsem.out.println(**+hsr .getCharacterEncoding()) this prints ISO-8859-1 can this be set to UTF-8 default. so wicket becoming big issue regard's ketan d.gote - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to reload page from within ajax call
Have you tried something like the following? new AjaxFallBackLink(id) { public void onClick(AjaxTargetRequest target) { page.replace(changedComponent); if (target != null) { target.addComponent(changedComponent); } } } Regards, Erik. De Soca schreef: Hello all, I may be missing something basic, however I have a dirty flag within a page so that if the data has changed, on the next request the page is refreshed. The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine. I have tried the following: 1. setResponsePage() 2. RequestCycle rc = RequestCycle.get(); rc.setResponsePage(ClientMasterPage.class); Neither of which provide the desired result. Any suggestions are welcome. Thanks to all. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to test validators?
Hello, I wrote a custom validator for Dutch burger service numbers. However, whatever I try, I can't seem to be able to write a JUnit test for the onValidate method. An abstract of the code is included below. I tried using EasyMock to mock the form component. However this is not possible because the error method I am calling from my validator is final. Any suggestions on how to test this thing? Regards, Erik. 8--- public class SofiNummerValidator extends NumberValidator { public void onValidate(FormComponent formComponent, Number value) { if (value.longValue() 1000L) { error(formComponent, SofiNummerValidator.TooSmall, messageModel(formComponent)); } int sum = ..some number magic..; if (sum != 0) { error(formComponent, SofiNummerValidator.NotValid, messageModel(formComponent)); } } } 8--- -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to test validators?
Frank Bille wrote: Just of the top of my head I have two surgestions. One is to Do the full association of the validator to a field which is then associated with a form and then, using the FormTester, submit the form and check the messages. That looks like a bit of overkill. But thanks for the suggestion. A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly. This is not possible as all the error methods are final. I solved the problem by extracting my validation code to another method. The only problem with this is that I can not test whether error is called. But that is a very low risk. Thanks, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to test validators?
Nice improvement. Erik. Igor Vaynberg wrote: in 2.0 the validators are decoupled so it should be trivial to test them fwiw :) -Igor -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to test validators?
Yes you are right. The error methods are final on FormComponent not in AbstractValidator. Thanks Frank, Erik. Frank Bille schreef: On 10/17/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly. This is not possible as all the error methods are final. Hmm are you sure of that? http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error(wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error%28wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map%29 shows that at least the error method you are using is not final. (In fact are all the error methods in abstract validator not final) Frank -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: Adding a component via ajax that contributes javascript (like AutoCompleteTextField) doesn't work correctly in Firefox
This is the same problem I reported a few days ago for Wicket 1.2.2. Igor wrote that it was already solved in th 1.x trunk. So maybe this is also the case for the 2.x trunk. Regards, Erik. Caleb Land schreef: When I add a component via ajax that contributes javascript to be executed (like the AutoCompleteTextField from wicket-extensions) the javascript is executed before the component elements are added to the page in Firefox ( 1.5.0.7 http://1.5.0.7). The same code works correctly in Safari, Opera, and IE7 (I haven't tests 6.x). In the case of the AutoCompleteTextField (which adds javascript through the AbstractAutoCompleteBehavior), the javascript: new Wicket.Ajax.AutoComplete('id ', 'callbackUrl'); gets executed before the control is added to the page, so an element with the specified id cannot be found and the autocomplete functionality isn't added to the control. Here is a quickstart application that demonstrates the problem: http://www.granfalloon.com/~caleb/wicket-quickstart.zip http://www.granfalloon.com/%7Ecaleb/wicket-quickstart.zip if I alter AbstractAutoCompleteBehavior to execute the javascript in a setTimeout() then everything work correctly in Firefox. -- Caleb Land ([EMAIL PROTECTED] mailto:[EMAIL PROTECTED]) -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Incomplete Autocompletion Behaviour
Hi, I am using the AutoCompleteBehavior (from wicket-extension). The text field that has auto completion is part of an AJAX loaded panel. The problem is that the JavaScript required for the auto completion is not loaded. How can I make Wicket load the JavaScript libraries? Regards, Erik. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Incomplete Autocompletion Behaviour
Sorry, I should have mentioned that. We are indeed using 1.2.2. How stable is the latest stuff in svn? Regards, Erik. Igor Vaynberg schreef: what version are you using? we knew this was a problem in 1.2.2 and already fixed it in svn. -Igor On 10/13/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I am using the AutoCompleteBehavior (from wicket-extension). The text field that has auto completion is part of an AJAX loaded panel. The problem is that the JavaScript required for the auto completion is not loaded. How can I make Wicket load the JavaScript libraries? Regards, Erik. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Incomplete Autocompletion Behaviour
Okay, thanks. That is good news. Erik. Igor Vaynberg schreef: the wicket-1.x branch is pretty stable, should be released as 1.2.3 very soon. -Igor On 10/13/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Sorry, I should have mentioned that. We are indeed using 1.2.2. How stable is the latest stuff in svn? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] User Friendly Validation Messages
You don't even need to do that when you have a resource with the name formid.firstName of just firstName Erik. craigdd schreef: Sorry, should have read a few more posts...here is the solution to the different message. new RequiredTextField(firstName).setLabel(new ResourceModel(resource.key)); -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] User Friendly Validation Messages
Correct. Well, unless you also use FormComponentLabel. Erik. craigdd schreef: So you are saying as long as you have the following in the .properties of the page formid.firstName=My Label, I don't even need to set the label in the form code? Very Nice. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Will the Pro Wicket book provide more insight?
For almost any open source product there is more information on-line then in books. However, that does not mean you will be able to find it, or understand it. The Pro Wicket book is very good to get you started in Wicket thinking. Afterwards, the online stuff makes a whole lot more sense. Regards, Erik. Todd Patrick schreef: I've flipped through the Pro Wicket book at my local Borders Bookstore and I see some useful information. However, from what I am finding online - Wicket's popularity is slowly growing, thus so is the information. Honest opinion please: Would the Pro Wicket book provide more insight and information or am I ok with what is available for online resources? Thanks, --Todd -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Life Cycle
It's on the Wiki: http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle You can find it by following 'Reference library' from the main page. Regards, Erik. craigdd schreef: Does anyone have any good documentation of the life cyle for wicket? -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JBOSS Reload Classes
That sounds nice. I always redeployed the complete ear. You had to restart JBoss after every 2 to 3 deployments because of the memory problem. I found it a very annoying process. In my current project I am very happy to work with Jetty. We will deploy and test on WebLogic though. I am not afraid of large differences as we will not use EJBs in this project. We will use a bit of JNI, but because of Spring, that will just be a configuration issue. Erik. Aaron Hiniker schreef: I use jboss for development. You can set your web app as exploded and have the jvm do class hotswapping via your IDE.Also, you can explode your .ear file and redeploy individual modules (war, ejb3 and par modules for example) independently of each other, meaning you don't have to redeploy your whole app.You should never have to restart the actual JBoss server unless you run out of PermGen space (which will happen after you redeploy hundreds of times).. On Fri, 2006-10-06 at 11:21 -0700, craigdd wrote: Again, sorry for this post to be a little off topic, however, this question has come up because as I'm evaluating wicket I've found that I'm restarted my container way too much while doing some simple web development. I thought maybe that people in this forum have had the same issue and found some slick ways around it. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Resource Bundle Best Practice
Craigdd, Wicket surprised me with a very advanced resource loading concept. You can define .properties files for any component and then there is a clever searching algorithm that moves up in the component hierarchy. In practice you can define labels on any component, any override those in any place where you use the component (both when you add it to a container, or when you subclass the component). BTW, this is not different from how the html templates are found. The book Pro Wicket has an extensive explanation on this subject. Regards, Erik. craigdd schreef: As I'm evaluating wicket I'm not seeing many examples of using resource bundles. I was wondering how, or what the best practices of using resource bundles with wicket was. I'm primarily interested on how you setup resource bundles through wicket, how to use resource bundles in html pages for things like labels, and how to use resource bundles within wicket objects such as forms to display back error messages gotten from resource bundles. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JBOSS Reload Classes
Martijn Dashorst wrote: Doesn't JBoss IDE start the jboss container in debug mode? Indeed, it does start jboss in debug mode. craigdd wrote: I don't think debug mode in jboss allows the reloading of classes, i believe it it just for remote debugging. Indeed again, JBoss is directly started from Eclipse (as all programs you start from Eclipse). Strictly there is no class reloading, but you _can_ change classes on the fly. Just remember that when you restart JBoss, you must recompile and redeploy your changed classes. Regards, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Development mode?
Hi, How do I find out in which mode Wicket is running (development/production)? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to find Wicket mode (Production/Development )?
[re-post due to mail-list problems.] Hi, How do I find out in which mode Wicket is running (development/production)? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: modal window link from inside a repeater (ListView)
Should it not be: listItem.add(new AjaxLink(openEditItem) { instead of add(new AjaxLink(openEditItem) { ? A lot of e-mail does not come through somehow. BTW, not only gmail has problems. Have fun, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to find Wicket mode (Production/Development )?
:)That I know. I meant, how can I find out from code? I should have been more clear :) Erik. Korbinian Bachl schreef: Hi Eelco, you watch the first 2 lines in the server log or you can get the config value in the app class... Regards -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to find Wicket mode (Production/Development )?
Created. https://sourceforge.net/tracker/index.php?func=detailaid=1571677group_id=119783atid=684978 Thanks for the code Pierre-Yves. Regards, Erik. Johan Compagner schreef: not yet, we should add this to the core please make a feature request. johan -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Why does XHTML validation fail?
Hi, I am using the very convenient 'Web Developer' extension for FireFox (http://chrispederick.com/work/webdeveloper/). It has a feature which accesses the html validator from W3C. Using this check gives an unexpected error: ---8-- Content-Type: text/html Encoding: utf-8 Doctype: XHTML 1.0 Strict Root Namespace: http://www.w3.org/1999/xhtml Other Namespaces http://wicket.sourceforge.net/ 1. Error Line 6 column 14: there is no attribute xmlns:wicket. xmlns:wicket=http://wicket.sourceforge.net/; You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the Strict document type with a document that uses frames (e.g. you must use the Transitional document type to get the target attribute), or by using vendor proprietary extensions such as marginheight (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. ---8-- As you can see the wicket namespace *is* recognised. Here are the first lines of the html file: ---8-- ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=nl_NL lang=nl_NL ---8-- Any ideas on why this fails? Is this related to the recommendation of http://www.wicket-wiki.org.uk/wiki/index.php/Best_Practices_and_Gotchas recommends to use the transitional dtd? And why is this dtd recommend anyway? Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pro Wicket book review
Hi, For those interested in the book 'Pro Wicket', I just posted a review. http://day-to-day-stuff.blogspot.com/2006/09/wicket-getting-serious-pro-wicket-book.html Regards, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket arguments for big slow companies (Was: links about wicket scalability...)
I just did a little blog about the results of the thread: http://day-to-day-stuff.blogspot.com/2006/09/wicket-for-bscs.html Thanks, Erik. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] links about wicket scalability...
(Breaking my week-long self-inflicted moratorium) Erik, I am very interested in your other arguments that would interest big slow companies. Regards, Erik. Erik Brakkee schreef: Hi all, A collegue of mine at a very big and slow organization is evaluating web frameworks, of which one is wicket. As expected, there is the remark that wicket is not scalable because of its use of session scope. I already gave the most important arguments, but it would be nice to have some good links for backing these arguments. In paticular, the link where (I think it was Eelco) mentioned that in a number of comparisons between web frameworks it was shown that wicket actually stores less in the session than other frameworks. This is a really strong argument, especially when backed up by real data. Nevertheless, I couldn't find this information anymore. Are there links to the applications (downloadable) proving this point? Cheers Erik -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] links about wicket scalability...
Or this one? http://www.javalobby.org/java/forums/t70272.html Erik. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] links about wicket scalability...
Hi Erik, Let me rephrase the question: What arguments did you use, that would interest big slow companies in adopting Wicket? Regards, Erik. PS. Too many Eriks in The Netherlands :) -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket arguments for big slow companies (Was: links about wicket scalability...)
Okay, so we've got: Irrefutable arguments for using wicket in big slow companies: * Very small learning curve. Comment: Agreed. But I still think you need at least one more experienced Wicket developers for more advanced things like manipulating html generated by other components. Of course, books like 'Pro Wicket' help a lot but are not for every programmer. * Natural programming paradigm familiar to Java developers Comment: Changed that to _Java_ developers. * Excellent feedback messages of the framework when something goes wrong. * Robustness, no weird or unexpected behavior. * Limited knowledge required of web technologies (HTML, javascript) and still do advanced stuff in a fraction of the time it takes you with other frameworks (just consider e.g. something as tabs and paging). Comment: I am not sure so sure about this one. Do you mean that you only need limited knowledge of HTML and Javascript? And what do you mean by 'advanced stuff'? May I add: * Excellent clustering support. Rationale: even though you can discuss about this to death (as on the thread on JavaLobby), I think we agree that Wicket currently has sufficient knobs to make this is a problem solved. * Excellent mailing list support. I also thought about: * Good support for modern web pages (AJAX), while being compatible with older browsers. But this one is I am afraid not good enough. For example FireFox 1.0 is not supported. Anyone else? Thanks Erik, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] License for CMS (components)
HOWTO: Pick an open source license http://www.theserverside.com/news/thread.tss?thread_id=40946 Regards, Erik. Ted Roeloffzen schreef: Hello all, We are going to create a Wicket CMS and/or CMS Components, but we are not sure under which license to do this. Which license would you prefer? BSD, Apache, (L)GPL or another one? greets, Ted -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket arguments for big slow companies (Was: links about wicket scalability...)
I like those. Lets hold them against the unfair criteria again (this is really fun): - Developer team scalability: Nice, this is indeed something large companies need and/or struggle with. Who has never had revision 1285 of struts-config.xml? And many big companies like splitting up work over technical lines instead of functional lines (java vs. html). - Reusability: I have unfortunately never seen a big slow company that cared about this. Please tell me if you saw some. - Maintainability: I have not seen many big slow companies that cared about this deeply. Furthermore, the big companies I worked at 'maintainability' is usually associated with 'maintenance': keeping big databases and J2EE application clusters alive. I am hesitating whether this one should be on the list. Erik. Eelco Hillenius schreef: I'm missing my favorites :) - Scales very well for development. Whether you're working in a team of 2 people or 20, you'll have all the possibilities of breaking functionality down in smaller pieces. Let your developers works on whole pages, or just (reusable) panels, or even on highly specialized components. Also, using separate HTML/ CSS people to mock up pages works really well with Wicket (*). - Reusability. Over multiple projects or in just one project: reusability is great, and actually is exactly the same thing as what makes OO great. You abstract a 'problem' with its data and behavior, and make it available for users to utilize in multiple situations. See related rant on custom components here: http://chillenious.wordpress.com/2006/05/12/a-word-about-custom-components/ - Maintainability. Same rules as OO apply. Changes are more local, making refactoring easier. Reusability makes that you'll have less copy 'n paste code. Etc. Eelco * There have been a bunch of discussions where some wind bags said that this is something no-one actually does. But they are wrong, because I've seen it work, and some of the projects I know of currently are doing it with great success as well. On 9/26/06, Erik van Oosten [EMAIL PROTECTED] wrote: Okay, so we've got: Irrefutable arguments for using wicket in big slow companies: * Very small learning curve. Comment: Agreed. But I still think you need at least one more experienced Wicket developers for more advanced things like manipulating html generated by other components. Of course, books like 'Pro Wicket' help a lot but are not for every programmer. * Natural programming paradigm familiar to Java developers Comment: Changed that to _Java_ developers. * Excellent feedback messages of the framework when something goes wrong. * Robustness, no weird or unexpected behavior. * Limited knowledge required of web technologies (HTML, javascript) and still do advanced stuff in a fraction of the time it takes you with other frameworks (just consider e.g. something as tabs and paging). Comment: I am not sure so sure about this one. Do you mean that you only need limited knowledge of HTML and Javascript? And what do you mean by 'advanced stuff'? May I add: * Excellent clustering support. Rationale: even though you can discuss about this to death (as on the thread on JavaLobby), I think we agree that Wicket currently has sufficient knobs to make this is a problem solved. * Excellent mailing list support. I also thought about: * Good support for modern web pages (AJAX), while being compatible with older browsers. But this one is I am afraid not good enough. For example FireFox 1.0 is not supported. Anyone else? Thanks Erik, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys
Re: [Wicket-user] Wicket arguments for big slow companies (Was: links about wicket scalability...)
Eelco, IMHO, what you describe here is 'flexible development' (I am avoiding the term Agile) rather then reusability and maintainability. Can you agree with this (somewhat condensed) assessment? Erik. Eelco Hillenius schreef: For both arguments: they *should care* about that and it should in fact be on the top of their list :). For the simple reason that it will save them money and effort. Don't view these two issues in very long, multi-project way per se though; any theoretical advantage you'll have after a year is probably YAGNI. But You'll reap the benefits of reusability and maintainability often in the same project. Typically projects run for many months - certainly so in big *slow* companies (usually years). You'll have people leaving and other people joining the project. When requirements change - and they do - you'll have refactorings. The better maintainable an application is, the less work and less error prone such refactorings will be. It will thus be cheaper and you'll be able to honor such change requests easier. Also, with projects of some size, you'll have variants of functionality (like a search function, a panel that displays information about the current context, etc). Rather than building all the variants over and over again, you create this reusable component and use it throughout your project. Eelco -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket arguments for big slow companies (Was: links about wicket scalability...)
I understand and I agree wholeheartedly. I appreciate and like your complete and thorough answers. But for BSCs (thanks for the TLA Che) we'll need terse and to the point arguments. I'll wait another day for some more comments and then write a little article about this discussion. Should be fun. I'll put in on the wiki too. Regards, Erik. Eelco Hillenius schreef: IMHO, what you describe here is 'flexible development' (I am avoiding the term Agile) rather then reusability and maintainability. Can you agree with this (somewhat condensed) assessment? Sure, whatever works for you :) What I tried to get across is that I don't think reusability and maintainability have to be viewed as long-term things only. I know from experience they typically are viewed like that by managers, who'll say they won't need it as they rather get the project done. But writing maintainable and reusable code may save you or your colleagues trouble next week rather than next year. Projects without much discipline when it comes to avoiding copy paste code and such, move fast in the first two months and get bogged down after six. My experience with projects done with MVC frameworks is exactly that. The further they progressed, and the more complex the UI got (often projects start out solving the easy problems first), the harder it got to implement changes to the UI, get new programmers to work on the project, etc. When I started looking for alternatives some 3 years ago, I was primarily doing that for 'management' reasons. Eelco -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket arguments for big slow companies (Was: links about wicket scalability...)
Hi Eelco, Nino, I'm not even sure whether I agree :) Wicket can be hard for people that are not comfortable with OO programming... I did not have a very small learning curve, nor did the two other consultants working here. I guess 'very small learning curve' is off then. I must confess I have to unlearn myself as well even though I have plenty of pure OO experiences and even though I have never ever liked PHP, JSP and even rhtml. (Shameless plug for RoR and html template fans: see project Persia http://blog.finalist.com/2006/09/25/finalist_project_persia/.) How about: - No need to learn new languages, Java and HTML is sufficient. About the experienced developer: there should be an experienced developer an any non trivial project. So this should not be a problem. Good support for modern web pages (AJAX), while ... FireFox 1.0 is not supported. This is not inherently true for the framework though True, but that is not good enough for this very biased list :) Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String(input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8); I think these problems are caused by javascript,because i am not familiar with javascript. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
You will not be able to see the difference between optimalization... String.equals() does exactly that, it test for length Aha! This is new for me. The last time I checked (Java 1.3) there were are least 2 instanceof operators in the implementation of String.equals(String) and no length checking. I just checked the Java 5 implementation. It looks a lot better, but there is still 1 instanceof operator. Anyway, another myth busted. Erik. Johan Compagner schreef: You will not be able to see the difference between optimalization... String.equals() does exactly that, it test for length and where we just do this .equals(value) without testing for null i will not rewrite those by first testing null to be able to call for length. On 9/21/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If this gets accepted, may I humbly suggest to replace value != null !.equals(value) with value != null value.length() != 0 The latter performs considerably faster (though it is of course still a micro optimization). Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Manuel Barzi schreef: Ok, Igor, I already solved this issue by re-implementing Link class in my custom LinkButton class, just adding the following snippet extracted from Button class, and added to the original onComponentTag Link in this new LinkButton class: --- // Default handling for tag super.onComponentTag(tag); // manuelbarzi { // setting the value property to the tag try { String value = getModelObjectAsString(); if (value != null !.equals(value)) { tag.put(value, value); } } catch (Exception e) { // ignore. } // } // Set href to link to this link's linkClicked method --- It works fine now. May this simple addition be interesting for other people needing this functionality, you'll judge according to statistics... Thank you and regards, Manu - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
He is just saying he doesn't want to rewrite the cases that do not have a null check. Please re-read yourself ;) Manuel Barzi schreef: and where we just do this .equals(value) without testing for null i will not rewrite those by first testing null to be able to call for length. This is wrong, we never said so. Just meant switching from [nullability-check] !.equals(value) to [nullability-check] value.length() != 0... ONLY THOSE DUETS! Re-read it, you will see. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
Hello, I missed the point that you are using the AutoCompleteTextField. Sorry, can't help you there. Erik. 王磊 schreef: In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version=1.0 encoding=UTF-8? html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /head body form wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
Indeed 8) I should probably be denied write-access to this list for at least a week. None of my e-mails seem to hit the mark at the moment. Erik. Manuel Barzi schreef: He is just saying he doesn't want to rewrite the cases that do not have a null check. Very weill, but the question is: whoever promoted that idea? Seems to be auto-promoted and auto-rejected... ;) Anyway, have a nice day! -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
If this gets accepted, may I humbly suggest to replace value != null !.equals(value) with value != null value.length() != 0 The latter performs considerably faster (though it is of course still a micro optimization). Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Manuel Barzi schreef: Ok, Igor, I already solved this issue by re-implementing Link class in my custom LinkButton class, just adding the following snippet extracted from Button class, and added to the original onComponentTag Link in this new LinkButton class: --- // Default handling for tag super.onComponentTag(tag); // manuelbarzi { // setting the value property to the tag try { String value = getModelObjectAsString(); if (value != null !.equals(value)) { tag.put(value, value); } } catch (Exception e) { // ignore. } // } // Set href to link to this link's linkClicked method --- It works fine now. May this simple addition be interesting for other people needing this functionality, you'll judge according to statistics... Thank you and regards, Manu - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
LOL I'll refrain from sending trivial changes to the wicket list in the future :) Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] INPUT (+ value, + onClick) as Button?
Very true. BTW this sounds like a PMD rule :) Still, they will be micro optimizations, only noticeable when they occur in a long loop. Usually its good architecture that will give you real performance gains. (This is why I love Wicket!) Manuel Barzi schreef: :) so trivial? then, let it be... I guess with a global search replace tool, you may micro-optimize likely a lot of portions of code containing that non-optimized comparison... (will try, nevertheless, to submit that patch...) -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing a Wicket CMS
Rick, Ted, At this stage of the project we are just researching which options current popular CMS systems There are many many many (did I say many?) different features possible. I think you should first pick a target audience and then model your CMS towards that group of users with their application. We are also in doubt about using the JSR-170. I can sincerely recommend using a JSR-170 implementation. Because: - you will be using a standard, this looks good on your graduation report, - the hard-to-do-right mapping from a hierarchical structure to a (flat) database is already done for you so you have more time for other features. Good luck and have fun, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Ted Roeloffzen schreef: Hello Wicket community, We, two IT-students, are currently working on our graduation assignment. Our assignment states that we develop a Wicket CMS, or at least components for the CMS. This assignment will take place from 4-9-2006 until late January of 2007. At this stage of the project we are just researching which options current popular CMS systems are offering and which we should implement in the Wicket CMS. At the same time we are researching how wicket works and which options are useful for using in the Wicket CMS. Through this mailinglist we would like to inform you about our assignment and we were hoping to get any suggestions and ideas from you, about which kind of components would you like to see and which not. We are also in doubt about using the JSR-170. Are you familiar with this JSR and if so what are your experiences with it. Should we use it or toss it out the window? We hope that you’re willing to cooperate with us and make this project into a success. Yours sincerely, Rick Postma Ted Roeloffzen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing a Wicket CMS
I can imagine 2 very basic components (assuming jsr-170 is used): - An editor component Features: - supporting different client side editors (e.g. FCKeditor and such) or clear text (e.g. for Textile fans) - supporting different models, but at least an implementation of a jsr-170 detachable model - preview? - A tree component Features: - icons configurable for different node types - shows a part of the jsr-170 tree, with filters to further remove items from the tree You will also have to think about what you want to do with images and other types of binary files (pdf, flash, etc.). Another common cms hurdle is linking between articles/pages/whatever text and linking from those text to binary files. A very important aspect of modern CMSs is the ability to add metadata to articles. Though there are many, components for categories and/or labels would be nice. Commenting is perhaps also something to look at. Erik. Ted Roeloffzen schreef: What we would like to do is create these components and to incorporate those in a comlete application. The components could become a Wicket-extension and the CMS could be used by others. Ted Rick On 9/13/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: As far as I am concerned, I would need components that allow to integrate easyly some CMS functionnlities in a Web app more than a complete application. Pierre-Yves -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Abstraction of Google Maps API?
That is a very very nice implementation. Thanks Iulian, Erik. Iulian Costan schreef: please check this out: http://syca.4java.ca/gmap/ /iulian -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Abstraction of Google Maps API?
You might want to take a look at jMaki. It provides 'components' that you can extract and Wicketify. The available components allow mashing with Google Maps, Yahoo Maps, Yahoo Geocoder and Flickr. jmaki home: https://ajax.dev.java.net/ jmaki sample app: http://www.javaserver.org/jmaki/ Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Peter Neubauer schreef: Hi there, I'm just wondering if anyone has done some abstration for a Google Map panel for Wicket in order to display points of interest etc in e.g. a Panel? /peter - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Abstraction of Google Maps API?
Nice. Is there an example application running somewhere? Erik. Frank Bille schreef: There is something in Wicket-Stuff: http://svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-contrib-gmap/ http://svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-contrib-gmap-examples/ -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MouseOver Effect on DataTable
The combination won't work. Try this for the even rows: tr wicket:id=results class=even onmouseover=this.className='litupRowOver'; onmouseout=this.className='even'; and for the odd rows: tr wicket:id=results class=odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='odd'; I removed the class litupRow as it contains no style in your example. If you want to maintain it do this: tr wicket:id=results class=litupRow even onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow even'; and for the odd rows: tr wicket:id=results class=litupRow odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow odd'; There are also javascript functions available on the net that allow you to add and remove classes from an element. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Gwyn Evans schreef: I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Joda-interest] Calendar module for JScience.
'Why?' I had the same question. After thinking some more I did find one point where integration could be used. JScience declares simple scalar durations. Perhaps they can be used as parameters to the several Joda-Time constructors and methods. I guess it is kind of cool that when you starting using this that you can no longer mix days and hours. However, personally I do not feel a burning need for this feature. Erik. Stephen Colebourne schreef: Hi Jean-Marie, I guess my first question would be 'why'. Why do you feel that you need a calendar module. What I mean is, why not simply point your users to use Joda-Time for date and time matters. That said, I'd like to cooperate if we decide thats the best approach. Try going to http://lists.sourceforge.net/lists/listinfo/joda-interest to subscribe. I'll try to update the link at some point. Stephen --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest
Re: [Wicket-user] VOTE
A vote for: 1. Give me the constructor change and the Java 5 functionality in one pass (Wicket 2.0) Regards, Erik. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Post 1.2 roadmap
Gili wrote: From past experience, whenever classes require arguments in their constructors there is always some flexibility lost. For example, you absolutely cannot invoke any code before super() if you subclass such a class so if the value of one of the arguments needs to be calculated or modified in any way prior to the super() call you're out of luck. Very true. It was only yesterday that it took me 4 hours to debug a very small piece of code, only to find out that the Swing base-class called my overridden method from the constructor. Yikes! Erik. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user