Re: [Wicket-user] replace ognl.
I'm not too sure about using dots for index/ map references. It differs from OGNL: http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/indexing.html. And personally, I think it is usefull to be able to distinct single from indexed properties just by looking at the expression. Is it /that/ more expensive? I mean, optimizing is good, but we don't have to over-do it. Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace ognl.
If it equals at least one of the OGNL uses, then I'm fine with it. Eelco On 10/27/05, Johan Compagner [EMAIL PROTECTED] wrote: ognl can do map lookup with just a expression (that was the first thing i had to do because that did go wrong when i started testing it) this was used: Ognl.getValue(string, anHashmap); so the need to do [sd] even with juk why is that needed ...? On 10/27/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm not too sure about using dots for index/ map references. It differs from OGNL: http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/indexing.html . And personally, I think it is usefull to be able to distinct single from indexed properties just by looking at the expression. Is it /that/ more expensive? I mean, optimizing is good, but we don't have to over-do it. Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best way to a handle SSL pages?
We're comitted to 1.4, so that's fine. Eelco On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote: Oh of course, that's what I meant. What Java version do I have to write for? I believe that Pattern was introduced in 1.4. Is that too late a version? On 10/27/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Sounds like a good idea. Would you mind doing it the official way, meaning that you put a request up in: http://sourceforge.net/tracker/?group_id=119783atid=684977 ? Easier to track and put in our changes' history. Thanks! Eelco On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote: Woo hoo! Got it by basically doing what PageMap.redirectToInterceptPage does. If I made a patch that added a setSecure(boolean) method to WebPage and handled all this stuff (redirects to https or http accordingly), would you guys review and consider putting it in the core? On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote: I'm trying to get something to work with: page.urlFor(IRedirectListener.class); but it just doesn't and I can't seem to figure out why not. On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote: Yea, but my problem is finding that full url because when checkAccess() is called, the url in the request is not the redirect handler, but whatever interface was called last, and you can't redirect to that. On 10/27/05, Johan Compagner [EMAIL PROTECTED] wrote: i think you just have te redirect to a full url (but then with https) On 10/26/05, Phil Kulak [EMAIL PROTECTED] wrote: At first I tried sending a redirect to the URL in the request, but with https instead of http, but that breaks down if the user is redirected to the secure page since the url may include listener interfaces and what have you. I could still do this if there was some other way to get the url for a page as it currently exists, but I'm not sure if I can do that, or if it's possible. Does anyone have any ideas on this? My ultimate goal is to just be able to flag pages that need to be secure as such, and have all the redirects taken care of in the super class. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace ognl.
It's all about choice of course. I agree with most proponents of getting rid of OGNL: it's way too heavy for 95% (or more) of the usual cases, and less dependencies == good. But, I think it would be really good not only to keep alternatives in e.g. the extensions project, or with a seperate project (for the sake of keeping the number of dependencies needed for extensions small too), but also make sure our compound property models can work with the different options there are (you could write a Groovy implementation if you want to, and put it in the groovy wicket-stuff project). AbstractPropertyModel could work with something like a propertyresolver/ delegate (one more indirection :)) for getting and setting values based on a expression, and it might even be a good idea to have the option of having the default delegate as a application setting or something. Would be real easy to implement too. Eelco On 10/27/05, Jonathan Carlson [EMAIL PROTECTED] wrote: and that is? Very similar to what you are proposing: http://groovy.codehaus.org/Collections and bean?.property (allows bean to be null) (see http://groovy.codehaus.org/Migration+From+Classic+to+JSR+syntax ) I really appreciate how OGNL is very flexible with allowing me to do things like concatenate two properties into one without having to write a new getter. Having a groovy-based property model would give similar advantages. And Groovy allows for compact iterating over collections like OGNL does (although I haven't had a need for it yet). If you got rid of that kind of functionality altogether, I think Wicket would be poorer for it. My 2 cents worth, - Jonathan [EMAIL PROTECTED] 2005-10-27 1:23:03 PM and that is? On 10/27/05, Jonathan Carlson [EMAIL PROTECTED] wrote: I'd prefer if it used a groovy-like syntax (or actual groovy behind the curtain) as much as possible. [EMAIL PROTECTED] 2005-10-27 11:15:05 AM The only thing for me to use [] for an index and { } for a map (for example) would be that this: mymap.property would mean that you really want to have a getProperty on a map (same goes for list) so i will change it to use with [] (without quotes that i find totally not needed) foo.list[0].bar foo.map[key].bar foo.list.bar (this is a get property of the list) foo.map.bar (this is a get property of the map) But i am affraid that when i do the last thing (it needs to be a property of map) that wicket fails currently so i think i fall back to that that i will also look it up as a key if the property is not found. This will result in more mem en cpu usage. (i don't create any garbage currently) On 10/27/05, Johan Compagner [EMAIL PROTECTED] wrote: ognl can do map lookup with just a expression (that was the first thing i had to do because that did go wrong when i started testing it) this was used: Ognl.getValue(string, anHashmap); so the need to do [sd] even with juk why is that needed ...? On 10/27/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm not too sure about using dots for index/ map references. It differs from OGNL: http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/indexing.html . And personally, I think it is usefull to be able to distinct single from indexed properties just by looking at the expression. Is it /that/ more expensive? I mean, optimizing is good, but we don't have to over-do it. Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Katun Corporation -- www.katun.com http://www.katun.com _ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace ognl.
Oh, and of course AbstractPropertyModel.ognlExpression should be replaced by e.g. .expression or something similar. Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: votes needed on SUN/ Java bug
Oh, and while your at it, this http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4950148 is another bug that would be helpful for Wicket to be solved. Eelco On 10/27/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Jonathan filed a bug report with SUN that he thinks, when solved, will improve some Wicket stuff. Wanna vote? Read it at: http://jroller.com/page/JonathanLocke/20051027 Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] votes needed on SUN/ Java bug
Jonathan filed a bug report with SUN that he thinks, when solved, will improve some Wicket stuff. Wanna vote? Read it at: http://jroller.com/page/JonathanLocke/20051027 Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace ognl.
Yeah, that's true. You're right. Maybe it isn't such a good idea then. Eelco On 10/27/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, On 10/27/05, Eelco Hillenius [EMAIL PROTECTED] wrote: AbstractPropertyModel could work with something like a propertyresolver/ delegate (one more indirection :)) for getting and setting values based on a expression, and it might even be a good idea to have the option of having the default delegate as a application setting or something. Would be real easy to implement too. I like the idea of one more indirection :-) to allow more than a single implementation. But I can see a problem arise if you do so: having many implementations that eventually will not share the same syntax for accessing properties. This could presumably be a risk for Components Reusability, if some packaged components embark their own models and rely on a certain syntax for specifying access to model properties ? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] My take on Spring integration
Furthermore, you should never ever call a overridable method in a constructor. Eelco On 10/27/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Christian Essl changed the world a bit at a time by saying on 10/28/2005 12:54 AM :# Is AOP realy needed for that? Propably I do not understand the problem but why can't you just write a special Panel, Page etc which calls an overrideable injectDependencies() method in the constructor. The default implementation of injectDependencies() does basicly read the annotations, lookup the services and inject them? Because in this case the component itself does the lookup. And this is not what you really want. ./alex -- .w( the_mindstorm )p. I think this way you could on an instance by instance basis fine-grain control what gets injected. And during testing you just inject the mocks in this overriden method. Just my two cents. Thanks, Christian On Thu, 27 Oct 2005 21:50:02 +0200, Stefan Arentz [EMAIL PROTECTED] wrote: On Oct 27, 2005, at 9:21 PM, Sven Meier wrote: BTW rather than letting panels pull service from the page, I'd prefer the page to push services into its panels (i.e. the page injects dependencies into its panels). I don't want my panels to be dependent on the containing page. Yup. That is exactly what I do. But. I just moved the aspect from WebPage to Component and guess what, the annotation and bean resolving works fine in Panels and WebComponents too now :-) It is still to hackerish to use btw. There are some really nasty delays for example. I need to find some time to polish this. S. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] beforeCallComponent and afterCallComponent
I'm fine with any changes on the short term if that makes it better for people to use. For the longer term (1.2.), we should re-think more about generalizing it. It's probably not difficult either, just a lot of thinking before implementing. Eelco On 10/28/05, Johan Compagner [EMAIL PROTECTED] wrote: Would be very nice to give it some though But i was not talking about url generation Just handling the component listeners (After the parsing of the url) So pure the java side (so really the method where the talk is for now: I was talking pure for this method: private void invokeInterface(final Component component, final Method method, final Page page) If it was me that method can be pushed to RequestCycle and made protected. then you don't have to do this: if (page instanceof WebPage) { ((WebPage)page).beforeCallComponent(component, method); } but just this: page.beforeCallComponent(component, method); so page could have that method. I agree the parsing right before that methods is somethign for WebRequestCycle But the handling of it can go to RequestCycle itself. I think that in every request cycle impl you will get that component interface handling (that doesn't have anything to do with web/http) On 10/28/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, we have done some ofline discussing on this topic too. For 1.2. we could start thinking about a better model for handling urls. Something like: A. The creation of urls (e.g. for a link). Instead of letting urlFor doing the whole url construction, we could have a strategy for this (Igor wondered why we didn't have this in the first place). Now the trick is (imo) that we should combine idea of reachability with the idea of state management. That would mean letting components contribute to that url constructing. Like: strategy implements the 'url stub' and collects the component's contribitions to this url. What a url would look like however would be strategy dependend, so the strategy has to know how to collect specific info. Strategy 1 could result in a url like we have now, strategy 2 could result in something like http://myhost/myapp/admin?path=3,form1=12341,form2=some other key. I'm just thinking out loud, but the plan is to have something that enables us to be really smart with state handling; the above example has form1 that has a detachable model with an object key 12341... that's the only thing needed for that form to be reconstructed, as the rest (in my example the form has only components with compound property models nested) can be derived. Oh, and this has been about urls so far, but I really mean something a little bit more abstract, so that a strategy can decide whether to end up with an actual url, or something like a set of hidden form fields. Maybe. B. The parsing of a request. Again this would be done by strategies. The idea would be to 'mount' strategies to url patterns (akin to mounting servlets and I think Tapestry's application services work like that?). Steps would be like: 1. request comes in, Wicket looks for the mounted strategy for this specific request. 2. strategy parses the request and tries to get/ rebuild the component tree. Two concrete case are: a strategy that just needs the page id, and gets it out of the session, and a strategy for bookmarkable pages that needs the class name to create a page instance and then passes in the url parameters. But if we think this through well, we could end up having the ability to work with pages that doesn't have to be stored in the session, but that can be reacreated on a request. 3. now that the component tree is available, optionally execute a listener method. Again the strategy decides when/ how this is done. It's easier to talk about this than write it down in a short time. Anyway, I think something like above is the direction we need to go for the ultra scalability. Eelco On 10/28/05, Johan Compagner [EMAIL PROTECTED] wrote: My question about this is can anybody name a Page that isn't a webpage? And that would also have a own requestcycle? that doesn't use a componentListener? Why i ask this. Could componentListener handling not pushed to RequestCycle? What is so WEB about it? On 10/28/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: On 10/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Regarding the newly added 'around functionality' of WebRequestCycle and WebPage. I certainly welcome this addition in the background of Spring integration and AOP, but I see some problems with this implementation. First of all we now have a new dependency to HTML markup in WebRequestCycle.java: WebPage are meant for HTML markup, which is why they have the prefix Web. The base clase Page is meant
Re: [Wicket-user] Make wicket.markup.html.navigation.paging.PagingNavigationLink non-final.
I this case, are there any good reasons /not/ to remove final? As far as I can see, it doesn't really leak many implementation details if we make some methods final. Funny thing that the authors tag has Jonathan and me... I can't recall writing this, and I don't think Jonathan did :) Will the real author please step up? Eelco On 10/28/05, Johan Compagner [EMAIL PROTECTED] wrote: but that looks to me like a AttributeModifier On 10/28/05, Janne Hietamäki [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: Why? What is your use case? Juergen I need to have an OnClickScript on my paging links to do some ajaxian stuff. -- Janne Hietamäki Cemron Ltd http://www.cemron.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] replace ognl.
I agree with Matej. Eelco On 10/30/05, Matej Knopp [EMAIL PROTECTED] wrote: In my opinion, there's no need for another indirection. From what I've seen, new users are already confused about models, making them even more complicated isn't imho the way to go. I think that Ognl models should be separated from the core and put to extensions. That would also get rid of ognl as a dependecy. Just my 2c. -Matej Johan Compagner wrote: Ok now we released 1.1 i have committed the ognl replacement It is not yet plugable yet we first need to see what we will or can support to bring back ognl for specific things. (plugable or in wicket extentions as its own model?) This is the current javadoc it explains what is possible now: This class parses expressions to lookup or set a value on the object that is given. The supported expressions are: property: This can can then be a bean property with get and set method. Or if a map is given as an object it will be lookup with the property as a key when there is not get method for that property. property1.property2: Both properties are lookup as written above. If property1 evaluates to null then if there is a setMethod (or if it is a map) and the Class of the property has a default constructor then the object will be constructed and set on the object. property.index: If the property is a List or Array then the second property can be a index on that list like: 'mylist.0' this expression will also map on a getProperty(index) or setProperty(index,value) methods. If the object is a List then the list will grow automaticaly if the index is greater then the size Index or map properties can also be written as: property[index] or property[key] On 10/28/05, *Phil Kulak* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I like the idea of being able to plug in OGNL if you really need it. Now that I think about it, I've got a couple ChoiceRenderers that call functions using OGNL. Although, it probably would be very easy to rewrite these by just implementing the interface myself, and much more efficient. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list [EMAIL PROTECTED] mailto:[EMAIL PROTECTED].net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
Not core, but a support project is nice. Please take a look at wicket-stuff and look (in CVS) at the wicket-contrib-navmenu project. There's an example for it in wicket-stuff-examples. I need more people to participate/ contribute to this too, so please help. Eelco On 10/30/05, Andrew Berman [EMAIL PROTECTED] wrote: I agree with Johan. Tabs are by no means a core component. In fact, you can accomplish tabs easily using a ListView and some CSS, so it's definitely a design issue as Johan mentioned. See these for the CSS to create tabs: http://www.alistapart.com/articles/slidingdoors/ http://www.alistapart.com/articles/slidingdoors2/ --Andrew On 10/30/05, Johan Compagner [EMAIL PROTECTED] wrote: why is it a core component? It is mostly a design issue if you ask me. Because under neath it are just links that are setting a panel (or switching visibility) How would such a component look like? On 10/30/05, Stefan Lindner [EMAIL PROTECTED] wrote: Dear Dave, dear wicket developers, I had the same question some weeks ago. There once was an example called TabPage and is still available in a silent corner of the CVS. But the Example no longer works with Wicket 1.1. I think a tabbed page is a core component for web development and should be availabe with wicket. Please hel pus, Wicket developers! Thanks in advance Stefan Lindner --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Discussion about strategy
Actually, we're working on that right now. If you take a look at HEAD, you'll find the basis of authorization support integrated in Wicket. Eelco On 10/30/05, wang lei [EMAIL PROTECTED] wrote: I use wicket for over months and develop one project with it. So i have a suggestion for wicket core or wicket-stuff. All of us know,ACL is necessary for a project. Just a simple example, name here is user name Password(label) here is user password(TextField) ... ... ... ... ... ... ... ... ... ... ... ... If the viewer is a administrator,he can see the password,and other users can't see the password. The common users will see the following table. name here is user name ... ... ... ... ... ... ... ... ... ... ... ... In the simple ways,just set the label and textfield invisible.You also can add a wicket container as the parent ofthe label and textfield. Just the container visible. But both of themare not flexible. So i just design a IStrategy interface and many components based on wicket components like label,TextField and other components. The IStrategy interface control the visiblity ,readonly, disabled and other propertiesof the component. It will make the component flexible. I also add jaas and dao together so the component can control itself. How about the design. I need more options about it. 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 雅虎助手¨D搜索、杀毒、防骚扰 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 雅虎助手¨D搜索、杀毒、防骚扰
Re: [Wicket-user] Dinamic resources checkAccess
We certainly should do. What's your use case? Eelco On 10/31/05, pepone pepone [EMAIL PROTECTED] wrote: Hello I developing a wicket app that need to check Access to app resources any ideas for implementing this feature? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?
Tabs like that could work too. Maybe easier than navmenu. The idea behind navmenu was that navigation inherently is a tree structure - possibly just one level - but in such a way that you wnat to access each level seperately (so that you can render each level independently). Having a tree makes it easy to have a dependency like when you select 'option 1' from the first level, you'll have 'option a' and 'option b' for the second level (childs of 'option 1'). I'd propose to see whether we can merge the ideas somehow. There's enough overlap already, I'd like to see one good tabbed panel/ navigation component ('cause I think it is the same thing in the end) that is supported (part of one of the wicket core projects). Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] add js-function to header only once?
You can override renderHeadInitContribution. You need to call super too though, if you want dojo to keep working. Eelco On 10/31/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: I don't know much about the AjaxHandler, but with markup (wicket:head) copying is done only once by default. May be you can take a look at the existing code. Juergen On 10/31/05, Marco van de Haar [EMAIL PROTECTED] wrote: We're developing Dojo FX which require some javascript to be added to the page. Our FX extend DojoAjaxHandler so we can make header contributions. Only problem now is an efficiency problem. Currently a +- 15 line javascript function is added to the page everytime an effect is added. I have rewritten this js function so that it is generic and only needed once. So if I were to add 5 FXOnClickWipers to my page, my renderHeadContribution() nicely adds 5 functions to the page's head. Currently, the functions are different, but hold a lot of redundant code. As I stated before, I have rewritten the javascript code to be rendered, so that the entire function only has to be rendered once, and every other FXOnClickWiper only has to render one extra line to the head. Is there a way that I can render the function once and then make a 1 line contribution to the page per effect? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Fwd: [Wicket-announce] Vote for Wicket
There aren't that many subscriptions to announce, that's why I'm forwarding it to the user list. Thanks Miko! Eelco p.s. only honest anwers of course :) -- Forwarded message -- From: Miko Matsumura [EMAIL PROTECTED] Date: Oct 31, 2005 4:31 PM Subject: [Wicket-announce] Vote for Wicket To: [EMAIL PROTECTED] http://forums.about.com/n/pfx/forum.aspx?nav=messagestsn=1tid=1584webtag=ab-java Vote for Wicket here! --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-announce] Vote for Wicket
Thanks for the hint. I didn't sign up, but I always liked magnolia. Maybe it's time to check it out :) Eelco On 10/31/05, Janne Hietamäki [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: http://forums.about.com/n/pfx/forum.aspx?nav=messagestsn=1tid=1584webtag=ab-java Vote for Wicket here! FYI, few votes would help here http://jira.magnolia.info/browse/MAGNOLIA-588 ;) -- Janne Hietamäki Cemron Ltd http://www.cemron.com/ --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Issues with GridView in Wicket-extensions
There is a delay of a couple of hours between the developer servers (ssh) and the public servers (pserver) of sourceforge. Eelco On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Hmmm...I just pulled from HEAD and #2 is still not working. Looking at the code, I didn't see the change you made for defaulting the number of rows to Integer.MAX_VALUE, so I'm assuming I don't have the code you fixed. Are the commits slow or something? I gave you more info in the first bug too as you requested. --Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: fixed and fixed couldnt reproduce the exception you got from (1), see the bug report for more info. changes are in 1.1 branch and HEAD cvs. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: Two bugs filed: 1. http://sourceforge.net/tracker/index.php?func=detailaid=1345332group_id=119783atid=684975 2. http://sourceforge.net/tracker/index.php?func=detailaid=1345337group_id=119783atid=684975 Thanks Igor Andrew On 11/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Please file a bug. -Igor On 11/1/05, Andrew Berman [EMAIL PROTECTED] wrote: I've run into a couple of issue with the GridView class in the Wicket-Extensions version 1.1 release: You have to explicitly set the rows per page because the default is set to 1. When I set the rows to Integer.MAX_VALUE I get: java.lang.IllegalArgumentException: Argument [itemsPerPage] cannot be less then 1 When I create a new GridView and then call getPageCount() on it, it always comes out as 0. This method was working correctly when I was using the PageableGridView from the wicket-stuff project. Should I file bugs for these or am I missing something? Thanks, Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Expiration
oh, and yes, the only way to never have timeouts is to use bookmarkable page links as bookmarkable pages do not use a prior session (in fact, if you don't have a session yet and you navigate to a bookmarkable page, a new session is created). Eelco On 11/1/05, Eelco Hillenius [EMAIL PROTECTED] wrote: It your session that timed out. You can configure it as part of web.xml. Eelco On 11/1/05, Dan Gould [EMAIL PROTECTED] wrote: If I load a wicket page that contains some PageLinks, then I walk away for awhile and then come back and click on one of the links, I get sent to the Page Expired page. (I haven't restarted the server or hit any other pages in the meantime). I'm probably missing something obvious, but I'm not sure how to avoid this (other than using BookmarkablePageLinks everywhere, but that won't help with forms). Am I misusing detatchable models somehow? Is there a way to save state? Is there a way to change the timeout that I'm missing? Is it a tomcat issue? Thank you very much (for this and all the help on the list), Dan --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Page Expiration
I wasn't too impressed by WADI's progress to be honest. Seems to be yet another dead project. Eelco On 11/1/05, Dan Gould [EMAIL PROTECTED] wrote: Thanks Eelco-- For anyone else who is looking, the param in web.xml is session-config session-timeoutTIME_IN_MINUTES/session-timeout /session-config if you set it to 0, it will never expire session, but I assume that memory will quickly become an issue. In Tomcat, it looks like there's an optional Store called org.apache.catalina.session.PersistentManager that will let you persist sessions to a file ot JDBC database. This might let you keep sessions around forever. It is not designed for clusters, however. WADI (wadi.codehaus.org) may solve this for clusters. In the meantime, I'll convert a lot of my links to BookmarkablePageLinks... Thanks again, Dan --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket
That's easy to do in Wicket. You can nest anyway you want in your forms, including using listviews (though don't forget to set the optimizeItemRemoval property to true). Eelco On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I wonder if it is easily feasible to have functionality like struts-nested, the struts extension made by the keyboardmonkey team ( http://www.keyboardmonkey.com/pilotlight/next/Tutorial_partTwo.jsp?content=yesplease ) This allows to create forms with nested elements : a monkey having some properties, and a list of beans representing a banana bunch, made of some properties, as well as a (dynamically modifiable) list of bananas, whose bananas contain some properties ... ( the nesting could be more than this one level example). And in the same page : monkey properties are editable, existing bunchs and bananas properties are editable. It is also possible to add a bunch to the monkey, or a banana to a bunch, to delete a bunch from the monkey, a banana from a bunch Not sure is this can be done easily in wicket ? What would you suggest to do it the best way ? Thanks in advance, -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket
I never liked that name either. Other people did and we settled for it. Just the way the world works sometimes :) Eelco On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote: That's easy to do in Wicket. You can nest anyway you want in your forms, including using listviews (though don't forget to set the optimizeItemRemoval property to true). I'll try to redo the struts monkey example in wicket, in order to really feel what it is like doing it with Wicket. By the time : I don't really like the name of the setOptimizeItemRemoval method, if I must use this method not only for optimization concerns, but also for functional concerns. Having a key feature of the view of my application relying on an optimization algorithm (as the name of the property implies) isn't appealing to me. For the moment I don't have anything better to suggest, I'm just with that feeling that playing with optimization properties in order to allow Form nesting sounds more like a trick than like a core feature -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListView for navigation menu?
In that case, better would be to compare the current index of ListItem (li.getIndex) with the ListView's size (lv.getViewSize()). That way you won't have to touch the 'internal' model, and it'll work with sizes that differ from the underlying model. Eelco On 11/2/05, Phil Kulak [EMAIL PROTECTED] wrote: So you just need to know when the item you're rendering is the last in the list? Well, you have access to the list (getList()) and the item (item.getModelObject()), so it should be pretty straight forward, if not elegant, to find out if the item is the last in the list. On 11/1/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, something like that could work pretty well. I think you should take a look at how paged lists work (package wicket.markup.html.navigation.paging). Eelco On 11/1/05, Stijn de Witt [EMAIL PROTECTED] wrote: Hi all, I'm a new user to Wicket. I love what I have seen so far. The HelloWorld example was very convincing for me to give Wicket a try! I am trying to create a menu to go above my pages. I have been browsing through the Wiki and looked at the navigation example. The navigation example uses borders, but before I delve into those, I thought of trying something else, and I wonder if you could give me some feedback on it. I thought I might use a ListView. I think I could add a ListView to my page that would contain Links to WebPages to create a simple navigation bar. I found some example code and HTML in the javadoc: A ListView holds ListItem children. Items can be re-ordered and deleted, either one at a time or many at a time. Example: tbody tr wicket:id=rows class=even tdspan wicket:id=idTest ID/span/td ... Though this example is about a HTML table, ListView is not at all limited to HTML tables. Any kind of list can be rendered using ListView. And the related Java code: add(new ListView(rows, listData) { public void populateItem(final ListItem item) { final UserDetails user = (UserDetails)item.getModelObject(); item.add(new Label(id, user.getId())); } }); For a navigation bar I could think of this for the HTML: div id=navigation span class=item wicket:id=navigationitems a wicket:id=link href=#Item/a span class=separator | /span /span /div But I need some way to identify the last separator in the stylesheet, so I can hide it. In the example the class even is used in the table row, but how is this updated to odd ? Am I on the right track here? Any suggestions, Greetings, -Stijn --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] (off topic?)- Where is Jonathan Locke?
Kidding of course. He's doing fine. He's working on Wicket in the background now and then, but is mostly focussing the zillion other things he's doing with his life. Eelco On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote: He abducted him and threw him into a river. That bastard just got too vocal! On 11/2/05, Francis Amanfo [EMAIL PROTECTED] wrote: Haven't heared from him here since a long time. Just out of curiosity! :-) Francis --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] (off topic?)- Where is Jonathan Locke?
He abducted him and threw him into a river. That bastard just got too vocal! On 11/2/05, Francis Amanfo [EMAIL PROTECTED] wrote: Haven't heared from him here since a long time. Just out of curiosity! :-) Francis --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket
The fact that Wicket is an unmanaged framework means we put you, the programmer, in power. If you look at nesting and the way IModel works you are not limited in your options. For full power, combine Forms with ListViews and Panels. With panels, you can postpone any markup/ subcomponent decission until you actually need it, so this gives you max flexibility (though less previewability). Eelco On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote: Yes I did, but maybe not too deeply I assume. I'll try and do what I'm thinking of using Wicket, and then come back to the list with questions, if any. It seems to me that I haven't seen something as dynamic as what can be done with nested (and the page I pointed to was not fair about the dynamic possibilities). I feel that it is possible to do that with Wicket, maybe it's just I guess there are several possibilities to do that, and I'm not sure what the best could be, with the hypothesis of an existing domain model hierarchy ( monkey/bunches/bananas for example). CU, -- Laurent On 11/2/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Did you take a look at wicket-examples already? Compared to what is explained on the page you pointed to, it is very easy in Wicket and IMO much more flexibel. Juergen On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote: That's easy to do in Wicket. You can nest anyway you want in your forms, including using listviews (though don't forget to set the optimizeItemRemoval property to true). I'll try to redo the struts monkey example in wicket, in order to really feel what it is like doing it with Wicket. By the time : I don't really like the name of the setOptimizeItemRemoval method, if I must use this method not only for optimization concerns, but also for functional concerns. Having a key feature of the view of my application relying on an optimization algorithm (as the name of the property implies) isn't appealing to me. For the moment I don't have anything better to suggest, I'm just with that feeling that playing with optimization properties in order to allow Form nesting sounds more like a trick than like a core feature -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is this a bug? Please help.
I just created it for you: https://sourceforge.net/tracker/index.php?func=detailaid=1347328group_id=119783atid=684975 Eelco On 11/3/05, Johan Compagner [EMAIL PROTECTED] wrote: you can report bugs here: http://sourceforge.net/tracker/?group_id=119783atid=684975 On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: Sorry, How to make a bug report? I'm so new and never subscribe to any mail-list before. BR, black Johan Compagner [EMAIL PROTECTED] wrote: can you make a bug report for this with a copy of the mail below? On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: This occure on browser, the value of textfield changed when form is invalid and return. I just found that this is not problem with customValidator, but with RequiedTextField with multipart form (I'm not sure this will ocurred with only requiedValidator or other validator else, and also with any other charactors). My new testing to find out the real problem's cause is just modifying the UploadPage.java, UploadPage.html, UploadPage.properties in package wicket.examples.upload, which porvided with wicket-example. ### UploadPage.java ### // just add 2 required textfield in private inner class UploadPage.FileUploadForm add(new RequiredTextField(t1)); add(new RequiredTextField(t2)); ### UploadPage.html ### !-- add these lines into simpleUpload form -- input type=text wicket:id=t1/ input type=text wicket:id=t2/ ### UploadPage.properties ### # add these lines simpleUpload.t1.RequiredValidator=t1 required. simpleUpload.t2.RequiredValidator=t2 required. run example goto upload example then input a,b,c,d, (or indeed any String with comma) into t1 textfield, let t2 be blank so form is invalid, do not have to load any file. submit and then see value in t1 textfield. I think u will see a;b;c;d (just notice that last comma(s) also lost). Is this show that it's really a bug or I do it a wrong way, (indeed I just don't want to be a bug-reporter, I just want the way to solve my problem), plz suggest me how to solve this problem, too. I need help as soon as posible. BR, black Johan Compagner [EMAIL PROTECTED] wrote: What are you saying exactly? Are you saying that you input a value with a , in a textfield in youre browser and that , will be replaced with ; when you read it in at the serverside? Or are you saying that the model value does have a , in the string and it is displayed as a ; in the browser? johan On 11/3/05, blackboy zabaha [EMAIL PROTECTED] wrote: To all, I have some problem with wicket, I'm newbie. Condition - A form with a CompoundPropertyModel - 2 RequiredTextField - 1 FileUploadField - 1 TextArea with a CustomValidator when I input string value with comma (,) in either or both requiredTextField with an invalid value of textArea field, the value of requiredTextField will always replace all comma with ; (Note : other thing work fine, CustomValidator work right, just this replaceAll-like behavior!) but if form pass my CustomValidator, nothing wrong. Below are some important part of codes. ### My Form ### public SubscriberGroupForm(String id, SubscriberGroup model) { super(id, new CompoundPropertyModel(model)); setMultiPart(true); setMaxSize(Bytes.megabytes(10)); add(new RequiredTextField(name)); add(new RequiredTextField(description)); countLabel = new Label(count, new PropertyModel(model, count)); countLabel.setVisible(false); add(countLabel); fileUploadField = new FileUploadField(file); add(fileUploadField); add(new TextArea(numbers).add(NumberValidator.getInstance())); // --- My CustomValidator. add(new Button(submitButton)); final FeedbackPanel simpleFeedback = new FeedbackPanel(simpleFeedback); add(simpleFeedback); } ### My CustomValidator ### public void onValidate(wicket.markup.html.form.FormComponent formComponent, String value) { if(value == null) { return; } else { for(StringTokenizer tokenizer = new StringTokenizer(value, ,); tokenizer.hasMoreTokens(); ) { String number = tokenizer.nextToken(); if(!ValidatorUtil.isValidNumber(number)) { error(formComponent); break; } } } } ### My Model ### public class SubscriberGroup implements Serializable { private String name; private String description; private String file; private String numbers; private int count;
Re: [Wicket-user] Unexpected behaviour when using AjaxHandler's getBodyOnloadContribution()
That should work. Might be a bug. Could you pls try to step into it? Eelco On 11/4/05, Marco van de Haar [EMAIL PROTECTED] wrote: I encountered somewhat unexpected behavior when I tried using getBodyOnloadContribution(). When adding custom Ajaxhandlers to components I noticed that the getBodyOnloadContribution() is not called when I added the handler to an Image or a Label. It was however called upon loading the page when I added my handler to a WebMarkupContainer. Is this method meant to hehave this way? If so, I did not find it in the documentation. I think it is logical that the method is also called for Components like Label and Image. I am not really familliar with AjaxHandler's internal code however. Marco --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Help understanding component creation
I know the danger. I agree with the danger, and I agree with /not/ implementing it when other people are against. It is just that /I/ think it is powerful to be able to create high level components that you can add with a single line in your java code, and then configure the rest in your markup. And that would be the basis of combining it with wicket:component, so that you put such components in your markup anywhere you like to circumvent one of the drawbacks of Wicket, namely that you have to keep your component nesting and markup nesting in sync. Again, potentially dangerous, but a powerful tool for the users that can handle it. We're not especially targetting rooky programmers with Wicket too. Eelco On 11/3/05, Martijn Dashorst [EMAIL PROTECTED] wrote: To quote from the discussion (not the exact wording, but the basic idea): First we introduce markup parameters (which then need to be parsed, could become any OGNL expression), then we want conditional markup, loops in your markup, and finally we end up with Wicket Server Pages: JSP in another language. Having the expressions in one place and one place only is one of Wickets strengths: it is clear, simple and sensible. Martijn On 11/4/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Though there has been much debate about allowing such markupdriven configuration (with me being in favor for allowing it to some extend), configuring components like that is not 'the Wicket way'. Rather, you would do any configuration in your code. Contrairy to most alternative frameworks, Wicket is largely unmanaged, hence you are in charge of component and initialization yourself. Thus, you would do: MyComponent c = new MyComponent(); c.setParam1(...) c.setXX(.. add(c); To get a better idea, please take a look at Wicket's examples. Eelco On 11/3/05, David Leangen [EMAIL PROTECTED] wrote: Hello! I have read the doc and looked at the examples, but there are still a few things that I don't get. Probably, I have the Tapestry approach stuck too much in my head... How do I write a component that takes parameters? This is an example of what I'd like to do: span wicket:id=myComponent param1=someValue param2=ognl:com.package.SomeClass/ public class MyPanel extends Panel { private String m_param1; private SomeClass m_someClass; public MyPanel( final String id ) { super( id ); } public void setParam1( final String param1 ) { m_param1 = param1; } public String getParam1() { return m_param1; } public void setSomeClass( final SomeClass someClass ) { m_someClass = someClass; } public SomeClass getSomeClass() { return m_someClass; } } Thanks for any advice you can give! --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https
Re: [Wicket-user] Re: Dynamic text in Javascript's alert box
Yeah, there's no scripting in Wicket. Everything has to be full components etc. What you can do however, is create a component that generates the whole javascript for you, e.g. working with string replacements. Best way to start with that is looking at the sources of some Wicket component, like label, and experiment a bit with it. Eelco --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] My take on Spring integration
I see absolutely nothing wrong with lookups at that level. It's less code than you would need for any component configuration and it's more efficient too. And there are just no disadvantages, are there? And... for this whole discussion: if you like one approach... go implement it now! Create your own component factory, annotations processor, aop, and please contribute when you've got something nice working. Or let us know when you need specific changes to Wicket to support your needs. We'll most probably honor such requests if they are reasonable as we've done in the past. Eelco On 11/6/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/6/2005 7:06 PM :# Or how about a simple solution: public MyApplication extends WebApplication { public Object lookup(String name) { Object=...do a lookup from somewhere like spring context or app object...; return object; } } public MyPage extends Page { public transient SomeService service; public SomeService getService() { if (service==null) { service=getApplication().lookup(SomeService.class.getName()); } return service; } I know its not quiete as elegant as ioc but it has none of the performance hits an automatic injection would cause if it would be done on deserialization of every component. Also its a lazy lookup so you dont do it until its needed, and its only done once per page (until it gets deserialized). -Igor But this was exactly what I was suggesting to avoid ;-). Lookups and factories are not ioc/di. ./alex -- .w( the_mindstorm )p. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Servlet forward to a JSP
Sure. Use wicket.markup.html.pages.RedirectPage for server-side redirecting to a non-wicket locations. If you want to inlcude things likes JSP pages into Wicket pages, you can use the wicket.markup.html.include.Include component. The latter is a bit rough, so if you need better support on that one, please contribute ;) Eelco On 11/6/05, Robert McClay [EMAIL PROTECTED] wrote: I'm exploring the possibility of integrating Wicket into a JSP application. Is it possible to tell Wicket to do a servlet forward to a JSP? I would like to add a few request attributes and then forward to a JSP. The reason I'd like to do a forward VS include is I need to be able to populate request attributes prior to the JSP running. The login page is currently implemented in JSP. Another option would be to refactor the login page, but I'm curious if it is feasibile to attempt the former as I want to use as much of the existing system as possible. Thanks. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Servlet forward to a JSP
Ah, yes. True. It used to resolve local includes using javax.servlet.RequestDispatcher, i which case including request attributes would work. However, that proved to be quite problametic and we changed it to always use the absolute requests. What you need shouldn't be too hard however. But it is not something Wicket supports out-of-the-box (and I'm not sure whether that would be in Wicket's scope either). You don't need Wicket to tell stopping any processing, as that is already part of the idea of component orientation. What you need (to build) is a component that gets the content you want to include during it's rendering process. E.g. by letting your component extend from WebComponent and overriding method onComponentTagBody to do the work. In this method, you'll probably want to use the request processor: RequestDispatcher dispatcher = ((ServletWebRequest)getRequest()).getHttpServletRequest() .getRequestDispatcher(*path-to-jsp*); For the including. Eelco Eelco On 11/6/05, Robert McClay [EMAIL PROTECTED] wrote: If I come up with anything useful I'd be happy to contribute. The JSP I need to forward to requires request attributes, so I don't think the wicket.markup.html.include.Include component will work as from what I understand it is a separate request whose output is then included into the markup? In this case, the result of RedirectPage would be the same as it is a fresh browser request and I need to populate a request with request.setAttribute() and have the JSP be able to retrieve the request attributes. What I'm looking for is a way in Wicket to tell it to finish its processing, not output any markup, and then forward the request to another servlet, not include or redirect. Thanks. On 2005-11-06 15:38:06 -0700, Eelco Hillenius [EMAIL PROTECTED] said: Sure. Use wicket.markup.html.pages.RedirectPage for server-side redirecting to a non-wicket locations. If you want to inlcude things likes JSP pages into Wicket pages, you can use the wicket.markup.html.include.Include component. The latter is a bit rough, so if you need better support on that one, please contribute ;) Eelco On 11/6/05, Robert McClay [EMAIL PROTECTED] wrote: I'm exploring the possibility of integrating Wicket into a JSP application. Is it possible to tell Wicket to do a servlet forward to a JSP? I would like to add a few request attributes and then forward to a JSP. The reason I'd like to do a forward VS include is I need to be able to populate request attributes prior to the JSP running. The login page is currently implemented in JSP. Another option would be to refactor the login page, but I'm curious if it is feasibile to attempt the former as I want to use as much of the existing system as possible. Thanks. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Downl oad it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] where do I put controller/dispatcher logic?
And you are sure the queries you want to run are page/ component independent, right? What you are doing is request based, which is fine, but which is not nescesarily a component based way of doing things. Eelco On 11/7/05, Steven McNeel [EMAIL PROTECTED] wrote: Hello, I think I've read all of the pertinent articles in the documentation, especially http://www.wicket-wiki.org.uk/wiki/index.php/Lifecycle. On each request to my app, I first need to run a database query,the parameters of which are dependent on the parameters in the Request. Then I need to forward to a page, which also depends on the request parameters. It looks like I'm supposed to override methods on RequestCycle ( i.e. onBeginRequest(), request(), and onEndRequest()). If this is correct, then my question is: once I create my subclass of WebRequestCycle, how do I integrate that into my application flow? It seems that the instantiation and use of RequestCycle objects is performed by the Wicket framework. Where are my hooks to make the Session return my custom RequestCycle? And how do I handle the initial request, before a Session is even created? I consider this sort of thing as analogous to MVC Front Controller (aka Dispatcher) logic. I'm basically unclear as to where that logic belongs in a Wicket app. Thanks in advance! -Steven McNeel --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] My take on Spring integration
That kind of hooks exist. One of our goals for 1.2 is to further formalize this, and also have better pluggable support for url handling and state handling. We are getting some ideas on how this could look, but it is stuff you really have to think through well. Eelco On 11/7/05, Sven Meier [EMAIL PROTECTED] wrote: Hello Igor, I must object to your statement that my proposed page factory is not IoC: Nobody says that a Spring context is the only valid container in an application. The page factory just becomes part of the this logical container, it is aware of and cooperates with the Sprint context. When using IoC you always have to device which components are aware of IoC and which not. IMHO this awareness is acceptable for page factories and wicket applications, but not pages. Spring is able to handle prototypes, the only unusual thing is that pages get serialized. But with 're-injection' this is easily solved. AND you can use strongly typed constructors too. What I don't understand why we should talk about 'magic' solutions as readObject() or dynamic proxies. As Eelco wrote it: I'd like to state very clear that we are not looking for Wicket to become a plumbing framework; we just want to develiver a good framework for developing web applications with enough elegant hooks for integrating with other frameworks yourself. IMHO to satisfy all possible requirements, these hooks shouldn't be located on the pages. It is easier to call from stateless code into stateful code (i.e. RequestCycle - Page) than the other way around. Sven Igor Vaynberg wrote: Yes, it is not ioc, i never claimed it was. Sven's page factory is not ioc either because the container does not manage the lifecycle of the page. Does an ioc page make sense? I dont think so. I like to use the new operator to instantiate pages myself, I also really like to have strongly typed constructors for my pages. I dont think ioc containers are meant to be used with these kinds of volatile objects. ioc containers are meant for more static objects which are 90% of the time singletons. Sure there are factory beans in spring and prototype beans, but they do not give you the freedom of constructors. Also ioc managed objects are not meant to be serialized outside of their container, in the webworld that is unavoidable. Dont get me wrong, i love ioc, but i dont think its the right tool here. I looked into the HttpSessionActivationListener. Didnt know about that little nasty spot int he spec :) I think we can solve the problem by letting pagemaps implement the listener interface and cascading it down to pages. But i dont think that is a good idea because there will be a big performance hit. Why do resolution on all the pages in the pagemap if we are only going to use at most one of them. Maybe the method that pulls a page out of the pagemap can call a hook on the page, like Page.reinitialize(), and we can use that to reinject the dependencies. Of course, this wont work for pages that store references to other pages unless the owning page cascades down the reinitialize() call. I just dont see an elegant solution. Another idea which is a bit nasty but i think would work ok is to use a bit of runtime magic. We can extract a page's interface at runtime and create a dynamic proxy that can lazy-lookup dependencies whenever a getter is called. So creating a page becomes a two part step, create the page and wrap the proxy around it. The proxy should be able to serialize with the page and deserialize fine. -Igor On 11/7/05, Eduardo Rocha [EMAIL PROTECTED] wrote: Igor, the class you have implemented is exactly the way I was thinking. However Sven pointed out correctly that this is not really IoC, since the component itself is looking for its dependencies (Alexandru said that even before...). But even if it is not IoC, I think this is a nice approach. The client code it would look exactly like a really IoC implementation (if getSpringContext() is implemented in another way). And if I can live with the Page constructor automatically attaching itself to the Session, I could live with Pages doing serialization as well. That said, a really IoC approach seems to be achieved either using AOP or doing something with onBeginRequest/onBeginResponse, as Sven, Juergen and Johan said before. 2005/11/7, Johan Compagner [EMAIL PROTECTED]: And there is also a thing like XML Serialization Which also doesn't use the java read/write object at all. On 11/7/05, Christian Essl [EMAIL PROTECTED] wrote: Hi Igor, I looked through your code. Thanks for implementing it. I am not sure wheter readObject() is the right place to do the (re)injection. According to the servlet-spec in SVR 7.7.2 readObject() is not guaranteed to be called on session-attributes. (Instead session attributes which implement HttpSessionActiviationListeners are informed
Re: [Wicket-user] Question about AJAX and Wicket
Well, the ajax support in Wicket is quite basic really. Just take a look at Behaviour/ AjaxHandler/ one of the concrete AjaxHandlers like DojoAjaxHandler. Generally, what they do is provide the means to let handlers cooperate with components (due to suggestions earlier this week, this was generalized into behaviours) and let them contribute header and body onload code. The hardest part you have to learn is how each individual library (like Dojo or Scriptaculous) takes care of ajax handling. And of course, how to put things together in a nice way. The more people give this a try, the better our understanding will be of how we can support best. I think when we reach a level that we have done more complex ajax stuff (like what you want to do) and agree on the taken approaches, we can go on and create some more high level documentation on Ajax. Eelco On 11/8/05, Nick Heudecker [EMAIL PROTECTED] wrote: I'll give it a shot. To be honest, I'd really like some more docs about the AJAX stuff. I've looked at the examples and they don't really provide the high-level overview I need to get my head around it. On 11/8/05, Eelco Hillenius [EMAIL PROTECTED] wrote: In the HEAD (1.2 dev) version of Wicket we now have beta support for partial rendering (e.g. rendering of 1 panel). You probably need that to elegantly build what you want. It's still working on the frontier (though some simpler ajax components are available now), but please try and implement. That's the only way we can know whether our Ajax support is good enough/ bug free. Eelco On 11/8/05, Nick Heudecker [EMAIL PROTECTED] wrote: Hi, I've been looking at the Dojo and Scriptaculous extensions for Wicket and haven't seen what I'm looking for. Essentially, I want to have a master-detail display where the details are retrieved from the server and displayed in a div. Also, I'd like to be able to request a Form object from the server and have it displayed in the Page, like if the user clicks Edit, for instance. Any pointers on this? Can the extensions, or even Wicket, support this yet? --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] remove jsessionid in first page
There is no way for Wicket to remove jsessionid (at least no legal way). It's your servlet container that appends it. When you support cookies however, there should be no need to encode this id in the url, and I think some servlet engines don't append it if this is the case. Eelco On 11/8/05, pepone pepone [EMAIL PROTECTED] wrote: Hello all when i load the firs page browser is redirected to a url that is like /app;jsessionid=12324?path=1 there are any way to be redirected to samething like bookmarkablePage=HomePage thanks in advantage --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PageableGridDataView and IDataProvider
I don't know much about that package, but afaik the dataview project will be dropped in favor of the extensions project. Eelco On 11/8/05, Gili [EMAIL PROTECTED] wrote: Hi, I'm trying to use recompile code that uses PageableGridDataView which used to work. The problem is that PageableGridDataView has a constructor which takes in wicket.contrib.dataview.IDataProvider in its constructor but HibernateDataProvider now extends wicket.extensions.markup.html.repeater.data.IDataProvider. The two are not compatible. Did you guys plan on dropping wicket.contrib.dataview.IDataProvider in favor of the extensions one? If so, can someone please update PageableGridDataView so this will work? Thank you, Gili -- http://www.desktopbeautifier.com/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] where do I put controller/dispatcher logic?
There sure is a mismatch; component based frameworks emerged because of the mismatch Model 2 frameworks with page parts. Requests in Model 2 frameworks map to page wide actions. The controller/ view handler has to ensure the state of all elements of the page are kept in sync and rendered correctly. That's okay for simple pages, but if you have pages with multiple, independent parts (think e.g. of a pageable list being one of those) you're in a mess and generally have to use hackish solutions like command chaining and 'interception'. With component based frameworks, you should be able to create isolated parts (components) that react on events, keep state and render independently of the other parts of the page, making it easier and more elegant to write applications with, and also make reuse an option (because components are self contained). That's the whole idea of Model 2 vs CBD. Eelco On 11/9/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, On 11/7/05, Steven McNeel [EMAIL PROTECTED] wrote: I consider this sort of thing as analogous to MVC Front Controller (aka Dispatcher) logic. I'm basically unclear as to where that logic belongs in a Wicket app. The fact is, while I'm still new in the area of Components based web frameworks, I think there is a mismatch between the Model 2 way of doing things and the Component oriented way ... ? Could you precise your need ? Because you original post was so general I may have missed the point ? thanks, -- laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] i18n messages in HTML
Problem with that is that input type=button value=wicket:message key='labelKey'// is not valid xml. Eelco On 11/9/05, Andrew Berman [EMAIL PROTECTED] wrote: I like wicket:message key=../ as long as it would work how normal JSP tags currently work. In other words, I would be able to do this: input type=button value=wicket:message key='labelKey'// or script alert(wicket:message key='labelKey'/); /script --Andrew On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel. IMHO such an addition would be very useful. Sven You mean for tag text, correct? span wicket:message= hello.message / What do you think about wicket:message key=../. Than it is clear that the whole label is wicket specific, span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key? Juergen On 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I'm all for making things easier for the user. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span I'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on, for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message= hello.message /span or wicket:message key=hello.message /, w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complex i18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other data, e.g. ...${price} That won't be possible either. Only simple text. As AttributeModifier is already able to handle it, message:.. would be for easy and straight forward replacements only, and AttributeModifer to cover everything else. Ah, and of course you loose preview capabilities, as the designer won't the real message, he'd see message:... only. And it might not the perfekt solution for high-speed up, because of the (little) performance penalties involved. For high-speed up you can still have myPage_en.html; myPage_nl.html etc may which as well cover minor changes in the layout due to labels being of differents length; right-to-left languages etc. Juergen On 11/8/05, Andrew Berman [EMAIL PROTECTED] wrote: In my app I never hard-code text so I'm constantly adding Labels to my pages. I was wondering if it would make sense to have a shortcut, similar to how Tapestry does it, for dsplaying localization messages. In Tapestry, you can do this: title=message:page-title, where page-title is the lookup into the property file. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / Thoughts? --Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Using another container?
Sure. You need nothing special for Wicket to work with any servlet container. Just configure as you like/ use plugins from your IDE. Eelco On 11/9/05, Paulo Sérgio Medeiros [EMAIL PROTECTED] wrote: How can i use tomcat instead of Jetty? (is there a 'tomcat-config.xml' somewhere to configure?) --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] i18n messages in HTML
Most of em do, though we all have kind of our different 'expertises'. The currently active developers are yours truly, Juergen, Johan, Igor and Martijn, though Martijn is mainly doing site/ builds/ promotion etc. Gwyn is the man for Wiki. Jonathan is not really active, but does some work in the background now and then; I'm living in Seattle now (at least for the next few months) and he's too, so we meet up now and then and exchange some ideas on Wicket. Ate will hopefully do the portlet part for us, and Chris is bussy raising his little one; haven't heard from him for a while, so I don't know whether he has plans to be active on Wicket. Hope that gives you an idea :) Eelco Does anyone know if most of the core developers keeps up with this list? I know that several do, as I see them post regularly, but I don't know how many active core developers there are. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: where do I put controller/dispatcher logic?
If they are not in the scope of components but in the scope of a request, than it's fine to put the logic in a custom request cycle. Nothing wrong with that. Just wanted to make sure you have to be in that scope :) Eelco On 11/10/05, Steven McNeel [EMAIL PROTECTED] wrote: Thanks for all the responses about this topic. The specific thing I'm trying to accomplish is this: I'm building a site with a standard sort of template page (which includes a navigation pane, a content pane, a search pane, the usual stuff). Every request needs to fire a query to a data store before rendering the page, and the query results need to be available to every panel on the page. The links embedded throughout the page allow the user to make additional requests, with refined parameters. These follow-on queries need to be able to invoke additional templates other than the master template. So my question is, being new to Component web frameworks, where does global stuff (such as the queries) occur? I can't put the query logic into individual components associated with individual panels. The queries have to be called outside the context of any page or panel. How do I stop talking about the request lifecycle and pages, and start talking about components, in the context of this sort of use case? Thanks, Steve --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] i18n messages in HTML
I think/ agree that while Wicket's strong point lies in the fact that we keep things clean and code-centric, having easy localized string replacement without going through the whole requirement of having Wicket components in a matching hierarchy is a very good exception to the rule. Eelco On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Yes, the attribute thing doesn't realy look wicket like, that is true. But I still think that some kind of i18n (message) retrieval e.g. for button texts can be improved. A button is something I would like to be easily modifyable especially in multi-language application. Of course you can do it already, just create a new component derived from Button and attach an attribute modifier. Easy. But isn't it such a genereal requirement that it does make sense to implement such functionality in wickets core button component? Something like: Default is given in html markup. Search for id.attributeName=text and if found, replace the default. Juergen On 11/11/05, Andrew Berman [EMAIL PROTECTED] wrote: Jeurgen, I think the attribute feature should be removed. I think it is just un-Wicket-like, and I think others agree as I read form the emails in this thread. As I mentioned before I think when it comes to attributes, it is best to just do it from within the component manually instead of the way you have it. Thoughts? --Andrew On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: First draft version available in CVS HEAD Juergen On 11/10/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: I've implemented it last night. Was fairly easy. I'll commt it tonight. wicket:message key=my-keyDefault value/wicket:message input wicket:message=attrName=my-key type=.../ As wicket core is very much pluggable, it can easily be added / removed. Juergen On 11/9/05, Igor Vaynberg [EMAIL PROTECTED] wrote: +1 -Igor On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel. IMHO such an addition would be very useful. Sven You mean for tag text, correct? span wicket:message= hello.message / What do you think about wicket:message key=../. Than it is clear that the whole label is wicket specific, span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key? Juergen On 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I'm all for making things easier for the user. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span I'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on, for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message= hello.message /span or wicket:message key=hello.message /, w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complex i18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other
Re: [Wicket-user] eclipse refactoring plugin
It is possible; you can implement a strategy for that. It's super-easy nor is it a prefered way of doing things, so imo such a plugin doesn't have to support it. Eelco On 11/11/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Martijn Dashorst changed the world a bit at a time by saying on 11/11/2005 11:52 AM :# And it groups the resources nicely together that belong together. It is kind of a wicket threesome ;-) Martijn Still, it is not clear to me if the scenario I have described in one of my previous mails is possible (to use an HTML markup resource with a different name than the Java source), cause this is almost completely changing the dates of the problem. ./alex -- .w( the_mindstorm )p. On 11/11/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I think it is worth it because it consolidates what usually is three different editor tabs into one, so i can access more things quickly. i have a 21 screen and i can only see about 6-7 tabs at a time, this plugin would double/tripple that real-estate. and it eliminates all the scrolling you have to do in the package manager, or clicking that link button all the time. -Igor On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 3:16 AM :# well it sounds resonable. but it also sounds like a lot of research and learning, unfortunately i dont think i have time for all that. i barely have enough time to work on wicket and wicket-spring integration stuff. so if someone wants to pick this up they are more then welcome to :) the code is all there in wicket-stuff/wicketeer project. -Igor Understandable. My schedule for this end of year is very tight, so I will most probably not be able to do it. However, if somebody is starting to work on it, probable I will be able to offer some hints. Not planning to sound bad: but I was wondering if the effort is really worth it: 1 click instead of 3 (and maybe some less navigation). ./alex -- .w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 2:50 AM :# well what i would really like is this. whenever i click on a java file that extends from markupcontainer, i would like the java editor to open. On the bottom i would like to have tabs, one for each wicket resource So if i have MyPanel.java MyPanel.html MyPanel.properties and i double clik MyPanel.java, i would have three tabs on the bottom for each one of those files, each tab would embed the proper eclipse editor. This would really boost productivity because you wouldnt have to go looking for the templates and property files and switching is really easy. But i dont even know where to start looking to do something like this. The renaming stuff wasnt that difficult to find and seemed intuitive, but something like this might be over my head for the amount of time i have to spend on it. -Igor I see. I am not a Wicket user (or at least not yet - just been around to figure out if the framework is gonna help me). I guess the editor you are speaking about is quite new. Why? Because usually the multi-tab editors are presenting the same information/file but in different formats, while here you are speaking about 3 different sources. However it looks like the steps to be followed are the following: 1/ look in the WTP to see how this multi-tab editors are done 2/ take the XHTML editor from there 3/ create a component/or whatever we call it that presents together the Eclipse Java editor, an XHTML editor and the Eclipse properties editor. This definitely should work. My approach would be to look what interfaces a source editor must provide and than create a simple implementation based on pure SWT/JFace with multiple tabs. I remember a discussion on the Wicket ML where the markup (HTML file) wasn't named exactly as the Java source. I am not sure if this is supported or not. In case it is supported, than the things may become more complex, as you should go down to the Eclipse Java source parser and extract the exact piece of information to retrieve the HTML name. what do you think about these? do they make any sense to you? ./alex -- .w( the_mindstorm )p. On 11/10/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Igor Vaynberg changed the world a bit at a time by saying on 11/11/2005 12:44 AM :# unfortunately i havent seen any open source plugins that embed a java editor
Re: [Wicket-user] wicket bench 0.1.0
Thanks! Would you feel like combining efforts with the stuff that Igor did (and that's in wicket-stuff cvs as wicketeer)? Eelco On 11/12/05, Joni Suominen [EMAIL PROTECTED] wrote: I just released a new version of wicket plugin for eclipse. http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench Current features are listed here: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.1.html -- Joni Suominen --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket bench 0.1.0
Isn't it a bit strange that Eclipse downloads all these org.eclipse.* jars as dependencies, while it should have that already? Eelco On 11/12/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Thanks! Would you feel like combining efforts with the stuff that Igor did (and that's in wicket-stuff cvs as wicketeer)? Eelco On 11/12/05, Joni Suominen [EMAIL PROTECTED] wrote: I just released a new version of wicket plugin for eclipse. http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench Current features are listed here: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.1.html -- Joni Suominen --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] remove jsessionid in first page
Why? It's part of the default header info whether a client accepts cookies or not isn't it? Eelco On 11/12/05, Phil Kulak [EMAIL PROTECTED] wrote: App servers HAVE to put that in the first URL, because it's really the second (because of the redirect). The server doesn't know if the client is using cookies until the first request comes back, so for the first request it has to use cookies and url rewriting. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Portlet support?
Ate Douma (Jetspeed) worked on that some time ago, and expressed he wants to help build it in for Wicket 1.2. However, Ate has been very bussy for quite a while now, and I don't know whether he'll have time soon. We kind of had the agreement portlet support should be in Wicket medio Januari. Sounds great that you have experience with it, and that you are interested in helping out. I'll send you an email ofline to discuss this further. Thanks! Eelco On 11/13/05, Janne Hietamäki [EMAIL PROTECTED] wrote: Hi, Where is Wicket's portlet support going? Who is working with it, what has been planned, and what has been done? I could offer some help.. (I've written one proprietary portlet implementation a couple of years ago, so I know the stuff.) -- Janne Hietamäki Cemron Ltd http://www.cemron.com/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: wicket bench 0.1.0
Igor, are you reading with us? On 11/13/05, Martijn Dashorst [EMAIL PROTECTED] wrote: They are planning on supporting SVN. ETA is still unknown. I'm also +1 for moving to SVN. Chances are that life will be better for all (users and core members), as in less outages, speedier updates. Apparently, they also upgraded their MySQL servers, giving them a boost. However, I'm currently happy with the wiki so I don't see us moving soon. Martijn On 11/13/05, Johan Compagner [EMAIL PROTECTED] wrote: if sourceforge gives us svn support then i am +1 for moving to svn, tested the latest build locally and it works pretty good now! On 11/13/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: +1 for laughing panda for the same reasons Juergen On 11/13/05, Joni Suominen [EMAIL PROTECTED] wrote: Of course! If we would combine these efforts would it be better to host it at wicket-stuff or at laughing panda? I'm open to anything but have a slight preference over the latter. I prefer svn over cvs and laughing panda will offer other cool services like cruisecontrol and jira (soon). Joni On Sat, 2005-11-12 at 12:52 -0800, Eelco Hillenius wrote: Thanks! Would you feel like combining efforts with the stuff that Igor did (and that's in wicket-stuff cvs as wicketeer)? Eelco On 11/12/05, Joni Suominen [EMAIL PROTECTED] wrote: I just released a new version of wicket plugin for eclipse. http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench Current features are listed here: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.1.html -- Joni Suominen --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Keeping images outside of WEB-INF
Or use public class SimpleImage extends WebComponent { public SimpleImage(String id, String imgSrc) { super(id, new Model(imgSrc)); } public SimpleImage(String id, IModel imgSrcModel) { super(id, imgSrcModel); } protected void onComponentTag(ComponentTag tag) { tag.getAttributes().put(src, getModelObjectAsString()); } } Eelco On 11/14/05, Johan Compagner [EMAIL PROTECTED] wrote: ok you do write in the webapplication directory.. You do have always complete control over it where youre webapp will be installed on? And what kind of application server is used? Because you do know that writeable access isn't guarenteed? Or that it is even a directory at all? Application servers could just use the war directly without extracting it. If you can do that then i would just have the img tag directly in the html With a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the cleanest method. On 11/14/05, James Yong [EMAIL PROTECTED] wrote: Johan Compagner jcompagner at gmail.com writes: Of course you save youre files to a server you have to know the folder where you have write access. Then you can load them from that location just as fine as reading them from a database. Hi, I used a label to generate the img tag. It works for me. But I am not sure if there is a more correct way to do. Any comments? listItem.add(new Label(file_img, img src=' + childfolder + / + file.getName() + ' /).setEscapeModelStrings(false).setRenderBodyOnly(true)); Regards, james --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer
Just an idea Juergen... could that be related to the fact that p is one of those tags we allow to be unbalanced (doesn't need a closing tag)? Eelco On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: Phil Kulak wrote: Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. Confirmed. (Except that the attachment was the one with the DIV not the P.) Running against 1.1, I get the same exception as Phil. Against HEAD, the DIV work fine but the P yields: wicket.markup.MarkupException: Markup element at index 6 failed to advance the markup stream pointing at the span element. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Keeping images outside of WEB-INF
Although that shouldn't be a label as there is no body to replace. Just a WebMarkupContainer, or in this case even better a WebComponent suffices. Eelco On 11/15/05, Scott Sauyet [EMAIL PROTECTED] wrote: = James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you can do that then i would just have the img tag directly in the html with a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the cleanest method. [ ... ] In the end, I used the label component to generate the whole img tag. I don't mean to speak for Johan, but I think the suggestion was something like this: listItem.add(new Label(file_img).add(new AttributeModifier(src, + childfolder + / + file.getName())); along with img wicket:id=file_img src=placeholder.png alt=/ That sounds to me the most Wicketish way of doing this. -- Scott --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] If/Else component display
Sounds to me you are looking for something more special purpose :) Why don't you create a panel factory or something similar? You could make container components that would allow you to do a if/else like construction in your markup, but I wouldn't be a big fan of that. I think working with panels for conditional/ flexible markup is a great way to go. And as Wicket lets you manage your own components, you can implement any strategy you want to this. Eelco On 11/15/05, Nick Heudecker [EMAIL PROTECTED] wrote: Those are the two approaches I've used. I'm looking for a way to either abstract one or both of those approaches to make them more general purpose. On 11/15/05, Igor Vaynberg [EMAIL PROTECTED] wrote: there are two basic approaches: 1) add the component anyways and set its visibility tag accordingly 2) create panels that either contain or do not contain the component and add the appropriate panel If either is unclear let me know and i can go further into detail. -Igor On 11/15/05, Nick Heudecker [EMAIL PROTECTED] wrote: Hi, My app has multiple instances where, if a ListView is empty, I want to display some message to the user, like You haven't defined any widgets yet. The problem is this requires what I feel to be a lot of code in the Page implementation. Is there a pattern or component that I'm missing that would make this easier? Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
Yeah, the fact that is tells you to check out the wicket-stuff module is bad. We should fix that. But for the rest... it pretty basic cvs stuff to figure out what modules are in the repository. Works the same for all open source cvs projects out there. Anyway in case you are still interested in evaluating, you probably would want to check out the component reference of wicket examples first, as that gives you a nice overview of the components that Wicket delivers with the core distro. After that the telephone example is a nice one to look at some more typical application development features. Eelco On 11/16/05, Sam Gendler [EMAIL PROTECTED] wrote: Yeah, the answer lies in the fact that the shell-based cvs commands in the wicket-stuff documentation are utterly broken. Never mind that there is no visible line break between the two separate cvs commands, but it also says to check out the wicket-stuff module, which is merely the source for the wicket-stuff sourceforge site. In reality, since there is no list of available modules provided anywhere, and the link to the viewcvs displays the same wicket-stuff module that the cvs command downloads, you have to checkout '.' rather than wicket-stuff, although this is entirely non-obvious without reading the maven commands listed on the same page. Note that the maven commands appear, from my limited understanding of maven, to be correct. It does check out '.', which pulls the entire wicket-stuff project, including all the modules you listed. --sam On 11/16/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, there's: wicket-contrib-spring-examples wicket-contrib-examples wicket-contrib-examples-hibernate3 wicket-contrib-freemarker wicket-contrib-fvalidate wicket-contrib-gmap wicket-contrib-gmap-examples wicket-contrib-groovy wicket-contrib-jasperreports wicket-contrib-navmenu wicket-contrib-palette wicket-contrib-palette-examples wicket-contrib-scriptaculous wicket-contrib-scriptaculous-examples wicket-contrib-spring wicket-contrib-tinymce wicket-contrib-tinymce-examples wicket-contrib-velocity wicketeer wicket-examples wicket-extensions wicket-phonebook to name a few. Eelco On 11/16/05, Sam Gendler [EMAIL PROTECTED] wrote: Wicket-examples, wicket-phonebook don't seem to exist, and wicket-stuff is apparently nothing but the source code to the sourceforge web page about wicket-stuff. What am I missing here? --sam On 11/16/05, Igor Vaynberg [EMAIL PROTECTED] wrote: hi Sam, Re components: check out the component reference in the wicket-examples project. it is farily complete and shows components in isolation so you can play around with them. Re hibernate integration: check out the wicket-phonebook project from wicket-stuff cvs. it is a simple example of a wicket/spring/hibernate project. wicket-phonebook has great javadoc that will explain what everything is. Re creating components: this is the strength of wicket. you just extend one of the base classes such as Component or WebMarkupContainer or extend any other component and away you go. checkout the code that drives components in the component reference its so simple it speaks for itself. Re documentation: yes this is something we do not have a lot of, we are working on it. what we do have right now is great javadoc. i got started just by looking at the examples and the code that drives them. wicket felt so natural i just picked it up ( but i did come from a strong tapestry background ). imho the best way to evaluate a framwork is to try and build a small project with it so you get the feel for it. this list is a great place to get support. if you have any questions feel free to email them to the list. btw, wicket-examples and wicket-phonebook both have jetty-launcher in a class called Start, so if you use eclise just right click and do debug as java app, that will start up jetty and you are ready to go as opposed to package/redeploy cycle. -Igor On 11/16/05, Sam Gendler [EMAIL PROTECTED] wrote: OK, so I've been all over the wicket sourceforge site, and I must be missing something. Where is the documentation? There are some fairly basic examples that don't go into much detail, the new user guide in the wiki which is incomplete whenever it gets interesting. The wicket stuff section lists a hibernate tool, but doesn't provide a link to anything. I see many references to how great wicket is with hibernate, but I've never seen a doc that describes how someone would actually use wicket with hibernate. Perhaps most importantly, I've never found a simple description of the components that are available (or how to implement new ones), let alone how to use
Re: [Wicket-user] Preserve form state
It would be nice if this thread ended up with some recommendations on how the (default) form processing itself might be enhanced in order to support complex validation/ model updating. Just a note to say that it's okay to send in patches that touch wicket-core :) Eelco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CompoundPropertyModel without OGNL in 1.1
How about the percentage it takes up in comparison of the total computing for one request? Any other bottlenecks you can identify? Or was - like Johan said - OGNL one of the biggest hurdles? Eelco On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Okay, I took CompoundPropertyModel from 1.2 and put it to my project, so that I can directly compare CompoundPropertyModel from 1.1 and 1.2. And Johan, you are going to like the result :) It's pretty impressive. On one page (with DataView - 7 columns and 10 rows), the rendering with old CompoundPropertyModels takes 330-400 ms and with new 40-80ms. Now that's a difference you can really feel. -Matej Matej Knopp wrote: Okay, I understand. Actually, I don't really want OGNL CompoundPropertyModel to be replaced. I just want to have the possibility of non-ognl compound property model in 1.1. So maybe It could be added to wicket-extensions? -Matej Martijn Dashorst wrote: I'd rather finalize 1.2 sooner, cutting off new features, than backport the OGNL replacement into 1.1. It is a breaking change, and by its nature, a 1.1.x release should not break stuff. Martijn On 11/16/05, Johan Compagner [EMAIL PROTECTED] wrote: are you really seeing big performance improvements when comparing the same app with 1.1 and 1.2? Thats nice to hear :) Backporting to 1.1.1 ... we could do it but it is a big change.. that could affect running installs (you can't just swap 1.1 to 1.1.1 then if you depend a bit more on ognl) This should be an issue where we should count votes! johan On 11/16/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. My current benchmark shows that CompoundPropertyModel is a serious performance issue when having big dataview. Is there any chance that the new CompoundPropertyModel from 1.2 will be backported to 1.1? -Matej --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1288 (20051115) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket for tapestry users
A lot of tbd :) I think if you want to compare, there's nothing that beats taking a look at code. Wicket has e.g. a hangman example and a component reference (part of wicket-examples); if you take a look at that code, and maybe try something yourself, you should get a fairly good idea. Some of the main differences: * Wicket is not a managed framework. That means that you - the programmer - are in charge of component creation yourself. You do this with javacode opposed to doing it declarative. Pro: gives you flexibility/ you wont be limited by what the framework builders thought up/ you don't have to learn how the framework manages and how the declaring language (xml) works. Con: harder to integrate with other frameworks somethimes/ wicket internals sometimes difficult. * (like Igor said) Wicket purposefuly does not support scripting like features in your markup. Pro: everything stays very clean and it is easier to guess how things should be done. Con: harder for people that are used to a 'php/jsp way of doing things' and you need programmers that at least understand the basics of OO Java programming. Pro: clarity and cleaneness. Con: some things are more work with Wicket and you have to keep your java component tree in sync with the markup nesting. * With Wicket every component is truly stateful. Every property you define is part of it's state, and there is a flexible undo mechanism you can use to support any advanced backbutton support you might want. No need for a rewind mechanism. Furthermore, wicket component can be nested and can take part of any collaboration you want in the same fashion you could do in e.g. Swing. Pro: flexibility and very easy to do complex things if you know your Java. Con: sometimes easy to end up with unoptimized spaghetti like code if you take too many short cuts (much like you could have with Swing). * Creating custom components with Wicket is super easy. Just extend from an existing one (or from base class WebComponent or WebMarkupContainer), make it available in your classpath and your done. There's no extra configuration (libraries) and magical strings (ids) involved. For advanced component initialization, you can use IInitializer. Hope this helps, Eelco On 11/17/05, Marco van de Haar [EMAIL PROTECTED] wrote: I don't really know if it's up to date, but you could check http://www.wicket-wiki.org.uk/wiki/index.php/For_Tapestry_Users in the Wicket wiki Marco Detlef Schulze wrote: Sorry, should read: tapestry and wicket or wicket and WebObjects of course ... -Original Message- *From:* Detlef Schulze *Sent:* Donnerstag, 17. November 2005 12:59 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] Wicket for tapestry users Hi, the last projects I was involved I implemented with tapestry. I am of the opinion that it is important (and interesting) to check once in a while what the competitors are doing ;-) So the question is: Is anybody aware of some online resources where tapestry and wicket or tapestry and WebObjects are compared? cheers, detlef --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
Martijn and I are writing Wicket In Action currently. We're not using the gradual examples thing like e.g. Tapestry In Action has because we don't like it that much. Maybe Martijn more than me, but I thought such a book-wide example is too far fetched to be useful. Personally, I am much more charmed about 'Programming Ruby The Pragmatic Programmer's Guide' that has a lot of small but focussed examples. Anyway, if I had more time I would definitively want to write a more elaborate example like a blog. The cdapp example that you can find in wicket-contrib-examples is my try of an application with Hibernate CRUD and some extra's. Please check that one out too. Eelco A suite of examples that build upon each other in gradual steps, introducing concepts in a logical order in order to build an increasingly complex application in an attempt to reduce the slope of the learning curve. Ideally, the final examples should be a fairly usable application, using all the functionality available and demonstrating best practices. That's basically the structure of the ... in Action books from Manning, whgch has always worked well for me. Not trivial to generate, of course, but it seems like whoever does would be a srong candidate for authorship of WIcket in Action which is a nice resume bullet point. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] There must be some docs somewhere?
Oh, and one of the by products we plan for us writing Wicket In Action is a useable reference manual. Something that doesn't conflict our interests with Manning of course, but that serves as a good point of finding how to do things in Wicket. Re looking for support: I am currently thinking setting up a support company for Wicket. I would need it for several things, giving official Wicket support being one of them. If demand is large enough, such a company can be fact in a few months from now. Eelco On 11/17/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Martijn and I are writing Wicket In Action currently. We're not using the gradual examples thing like e.g. Tapestry In Action has because we don't like it that much. Maybe Martijn more than me, but I thought such a book-wide example is too far fetched to be useful. Personally, I am much more charmed about 'Programming Ruby The Pragmatic Programmer's Guide' that has a lot of small but focussed examples. Anyway, if I had more time I would definitively want to write a more elaborate example like a blog. The cdapp example that you can find in wicket-contrib-examples is my try of an application with Hibernate CRUD and some extra's. Please check that one out too. Eelco A suite of examples that build upon each other in gradual steps, introducing concepts in a logical order in order to build an increasingly complex application in an attempt to reduce the slope of the learning curve. Ideally, the final examples should be a fairly usable application, using all the functionality available and demonstrating best practices. That's basically the structure of the ... in Action books from Manning, whgch has always worked well for me. Not trivial to generate, of course, but it seems like whoever does would be a srong candidate for authorship of WIcket in Action which is a nice resume bullet point. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Strange PasswordTextField behaviour
Yeah. It was a feature. Eelco On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: The password text field, when resetPassword=false, is always re-rendered with the value of the model ... On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, When delving into the code, I found something weird with PasswordTextField (at least I am founding it weird :-) Indeed, in the case of the form marked as invalid, when the form is resubmitted, all the form components show the last user input (and not the model value), but the password text field. Even if setResetPassword has been set to false. Feature or bug ? Thanks in advance, -- Laurent --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-jasperreports img resource bug
Thanks, it's fixed. Eelco On 11/20/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi, there's a bug in JRImageResource that the size of output image does not reflets the zoom. (It's always the same - iamage than gets cropped). I wanted to submit a bugreport and commit a patch but I can't even checkout the project from anonymous cvs (I've got the source code from web interface) nor can I login to sf. this should fix it: class JRImageResource ... protected byte[] getData() { ... // create an image object BufferedImage image = new BufferedImage((int) (float)print.getPageWidth() * getZoomRatio()), (int) ((float)print.getPageHeight() * getZoomRatio()), type); ... } -Matej --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: There must be some docs somewhere?
I don't agree with wicket-contrib-data being obsolete. What happened is that I created some basic Hibernate support classes last year, and that other people commented that they didn't like them so much, and wanted to add alternatives. From there it grew into the bunch a quasi related classes it is now. I still think classes like HibernateObjectModel are pretty useable. You may argue about how elegant the choices as hibernate session delegate etc are, and you may even argue that it is not best practice to bind to Hibernate in your view layer. But not every project has to display the perfect seperation of (service) layers and these classes gives users the opportunity to go for a more RAD approach. Depending on how much Phil (and did other people work on that project?) wants to keep, we could do a clean-up and keep only the classes we still think are usuable. We don't have to promote the project as best practices, but saying it's obsolete goes a bit too far. Eelco On 11/20/05, Igor Vaynberg [EMAIL PROTECTED] wrote: wicket-contrib-data and wicket-contrib-data-hibernate do not provide any form of transaction management. furthermore, they are obsolete due to repeater package (what used to be wicket-contrib-dataview) in wicket-extensions. also, this discussion did not have much to do with spring itself, but with the fact that it isnt the greatest idea to tightly couple your persistence layer with your ui layer, because that forces your business logic to live inside the ui. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket + Sitemesh - Page truncation problem
In case you have a small test project or something, I would be very interested in taking a look at that and see if there's anything we need to do to make Wicket behave better with sitemesh. There has been more interest in it, so we might setup a small project for it too (wicket-stuff). Eelco On 11/21/05, John Evans [EMAIL PROTECTED] wrote: I have never used Sitemesh or Wicket on a real project, although I've played with both and they both seem to work exactly as advertised -- now I'm trying to use them both together on a real project for the first time and I'm having a problem. The problem only happens when I'm accessing a wicket-generated page that has a sitemesh decorator applied to it -- everything works fine if I turn off sitemesh or if I access a non-wicket-generated page through sitemesh. The problem is that fairly often when I access a wicket-generated page through sitemesh the output appears as if the wicket-generated page was truncated -- for example if my wicket generated page were this: body 1 2 3 4 5 /body And my decorator was: body decorator:body/ /body Then the output would be something like this: body 1 2 3 /body The sitemesh template always shows up in it's entirety, but the wicket page is cut short. If I do a refresh this will almost always fix it -- I also haven't been able to re-create the problem with one of wicket's bookmarkable pages, so it makes debugging the problem difficult. My guess is that maybe there is a problem with wicket returning the wrong content-length or something -- but it appears to generate the appropriate values when I run it outside of sitemesh. I'm going to try to get my environment set up in a debugger so that I can debug the entire application with source for wicket and sitemesh attached and see if I can track down the problem, but I thought I would post here (and to the sitemesh forums) first and see if anyone had encountered the same or similar problem and already solved it -- or if anyone has any suggestions for where to start. Thanks, - John --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: There must be some docs somewhere?
Whatever. I must be starting to suffer from that famous open source fatigue; I'm getting tired of that integration stuff. I'd hope there would be more emphasis on core issues. Anyway, if there's a bunch of people that agree on method x, and at least one core developer regards that as a 'best practice', I'm fine with deleting the rest for clarity. And once we have that, let's finally put out an 'official release' and promote it as such. Eelco On 11/20/05, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as i can see 90% of wicket.contrib.data.model in wicket-contrib-data is about creating a database-backed list for the listview. same can be solved much more elegantly with the dataview. What does wicket-contrib-hibernate get me besides a shiny object model that stores more in the session then some small pojos? The biggest flop, though, is that i still have to provide all the plumbing myself - if anything, a hibernate framework should solve that. Maybe calling it obsolete was a bit too harsh, i apologize if i hurt anyone's feelings. But can we point to it and say that this is our official way to do RAD integration with hibernate? i honestly hope no one would. That is why in my previous email i asked for a concrete list of features/requirements so that we can put something together that will please most people, call it official, and put this issue to rest once and for all. -Igor On 11/20/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I don't agree with wicket-contrib-data being obsolete. What happened is that I created some basic Hibernate support classes last year, and that other people commented that they didn't like them so much, and wanted to add alternatives. From there it grew into the bunch a quasi related classes it is now. I still think classes like HibernateObjectModel are pretty useable. You may argue about how elegant the choices as hibernate session delegate etc are, and you may even argue that it is not best practice to bind to Hibernate in your view layer. But not every project has to display the perfect seperation of (service) layers and these classes gives users the opportunity to go for a more RAD approach. Depending on how much Phil (and did other people work on that project?) wants to keep, we could do a clean-up and keep only the classes we still think are usuable. We don't have to promote the project as best practices, but saying it's obsolete goes a bit too far. Eelco On 11/20/05, Igor Vaynberg [EMAIL PROTECTED] wrote: wicket-contrib-data and wicket-contrib-data-hibernate do not provide any form of transaction management. furthermore, they are obsolete due to repeater package (what used to be wicket-contrib-dataview) in wicket-extensions. also, this discussion did not have much to do with spring itself, but with the fact that it isnt the greatest idea to tightly couple your persistence layer with your ui layer, because that forces your business logic to live inside the ui. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-jaspperreports JRResource optimalization
Thanks. Much better now. I implemented a couple of small changes on top of it, please check out whether you agree (find the patch attached). Eelco Matej Knopp wrote: Hi. There's a slight performace problem with JRResource, that it creates JasperReport in it's constructor. I've 10 resource links on one page so it means that 10 JasperReports will be initialized everytime page is created, even if none of them gets clicked. The performance penalty is not small - 400ms. So I think the JasperReport should be initialized lazyly, only when the resource is really used. I've atached fixed JRResource, it may not be the best solution, but it works for me. (Look in the constructor(s) to see how it works) -Matej Index: src/java/wicket/contrib/jasperreports/JRResource.java === RCS file: /cvsroot/wicket-stuff/wicket-contrib-jasperreports/src/java/wicket/contrib/jasperreports/JRResource.java,v retrieving revision 1.1 diff -u -r1.1 JRResource.java --- src/java/wicket/contrib/jasperreports/JRResource.java 20 Sep 2005 20:00:46 - 1.1 +++ src/java/wicket/contrib/jasperreports/JRResource.java 21 Nov 2005 18:36:46 - @@ -21,6 +21,7 @@ import java.io.ByteArrayOutputStream; import java.io.File; import java.io.InputStream; +import java.io.Serializable; import java.net.URL; import java.sql.Connection; import java.util.Map; @@ -54,7 +55,7 @@ /** * Provides JDBC connection. */ - public static interface IDatabaseConnectionProvider + public static interface IDatabaseConnectionProvider extends Serializable { /** * Gets a JDBC connection to use when filling the report. @@ -70,8 +71,32 @@ void release(); } - /** the compiled report this resource references. */ - private JasperReport jasperReport; + /** +* Factory class for lazy initialization of the jasper report. +*/ + private static interface JasperReportFactory extends Serializable + { + /** +* Create a jasper report instance. +* +* @return the new jasper report instance. +* @throws JRException +*/ + JasperReport newJasperReport() throws JRException; + }; + + /** the connection provider if any for filling this report. */ + private IDatabaseConnectionProvider connectionProvider; + + /** factory for delayed report creation. */ + private JasperReportFactory jasperReportFactory; + + /** +* The compiled report this resource references. Made transient as we don't +* want our report to be serialized while we can recreate it at other +* servers at will using the factory. +*/ + private transient JasperReport jasperReport; /** the report parameters. */ private Map reportParameters; @@ -79,9 +104,6 @@ /** the datasource if any for filling this report. */ private JRDataSource reportDataSource; - /** the connection provider if any for filling this report. */ - private IDatabaseConnectionProvider connectionProvider; - /** * When set, a header 'Content-Disposition: attachment; * filename=${fileName}' will be added to the response, resulting in a @@ -106,18 +128,15 @@ * @param report *the report input stream */ - public JRResource(InputStream report) + public JRResource(final InputStream report) { - super(); - setCacheable(false); - try + this(new JasperReportFactory() { - jasperReport = (JasperReport) JRLoader.loadObject(report); - } - catch (JRException e) - { - throw new WicketRuntimeException(e); - } + public JasperReport newJasperReport() throws JRException + { + return (JasperReport) JRLoader.loadObject(report); + }; + }); } /** @@ -126,18 +145,15 @@ * @param report *the report input stream */ - public JRResource(URL report) + public JRResource(final URL report) { - super(); - setCacheable(false); - try - { - jasperReport = (JasperReport) JRLoader.loadObject(report); - } - catch (JRException e) + this(new JasperReportFactory() { - throw new WicketRuntimeException(e); - } + public JasperReport newJasperReport() throws JRException + { +
Re: [Wicket-user] session management
You could best take a look at the sign-in example of wicket-examples. It has a custom session - which can be used to store information you want to keep during the whole user session - and it has an example of how to prevent access/ redirect to a login page for a non logged on user. Eelco On 11/21/05, Manuel Corrales [EMAIL PROTECTED] wrote: Hi, i've asked this question once but dont get a solution. So here i go again: I have some clues about stateful beans and stateless beans but not too much. What i need is that when a user logins, create an object and that that object exists during the user session (to logout). Now i think this is easy to do with a app server, but all i have is tomcat and wicket. Is there a way of achieve this? Another related question is: How can i forbid access to a non loged user? Thanks very much. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing Path Info
I think you can do stuff like that now, at least partially. I'm just now starting to work on further improving this (or at least exploring some ideas). Eelco On 11/22/05, Nick Heudecker [EMAIL PROTECTED] wrote: Hi, I would like to create a URL that looks like: http://www.example.com/app/1F83C6D3A or even: http://www.example.com/app/annual_shareholder_meeting Is there a way to easily access the /1F83C6D3A portion of that URL within Wicket and use it as a page parameter? I suppose the other option could be to do: http://www.example.com/app/?1F83C6D3A Wait. None of these will work because I still need the page that I'm submitting to. I think I've asked this question before, but I need to revisit it because I need a short, yet non-scary URL for public consumption. What I'd like is: http://www.example.com/register/[some event-specific token]/[some user-specific token] If Wicket can't support this directly, I can map a servlet to /register and have it forward to the Wicket page. Any thoughts on how to do this more elegantly? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing Path Info
What I'm - kind of offline - am working on right now is something that at least partially acomplishes that. It's a big refactor (luckily as we always made sure not to expose too much without breaking public API's so far) and I'm combining it with other things like improved state management and stuff like browser detection. I hope to report back on this early next week. Eelco I wonder if we could make wicket urls to look completely REST-full :-D except that we'd still use the session cookie in the headers (which is not REST) --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker and opera
Unfortunately, I'm a bit too bussy with other things too. I'll open a bug report for it, but I'd appreciate it when someone else could look into the problem. Eelco On 11/23/05, Dipu [EMAIL PROTECTED] wrote: Yes , original jscalendar works in Opera. Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, November 23, 2005 4:04 PM Subject: Re: [Wicket-user] DatePicker and opera Does the original jscalendar work in Opera? If it does, the problem is with the component, otherwise it is jscalendar. Eelco On 11/23/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi, DatePicker doesn't work in opera. It shows a window with this error message: Calendar setup: Nothing to setup (no fields found). Please check your code. Has anyone a clue, what's going on? To me, it seems that somehow the javascript can't touch input field, even if the javascript is executed after the input field. But I can't figure out any solution... -Matej --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=ick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester and BookmarkablePageLink
Because bookmarkable page links do not 'post back' to the server but instead they refer to bookmarkable pages they can't be called as links from WicketTester, right? Eelco On 11/23/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: sorry, but I do not understand the question. What is the bug? Juergen On 11/23/05, Eduardo Rocha [EMAIL PROTECTED] wrote: I am having problems with WicketTester.clickLink(..) when the link is a BookmarkablePageLink. At first, if the link is a bookmarkable one, I don't need to test it, since I can test the page alone. But I was think in the following: if my link was simple Link subclass, and I had a test for it: add(new Link(myLink) { public void onClick() { setResponsePage(new MyPage()); } } tester.clickLink(myLink); tester.assertRenderedPage(MyPage.class); so I choose to replace it for a bookmarkable link, and run the regression test. The test will fail, because clickLink(..) doesn't work with BookmarkablePageLink. That way, I would have to remove the clickLink(..) test. Do people agree it is a bug? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Upload Progress bar
I kind of missed this discussion as I was working on the request cycle handling refactoring. After a short offline discussion with Johan, I took this as part of the refactoring too. The new way of handling (still has to be discussed with the other devs after I'm further with it, but I think it is look much, much better now) has synchronization depending on what I now call the 'request target' which could be anything from a page - which should be synchronized on the session - to shared resources or external resources (like images from your web app directory) - which shouldn't be synchronized at all. The Session.updateSession thingy is planned for step 2 of the refactoring. Ultimately, I'd like to end up with something that would allow for 'sessionless' applications. For instance, while working with bookmarkable pages that do not hold any components that implement IRequestListener, there is really no need to even put them in the session. In that case, or if you would have a home page like that, I would like to be able to at least defer creating a session object until it is actually needed. Not sure how difficult this will be, but it is probably doable. The refactoring encompasses quite a lot; it touches most important internals on Wicket, so I'd like to take a few days to sort it out and keep really focussed and have offline dicussions with core developers based on the commits first. So... Johan, Juergen, Igor, Martijn, ... you know where to find me :) Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Preserve form state
Also please note that we're in the middle of refactoring some of the wicket internals, and the solution as currently implemented might change a bit still (though hopefully only the internals). Hope to be done with the larger part after this weekend. Eelco On 11/25/05, Laurent PETIT [EMAIL PROTECTED] wrote: For the ones monitoring this thread, I'm pleased to announce that - thanks to Johan-, a solution to the problem exposed by Matej has been implemented in wicket-core. This is good news, as everybody's app users will benefit from this. And that's good for you too Matej, since it implies that you can get rid of the temporary speficic solution of using custon Form, FeedBackPanel, From now on, when you set defaultFormProcessing to off, the FormComponents that are childrens of the Form will registered the user inputs in a private area, in order to be re-displayed later, be it because the form is invalid, or just rendered again. The behaviour when rendering again a non validated form will be the same as when rendering again a form that is invalid. For example: the form will still not be able to re-fill a input type=file component, the behaviour of the input type=password component will still get the value of the model (and not re-render the value of the user input ...). For Custom Components Developer : just call in your own onRenderTag() method the FormComponent.getValue(), just as before. HTH -- Laurent On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: Whoops, the missing test files in attachment ... :-) On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: OK, now I have a first attempt to submit. It is what could be considered as a cleaner way to address Matej's initial problem. But it is a hack to the core, so it's normal that I've come up with something cleaner I think. And as it's a modification to the core, it's also more error-prone. It is too late tonight for me to explain what I did, so please for the moment take a look at the 2 new classes versions : wicket.markup.html.form.Form wicket.markup.html.form.FormComponent or the diffs files if you prefer. And I've joined 2 very basic test files (markup class) In short : in the new version, on formSubmitted(), child form components are told that a new user input is available (method FormComponent.newUserInputAvailable()). In this method, the FormComponent stores the user input in a rawInput field. This rawInput is then available for re-rendering for both use cases : when data is invalid and when model is not up to date (for example when returning from another page as in Matej's use case, the form will be rendered again with the rawInput, and not the model). You can see that it also frees the FormComponent code from the weird NO_INVALID_INPUT constant (by using a modelUpToDate boolean field) Fiuu, time to sleep now ! :-) regards, -- laurent --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Web Continuation Servers
Actually, instead of just looking at the name, continuations, you should look at want you want to acchieve. And then the large thing with continuations would be that you could do: ... init components ... ... render page ... ... getUserInput and do something with it ... ... processAndWait ... ... getUserInput and do something with it ... ... end program ... That's kind of the continuations idea. It works for workflow driven applications or wizard style (sub)applications. If you want, you can implement this style of coding in Wicket. I see no reasons why you couldn't. If Geert Bevin (the RIFE guy) is succesful in abstracting a generic (web) continuations framework, we would be happy to support it with Wicket. There actually has been some talk about it here and there, and we (Geert and I) hope to have a chat next month at JavaPolis (which maybe gives me more insight at the continuations thing ;)). He seems to be a nice guy interested in working together with other people/ frameworks; in fact I think the guys of WebWork and he are working together on abstracting the continuations concept too (again, hat's off for the WebWork guys that are doing a lot of behind-the-scenes contributing to different frameworks, including Wicket). Until then, we are not planning any special support for continuations in Wicket - of course you are free to suggest contributions - and I'd be more interested to see what you'd like to acchieve instead of just hearing about the hype factor. Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Conditionally updating model
Or you could make your models a lit more intelligent, making it independent of the components. Both are good. Eelco On 11/26/05, Andrew Berman [EMAIL PROTECTED] wrote: Whoops, my method should be getInput not getValueSorry. Should be: public String getInput() { String val = super.getInput(); if (val != null val.trim().equals()) return null; return val; } On 11/26/05, Andrew Berman [EMAIL PROTECTED] wrote: There are a bunch of ways to do it, but I think the easiest way is to override getInput() and return null if you do not want the model updated with this component's value. For example, public String getValue() { String val = super.getValue(); if (val != null val.trim().equals()) return null; return val; } --Andrew On 11/26/05, Nick Heudecker [EMAIL PROTECTED] wrote: Hi, I have an edit user page that allows the admin to update various details for a user, like email address, name, etc. The admin can also change the password for a user, but I want to make that optional, like the password is only updated if the admin actually types a new password, otherwise the User object backing the Form isn't updated with a blank password. Is there a suggested way to go about this? Do I end up overriding getModelValue() or setModelValue()? Thanks for your time. --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [OT] Ideas for Java webapps free hosting ?
See http://www.wicket-library.com/. At the bottom it says: Thanks to Kattare Many thanks to Kattare for sponsoring this site and for helping us get going. Eelco On 11/26/05, Jesse Sightler [EMAIL PROTECTED] wrote: Just curious... where are the examples with attribution? I had never noticed attribution for the hosting provider, and somehow I'm still missing who is providing it now... Anyway, there's always http://www.myjavaserver.com/ which provides free Servlet and JSP hosting. I've never tried it, but it's theoretically possible that it could host your stuff. They only give about 5MB for free, though, which may be pushing things for a Wicket app. -- Jess On 11/26/05, Laurent PETIT [EMAIL PROTECTED] wrote: thanks for the info -- Laurent On 11/26/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: We ask one the java servlet hosts if they would support our open source project by providing there service to us for free. They did and ask only for there logo to be on the page Juergen On 11/26/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, This is completely Off Topic, but I know that wicket examples are hosted somewhere, and the question I was asking to me is : is it hosted at some kind of free hosting company ? Such as the plenty PHP hosting we can find in the web ? One of my friends started a java project in sourceforge, and was willing to show a live instance of his project (a webapp), but he fails short when he tries to find java free hosting services ... So if you guys have any ideas ... I could restart my old computer, put it in my balcony, but I fear it's too old to be able to host a tomcat server ... cu, -- laurent --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tag expected
The stack trace and error page should provide enough information to figure that out. Can you find it and send it as a reply? All logging in Wicket goes via commons logging usually using the class name for loggers. Most people will probably use Log4J as the implementation, which means you can turn it on like: log4j.logger.wicket=DEBUG and/ or log4j.logger.wicket.protocol.http.WebSession=DEBUG in e.g. log4j.properties in your classpath root. See for more info the respective logging package you are using and commons logging documentation. Eelco On 11/27/05, Pekka Henttonen [EMAIL PROTECTED] wrote: A simple question from a newbie: how can you find out what tag is expected when you get a wicket.markup.MarkupException: Tag expected -error. How do you turn debugging on? --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] JavaPolis
Hi all, Who of you have plans of going to JavaPolis? Belgium beer is the best beer of the world, and Antwerp is supposed to be a cool city. That just asks for getting together with a couple of people and have a couple of those yellow foamy ones! If you're going, please send an email to this list or to Martijn, Johan or me directly and tell us which days you go and what days would be suitable for you to meet. Cheers, Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] New Wicket-contrib-dojo release
If you wan't to contribute, feel free to do so. :) Erm... he doesn't have commit rights? :) I think it is an open RFE to upgrade this js files, right? Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] contrib-dojo render problem
Maybe it's in a cache somewhere locally, or you build it without issues maven clean first (which you should always do in order to have a clean build). To fix it: test with a SNAPSHOT first. If that works and you don't want to make a new release (/and/ you didn't upload the version anywhere yet, because otherwise you should make a new version), delete the jar from your local maven repo, issue maven clean jar:install on the project and go for it. Eelco (This is our FXFeedbackIndicator, it contains the image) This does not happen when I make the examples project depend on the wicket-contrib-dojo project instead of the jar (although the jar is built from that project.). Then the page displays correctly. What are we doing wrong? --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] new user
Hi Frank, I'm working alone, and have a lot of freedom in the tools and frameworks I choose. That's the best job :) Wicket sounds like a good approach – said to be easier to learn and use than JSP/Struts or JSF; and I could cannibalize the html generated by the ASP.NET pages, insert Wicket id attributes, and then work mostly with what I know best – POJOs. Do you think this is a good approach? Sure. Wicket is a good choice. My favorite obviously as a core developer :). You might want to check out Tapestry and JSF too. Of these JSF is the closest to ASP.NET, and Wicket will attract most to people that are code oriented and want to have their HTML templates really clean. The first thing I need to do is set up my development environment. Is there an installation guide for Wicket? From the FAQ I read that Java 1.5 SDK is not supported; I suppose I can use any IDE I please as long as I can select or install a Java 1.4.x SDK for development, right? WIcket supports Java 1.4 and up. Choose any IDE and any servlet container you want. A good place to start is with Wicket's quickstart, http://wicket.sourceforge.net/wicket-quickstart/index.html. That should you get you started, please let this list know when you run into trouble. Are there any restrictions on the version of Tomcat I can use? Should I install the latest stable version (Tomcat 5.5), or is there some reason I need an older version? Nope. You have to have JDK 1.4 or up, but that's about it. Other than Tomcat and the Java SDK, are there any other tools that must be downloaded separately from the Wicket download? The only runtime dependency you need is commons-logging (1.0.4). For compiling you need servlet-api 2.3 or up. They'll come with the quickstart project. Good luck, Eelco
Re: [Wicket-user] JavaOne 2006 - Wicket presentation?
Thanks, I guess you might as well get ready for some complaints : - Not so good Spring integration Why? Igor and a couple of others build some pretty decent Spring support now? It's all in HEAD, and there has to be a proper build for it made, but I think we now have Spring integration that most people are happy with. - Heavy session usage (Specially from those MVC critics) Yeah, we know people will use that. As you can read in other mails/ comments I do not always agree that's a bad thing. If you do you calculations properly, it's really a bunch of pros and cons instead of just a simplified 'using the session is bad'. Furthermore, we abstracted the session, so it is ready for alternative strategies too. Anyway, it's also what I am working on for 1.2. I am seriously out of time - whish I had more time for the refactorings - but one of my ultimate aims is to make zero-server state apps with Wicket possible too. Don't know whether I'll succeed in that, but you'll surely end up with a lot of hooks to optimize session usuage. Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] new user
So when the FAQ asks, When will Wicket use Java 5? -- they're asking about using Java 5 to develop the Wicket framework, not wicket applications? Yep. There are a couple of features that would be a great fit for Wicket. For instance, we could have stronger typed models if we use Javav 5's generics. If we would use such features though, not only would it mean that you need Java 5 to build wicket, but you'll also need it to build and run any application on top of it (i.e. use Wicket). We don't think Java 5 is common enough for such a move, though many people are itching for it :). Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] contrib-dojo render problem
Compare what's in the jar with what's in your actual class path in Eclipse. The maven project files look ok to me though. I'll give it a look later today. Eelco On 12/1/05, Marco van de Haar [EMAIL PROTECTED] wrote: Well we tried maven clean dist and maven clean jar:install. Even manually deleting the jar from the repository first, and just linking to an external jar instead of the reposistory We even tried building on another machine to prevent obscure caching errors. We tried running the examples project from eclipse, and deploying the war in a Jetty instance. it all makes no difference make the examples project depend on a contrib-dojo project in eclipse, and everyghing works fine, make it depend on the jar (generated with a maven clean dist or maven clean jar:install of that same contrib.dojo project) and we get the error... We have no clue why, but it renders our component useless except if you want to run everything from eclipse Marco Ruud Eelco Hillenius wrote: Maybe it's in a cache somewhere locally, or you build it without issues maven clean first (which you should always do in order to have a clean build). To fix it: test with a SNAPSHOT first. If that works and you don't want to make a new release (/and/ you didn't upload the version anywhere yet, because otherwise you should make a new version), delete the jar from your local maven repo, issue maven clean jar:install on the project and go for it. Eelco (This is our FXFeedbackIndicator, it contains the image) This does not happen when I make the examples project depend on the wicket-contrib-dojo project instead of the jar (although the jar is built from that project.). Then the page displays correctly. What are we doing wrong? --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JavaOne 2006 - Wicket presentation?
Sure. Does the phone book example covers all the basic Spring support things? Eelco On 12/1/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I'm fine with it. I constantly send people to the phone book example, so might as well make it the primary example. Martijn On 12/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I am thinking of dumping the wicket-contrib-spring-examples in favor of wicket-phonebook since it demonstrates spring integration. any developers reading with us, what do you think? also see http://www.wicket-wiki.org.uk/wiki/index.php/Spring for explanation of the wicket-contrib-spring project. -Igor On 12/1/05, Eduardo Rocha [EMAIL PROTECTED] wrote: Igor, I checked out wicket-contrib-spring and I could not find a example using SpringWebPage. I think it is pretty easy to use, but if wicket-contrib-spring-examples was updated it would nice. 2005/12/1, Igor Vaynberg [EMAIL PROTECTED]: i guess that was the point of redoing wicket-contrib-spring - to have a final solution that the wicket team is willing to support. so there it is. check out wicket-contrib-spring. of course suggestions for improvements are always welcome. -Igor On 12/1/05, Iman RahmatiZadeh [EMAIL PROTECTED] wrote: Why? Igor and a couple of others build some pretty decent Spring support now? It's all in HEAD, and there has to be a proper build for it made, but I think we now have Spring integration that most people are happy with. I'm looking forward to see a real final solution to the spring integration problem, I've seen most examples about it, and am currently using my own solution in my app, but just think its time for everybody to agree on the best solution, integrate it into the core, and stick to it from now on. And BIG thanks for all the good work ! Iman --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JavaOne 2006 - Wicket presentation?
Indeed. Don't we want some example on your annotation stuff Igor? Eelco On 12/1/05, Eduardo Rocha [EMAIL PROTECTED] wrote: Phone book does not make use of wicket-contrib-spring. 2005/12/1, Eelco Hillenius [EMAIL PROTECTED]: Sure. Does the phone book example covers all the basic Spring support things? Eelco On 12/1/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I'm fine with it. I constantly send people to the phone book example, so might as well make it the primary example. Martijn On 12/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I am thinking of dumping the wicket-contrib-spring-examples in favor of wicket-phonebook since it demonstrates spring integration. any developers reading with us, what do you think? also see http://www.wicket-wiki.org.uk/wiki/index.php/Spring for explanation of the wicket-contrib-spring project. -Igor On 12/1/05, Eduardo Rocha [EMAIL PROTECTED] wrote: Igor, I checked out wicket-contrib-spring and I could not find a example using SpringWebPage. I think it is pretty easy to use, but if wicket-contrib-spring-examples was updated it would nice. 2005/12/1, Igor Vaynberg [EMAIL PROTECTED]: i guess that was the point of redoing wicket-contrib-spring - to have a final solution that the wicket team is willing to support. so there it is. check out wicket-contrib-spring. of course suggestions for improvements are always welcome. -Igor On 12/1/05, Iman RahmatiZadeh [EMAIL PROTECTED] wrote: Why? Igor and a couple of others build some pretty decent Spring support now? It's all in HEAD, and there has to be a proper build for it made, but I think we now have Spring integration that most people are happy with. I'm looking forward to see a real final solution to the spring integration problem, I've seen most examples about it, and am currently using my own solution in my app, but just think its time for everybody to agree on the best solution, integrate it into the core, and stick to it from now on. And BIG thanks for all the good work ! Iman --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click
[Wicket-user] Wiki: Comparing Wicket and Struts
Hi, Who wrote http://www.wicket-wiki.org.uk/wiki/index.php/Struts ? I like it! Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] New Wicket-contrib-dojo release
The easiest way to test whether you wicket application behaves well when serialized, turn on the debugging logging for WebSession, like: log4j.logger.wicket.protocol.http.WebSession=DEBUG Eelco On 12/2/05, Marco van de Haar [EMAIL PROTECTED] wrote: It should be fixed in CVS version. though I have no valid test-case to test it on, maybe you could give me a case to test the serializable? Anyway, it will be in our next release which we plan on releasing soon as our next component will be included and some of the major bugs are fixed. Marco Ingram Chen wrote: Thanks for the fix, I will try it next release. Another small bug I found is inner class FXAjaxValidationHandler.RGB does not implement Serializable. Hope this can be fixed too. Thanks in advance ! On 11/28/05, *Marco van de Haar* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: We fixed the FXAjaxValidationHandler so that is supposed to work with all FormComponents now, as was intended. We tested it on a TextArea and it works fine. The fix is not in the 0.3 release, but you can check out wicket-contrib-dojo FXValidationAjaxHandler.java We will add the fixed handler to our next release and add a TextArea example in our next example app. We did have to add a restriction to our handler. The FormComponent where the handler is bound to has to be added to a page BEFORE you add the handler like this: tarea = new TextArea(tarea, new PropertyModel(ValidationTestPage.this, textValue)); tarea.add(LengthValidator.max(10)); //add the component first before you add the handler form.add(tarea); tarea.add(new FXValidationAjaxHandler(onblur)); otherwise, and exception will be thrown. Marco Ruud NOTE: due to a previously erronomous commit you will still get a filename-case warning when checking out wicket-contrib-dojo on BasicTooltipTutorial.xml , this is in the process of bieng fixed, but can take a few days. It should not affect checked out code. Hi, I tried FX AJAX Validation and it works great with TextField. Thanks for the great job ! But I found that it does not work with TextArea (raise Unmodified related exception from ValueMap) . Have any body tried ? On 11/25/05, *Ruud Booltink* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, We're proud to anounce our first real contrib-dojo release :) This release contains: Dojo FX Decorators Dojo FX Tooltip FX ajax Validation FXFeedbackIndicator xdocs updated with new site Example applications You can check our release at http://wicket-stuff.sourceforge.net/wicket-contrib-dojo/ Have fun with the release, and if you have any comments, please feel free to post them on the mailinglist :) Regards, Ruud and Marco --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list
Re: [Wicket-user] How to render part of page (with ajax maybe)
you should use requestcycle.setResponseTarget with ComponentRequestTarget Eelco On 12/2/05, Marco van de Haar [EMAIL PROTECTED] wrote: Is there any concrete (simple) code example for rerendering a part of a page? I tried myRequestCycle.request(myComponent), but all I got were huge errors in my console. Ari Suutari wrote: Hi, Project wicket-stuff contains already some AJAX components (scriptaculous and dojo based ones). Wicket core contain a AjaxHandler and we provide a yet experimental component level re-render (requestcycle.render(component). Though the latter one is no yet accessible through a URL (that piece of code is missing; we've only tested it with junit tests). So, yes some parts have been done, it is not ready yet, but I think we are on a good way and some features can be used already. Because it is in an dev stage, feedback is very much welcome. So, If I create my own component (that I'm going to re-render with ajax) and add an interface based on IRequestListener I could build an URL that calls my component via that interface and returns re-rendering of component using requestcycle.render(this) ? Or is there a better way ? I took a look how IOnChangeListener is implemented on DropDownChoice and it looks rather simple to implement such a thing (although DropDownChoice uses it for different purposes) Ari S. Juergen On 11/25/05, Ari Suutari [EMAIL PROTECTED] wrote: Hi, We are developing applications, which have kind of a content 'push' system, ie. data arrives from factory automation and we visualize it on-line. Our traditional approach to this has been to send the data to browser (via applet and additional tcp socket) and use javascript to render it. However, I'm a little bit tempted to adjust our architecture so that we would only push a notification of change and then use ajax to re-render part of page. Would it be possible with wicket ? Typically, the part that would be re-rendered with ajax is just a text field or a table (rendering whole page is too slow, since the data rate can be quite fast; also flashes too much for slower cases). There was some discussion on mailing list that something like this would be in 1.2 ? Ari S. --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865opÌk ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pethate - long urls
Hi, answers below http://localhost:8081/quickstart/app?bookmarkablePage=com.theoryinpractice.testapp.pages.CommentsPage Is there a way to get the app to resolve the above using something like: http://localhost:8081/quickstart/app/page/Podcomments or even http://localhost:8081/quickstart/app?page=Podcomments Yep there is, but I just killed it in HEAD to do some rethinking. You could register aliases for classes which would then be used (so support for the second case). The rethinking is: - is this for pages only, or is it more general (answer is yes, because we want to use this for packaged resources too). - do we want the class/ alias mapping, or do we want to support other cases like the packages you suggest. - how are we going to name it But it'll be in there again shortly when we have answers to those questions... probably this week. I think in 1.1 it is called pageAlias in Application somewhere. One of the examples uses it. You first approach is supported in the HEAD version now. Or maybe theres something already in wicket for more REST like URL schemes? I notice in the basic framework there's only a BookmarkablePage extension of Page, is there something in wicket-stuff maybe? You mean REST like encode everything that has to do with state in your url? Well, yes and no. In head we provide the option of 'mounting' paths to bookmarkable pages (or actually in at a lower level, you could mount any request target you want). The example we are working on that shows this is wicket.examples.niceurl in the wicket-examples project, and it lets you use Wicket with URLs like http://localhost:8080/wicket-examples/niceurl/path/to/page2/param1/value1/param2/value2 where path/to/page2 is the mount, and param1 and param2 are the page parameters. Currently, I am also working on abstracting the session even more and trying to defer creating an actual httpsession object (the default store for Wicket WebApplications) until it is absolutely needed. The interesting thing here is that as long as you have a bookmarkable page with nothing on it that points back to that page, there shouldn't be a need to put it in the session. So, if I pull this off, it means that you can create completely stateless applications. Of course that won't help you with creating the kind of applications Wicket was targetted for in the first place, but it is a nice optimization and extra usuability I think. I you /do/ have call backs like forms etc, we need to store that page in the session - at least temporarily - in order to call the approariate methods on the target components. In that case, you application is not REST. And personally I don't agree with the REST thing for web applications anyway (and I'm in the web CBD/ Continuations camp for that matter), as the original concept of REST works fine for document centric view of the web (you know, the way it all started) and can even work for web apps that have a very direct 1-1 relationship with requests (i.e. they are relatively simple), but not for the kind of applications that people expect to work nowadays. And the guys from the web mvc camp... they are not exactly following the REST approach as it was intended either. Anway, big sidestep... I am getting almost emotional about defending against REST and stateless-ness as it seems to be a pavlov reaction for people to think that that is the only way to do your web applications :) Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pethate - long urls
Not only considering... we build it in! :) There's a couple of things we are working on yet, which are stated in the TODO doc in the niceurl example package. By looking at the commit log (Juergen did some fresh commits), these issues are getting closer to being fixed too. Eelco On 12/3/05, Jeff Miller [EMAIL PROTECTED] wrote: I agree. I made the suggestion last month: http://sourceforge.net/mailarchive/message.php?msg_id=13756383 I really like the architecture of Wicket although I have not used it much yet. The long url's is the one thing about Wicket that seemed would be a problem. It appears that the development team is considering some improvements with simplified url's. Jeff Mark Derricutt [EMAIL PROTECTED] wrote: Hey all, so I'm starting to play with Wicket and loving it, but I currently have a small pethate with the URL scheme used in the application. I realize the look of the URL shouldn't really matter, but I keep finding myself disliking it. Currently my app shows a URL like: http://localhost:8081/quickstart/app?bookmarkablePage=com.theoryinpractice.testapp.pages.CommentsPage Is there a way to get the app to resolve the above using something like: http://localhost:8081/quickstart/app/page/Podcomments or even http://localhost:8081/quickstart/app?page=Podcomments I guess it could be possible to say 'register' the package com.theoryinpractice.testapp.pages as a place where pages could be found and resolve the class to use instead of using the FQN all the time, this would only work in the case of unambiguous classes thou. Or maybe theres something already in wicket for more REST like URL schemes? I notice in the basic frame work there's only a BookmarkablePage extension of Page, is there something in wicket-stuff maybe? Jeff Miller [EMAIL PROTECTED] Yahoo! Shopping Find Great Deals on Gifts at Yahoo! Shopping --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pethate - long urls
I haven't taken a look at the latest code yet Well, please do that first before commenting :) Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best practice: Global configuration values?
The logical place here would be your Application/ WebApplication object. You could combine this with init parameters in web-xml and reading them in the Application.init method. Or, in case you want to use Spring, use Spring config to configure your Application properties. Eelco On 12/4/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote: Hi, I have a short question: What is the Wicket way of making configuration values accessible throughout the application? This it the scenario: My application can run either in development or in production mode. In development mode it should connect to a different RMI server than in production mode. Multiple pages have to connect to the RMI server. Is there a best practice of making certain values accessible from every Page? (making my own page that extends Page and holds such values comes to mind, but is there a different way?) - Johannes. --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best practice: Global configuration values?
Yep. You can get the application from several places, like Component.getApplication (and note that Pages are Components too) or as a falltrhough, when in a request, you can always call Application.get() (slightly less efficient though, as that is done by threadlocal map lookup). And you have to cast the application object to your specific class of course. Eelco I looked into that, but are these values accessible from every page? --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket job
we already have 3 user lists and one admin list although i bet not that many subscribed to our most recent announcements list. announce has 34, wicket-user has 253 at this moment. i think we have more then enough lists already. if it was up to me we wouldnt even have wicket-stuff lists as i see no point. Agreed. We expected more people to sign up for that and have stuff related discussions go through that. I don't think we can kill them though, but we might block new requests. Eelco --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is back button supported in wicket-contrib-dojo-examples
In fact, sites have been doing ajax long before ajax was called ajax. And in fact the whole literal ajax, refering to using XML as the messaging language and XmlHttpRequest object is bollucks, as there seem to be more sites not using that than there are that do use it. I am still not very inclined on spending more time on this myself, but for starters you guys might take a look at what Dojo says about this itself, like at: http://dojotoolkit.org/docs/intro_to_dojo_io.html Eelco On 12/5/05, Igor Vaynberg [EMAIL PROTECTED] wrote: gmail is doing this by changing an src attr of a frame - which does generate an entry a browser can keep track of. while other things are done via xmlrpc - these do not generate a browser entry. changing an src of an iframe is not really ajax, sites have been doing that since javascript existed. -Igor On 12/5/05, Gili [EMAIL PROTECTED] wrote: FYI: Google's AJAX handles back button just fine so it must be technically doable (and in my view, desirable). Gili Igor Vaynberg wrote: I think this is a problem with ajax and not with dojo support - although most people would argue that this is one of the bigger advantages of ajax. because the clicks do not change the browser's url the browser never records them in the history - and how could it. -Igor On 12/5/05, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dojo makes backbutton support possible, but probably not completely automatic. So it depends on the authors of those components I think. It is probably possible, but they didn't think about it. So... Marco and Ruud, did you look at support for the backbutton/ bookmarkability? Thanks, Eelco On 12/5/05, Huiping Yan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Months ago, I had an impression that wicket dojo will support back button to Ajax. I am very excited to have wicket-contrib-dojo-examples run week ago. After several clicks on FX test pages, I clicked on back button (IE), I notice that I left the test page completely. Bookmarking into those specific views is impossible too. I am not sure if I this is true. If I was wrong about back button to Ajax, then what back button is supported in wicket? Vivian _ Is your PC infected? Get a FREE online computer virus scan from McAfee(r) Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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://ads.osdn.com/?ad_idv37alloc_id865opclick http://ads.osdn.com/?ad_idv37alloc_id865opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://www.desktopbeautifier.com/ --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865op=click
Re: [Wicket-user] To SSL And Back
I don't know. What is the main problem you are having (hard coding url's probably), and do you have an idea of how support should look like? For instance, would it (ssl/ normal) be something you could configure your page maps with? Any other people been doing this? How do competing frameworks (non-model 2) do this? Eelco On 12/6/05, Nick Heudecker [EMAIL PROTECTED] wrote: Is there a recommended way, within Wicket, to move a user from HTTP to HTTPS for one or several pages, then move them back to HTTP? This is handled within Struts by the SSLEXT package. Thanks for your time. --- 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Basic CSS and tags
I just finished more advanced browser/ client capabilities detection. If anyone wants to take a look at it, I added an example in wicket-examples called HelloBrowser. It uses Javascript to detect browser properties, but it has a fallback in case javascript is not supported (e.g. because of security settings. Eelco On 12/5/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Hi, The wicket:head tag exists for a different reason. You can use it when you create custom components, such as the datapicker, that use css/ javascript to function. You want to reuse these components on your pages without having to know what dependencies your page needs. If you use wicket:head in your component panels, its content will be 'contirbuted' to the current page's head. I your case, you want to vary the css tag based on some input, right? That's pretty easy actually. Just add a WebComponent to your page, and attach an AttributeModifier to it that replaces the href with the right thing. Like: html: link wicket:id=mycss rel=Stylesheet type=text/css href=styles/main.css/ java: WebComponent c = new WebComponent(mycss); IModel model = new Model() { getObject(Component c) { if (x) return stylesheetx.css; else return stylesheety.css; } } c.add(new AttributeModifier(href, model); add(c); Btw, if you are working on HEAD, there's a basic, user-agent based browser detection in there, and I am currently finishing some more advanced browser capabilities detection. Eelco On 12/5/05, David Leangen [EMAIL PROTECTED] wrote: Hello, I apologise for asking a question that may seem so basic to more experienced Wicketeers and that has been asked over and over. I read the docs and searched the archive. Although the topic is indeed discussed, there was not enough information (or perhaps just not stated in a way that I could understand) to allow me to figure out what's going with CSS. Actually, I'm also having a bit of trouble in terms of tags. My goal is to have a different css page depending on the l10n, client type, or perhaps other requirements. This is my border: ?xml version=1.0? html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net/; xml:lang=en lang=en wicket:head titlePage Title/title link wicket:id=css rel=Stylesheet type=text/css href=styles/main.css/ script language=javascript type=text/javascript src=scripts/page.js/script /wicket:head body wicket:border wicket:body/ /wicket:border /body /html Pretty basic, I think. However, where and how would I make the change for the CSS. Where and how is the wicket:head tag handled? I suppose that it is in this handler that link wicked:id= is handled... In order for me to better understand how tags are handled, could somebody please point me to the relevant classes, so I can take a look at the code directly? If I can, I'll try to add useful info to the wiki. Thanks so much! Dave --- 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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: 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://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user