Re: Questions about how wicket serialization works
btw, gere is an interesting point, where IE and Firefox differ from each other. If you click the back-button of Firefox the page does not reload but is loaded from cache. http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/ maybe cache-control should be changed to: Cache-Control: no-cache, no-store, max-age=0, must-revalidate in org.apache.wicket.markup.html.WebPage.setHeaders(WebResponse) should i open a JIRA? davidqz wrote: My understanding is that when a page is refreshed, each Wicket componet on a page calls its getObject to update content. Does the Back button get the getObject method called too? -- View this message in context: http://old.nabble.com/301-redirect-tp27642826p27684063.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Questions about how wicket serialization works
This has been discussed before (of course) and this is on purpose. If you reload old pages your users will probably wonder what's going on (they are not used to this behavior), and secondly there is a performance hit with no business benefit. However, you should feel free to change these defaults (by overriding setHeaders) for cases where another setting is more appropriate. Regards, Erik. kellerautomat wrote: btw, gere is an interesting point, where IE and Firefox differ from each other. If you click the back-button of Firefox the page does not reload but is loaded from cache. http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/ maybe cache-control should be changed to: Cache-Control: no-cache, no-store, max-age=0, must-revalidate in org.apache.wicket.markup.html.WebPage.setHeaders(WebResponse) should i open a JIRA? -- Send from my SMTP compliant software Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to create PagingNavigator with Images?
How to create PagingNavigator with Images? -- Thanks Regards, SaravanaKumar G.
Re: How to create PagingNavigator with Images?
Hi, This is the third thread you create with a similar title asking for the same thing. I'll privately mail a solution to you. Hope you can clean it up and adapt it to your needs... I do not know if it is the simplest way to do it but at least it does what you want. Ernesto On Mon, Feb 22, 2010 at 10:21 AM, saravana kumar shav...@gmail.com wrote: How to create PagingNavigator with Images? -- Thanks Regards, SaravanaKumar G.
XSS and wicket. Wicket helps !
Just FYI, Wicket is mentioned as a framework to mitigate the number #1 Dangerous Programming Error of 2010, XSS. See the detailed descriptionhttp://cwe.mitre.org/data/definitions/79.htmlof the threat. This is from the survey of MITRE The List of 2010 Most Dangerous Programming Errors on TSS. Gr. Haiko -- http://www.cybersnippet.nl/
Wicket and Reverse Proxy
A while ago I sent a message ( at bottom) and received no responses. In that message I had thought that AJAX was not working, but I was mistaken. In the Ajax Debug screen, Wicket is responding back with a stream. Here is one of the issues that I found. I get this error. ERROR: Wicket.Ajax.Call.failure: Error while parsing response: 'src' is null or not an object The Juniper system adds strange things in the resource path. Example. This is a snippet of the source view on initial load for wicket javascript: script type=text/javascript src=../resources/org.apache.wicket.markup.html.WicketEventReference/,DanaInfo=159.116.216.35,Port=38080,CT=js+wicket-event.js/script script type=text/javascript src=../resources/org.apache.wicket.ajax.WicketAjaxReference/,DanaInfo=159.116.216.35,Port=38080,CT=js+wicket-ajax.js/script script type=text/javascript src=../resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/,DanaInfo=159.116.216.35,Port=38080,CT=js+wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]]*//script When the ajax stream is returned from the ajax call, the added stuff is not there: script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]^]^*//script so I am assuming this is why I am getting the Wicket Ajax Error. I am not understanding what Juniper is trying to do. I was hoping maybe someone may be able to shed some light on this. Another strange thing I noticed was when debugging the web page in Eclipse, my class level variables were always set at the initial value even though I would change the value within the ajax code. If I run the application normally without using Juniper, the class level values change as you would expect. It is strange but is seems like each time I am returned to the java code I am getting the the initial page object. Nabble link to original messsage - http://old.nabble.com/Reverse-Proxy-and-AJAX-td24094730.html#a24094730 June 18, 2009 My company is going to start using a *Juniper* Reverse Proxy server for VPN access. We have a large mix of different web technologies in use. Wicket is one of them. What this product does is URL rewriting to make things work. I am having a problem with Wicket AJAX functions working properly. Below is an example of the way the URLs look where AJAX does work and where it does not. .
Re: XSS and wicket. Wicket helps !
I just wrote a blog post about that. You also get help with SQL Injection (#2) and PHP File Includes (#14) http://blogs.citytechinc.com/jschwartz/?p=34 Sincerely, Jeff Schwartz http://blogs.citytechinc.com/jschwartz haiko van der Schaaf wrote: Just FYI, Wicket is mentioned as a framework to mitigate the number #1 Dangerous Programming Error of 2010, XSS. See the detailed descriptionhttp://cwe.mitre.org/data/definitions/79.htmlof the threat. This is from the survey of MITRE The List of 2010 Most Dangerous Programming Errors on TSS. Gr. Haiko -- http://www.cybersnippet.nl/ -- View this message in context: http://old.nabble.com/XSS-and-wicket.-Wicket-helps-%21-tp27689424p27689530.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Security handled at the proxy level
Hi, I have developed an application with Wicket that has its own built-in security and now a user needs to use it in a way that security is managed by a proxy instead. The way they can impose security is by url, and in theory I could get away by using only bookmarkable pages that contain a certain package name. The issue is, when the page contents change (validation, showing/hiding panels, ...) the url changes and becomes something generic like: http://host/app/?wicket:interface=:3:1::: Is there any way to force it to encode the url so that it looks at least like: http://host/app/secured?wicket:interface:3:1::: when the page is recognized as a secure one? (in my case those pages extend a certain base class that provides security control... when that is enabled, that is, otherwise it does nothing). Cheers Andrea - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Security handled at the proxy level
you can extend webrequestcodingstrategy to do that... -igor On Mon, Feb 22, 2010 at 8:02 AM, Andrea Aime aa...@opengeo.org wrote: Hi, I have developed an application with Wicket that has its own built-in security and now a user needs to use it in a way that security is managed by a proxy instead. The way they can impose security is by url, and in theory I could get away by using only bookmarkable pages that contain a certain package name. The issue is, when the page contents change (validation, showing/hiding panels, ...) the url changes and becomes something generic like: http://host/app/?wicket:interface=:3:1::: Is there any way to force it to encode the url so that it looks at least like: http://host/app/secured?wicket:interface:3:1::: when the page is recognized as a secure one? (in my case those pages extend a certain base class that provides security control... when that is enabled, that is, otherwise it does nothing). Cheers Andrea - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket used for mobile.walmart.com
Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! :) Best regards, Joachim http://www.jolira.com
Re: Wicket used for mobile.walmart.com
That is seriously cool Joachim, thanks for the heads up! On Mon, Feb 22, 2010 at 10:04 AM, Joachim F. Kainz j...@jolira.com wrote: Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! [image: :)] Best regards, Joachim http://www.jolira.com
Re: Wicket used for mobile.walmart.com
Nice.. Any load statistics? Would be nice with that kind of information.. :) regards Nino 2010/2/22 Joachim F. Kainz j...@jolira.com Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! [image: :)] Best regards, Joachim http://www.jolira.com
RadioChoice in IE7 Known Issue?
Hi, I've noticed that the model isn't updated in IE7 when using the Wicket RadioChoice component. This behavior doesn't appear in Firefox. In my code, the RadioChoice component is set to required and even after selecting one of the radio choices, upon submit I get a required field validation error. I am not adding any ajax behaviors to the component. Again, this only appears to happen in IE7. We are using Wicket 1.4.4. Is this a known issue and/or something that has been fixed in Wicket 1.4.5/6? I've tried overriding wantOnChangeSelectionNotification (return true) but that didn't seem to solve the issue. Any help on this issue would be greatly appreciated. Thanks, J.D.
Re: Wicket used for mobile.walmart.com
I am trying to get authorization to share this information. Let me put it this way: I have also create mobile.wellsfargo.com (Wells is one of the top three banks in the US). The first hour of operation of mobile.walmart.com we had significantly more traffic than during the first month of mobile.wellsfargo.com. I will be able to share some wicket-related profiling information, if people are interested. I should have very good data from product available in about a week from now. On Mon, 2010-02-22 at 19:01 +0100, nino martinez wael wrote: Nice.. Any load statistics? Would be nice with that kind of information.. :) regards Nino 2010/2/22 Joachim F. Kainz j...@jolira.com Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! [image: :)] Best regards, Joachim http://www.jolira.com
Re: Wicket without markup
Hi Martin, do you have any news on this subject? E.g. found that you reinvent the wheel or started a project with this idea :-)? Regards, Peter. MartinM wrote: Hi! I finally came up with something that I have been looking for. It might be more suitable for Wicket 1.5 because it's not very compatible (read: not very lean) with current wicket: Wicket Without Markup ;) Well, yes there is markup for each component, but when you lay them out on the page, the markup is component-contained. So coding an application feels like a breeze for the Java developer, and the HTML developer can strictly stick to styling the (contained) components themselves. Maybe I omitted something, but here comes the example. Let me know what you think. Does it inspire any fresh ideas in you? Is this an old idea? I recall listviews having been mentioned once as a solution for producing markup-less code ... maybe I have re-invented the weel or something. HomePage.html: html body strongWicket Quickstart Archetype Homepage/strong form wicket:id=form wicket:container wicket:id=root-content-id/wicket:container /form /body /html HomePage.java: public class HomePage extends WebPage { /** */ private static final long serialVersionUID = 1L; private final MarkupNoLongerRequiredContainer rootContainer; private final MarkupNoLongerRequiredContainer row1; private final MarkupNoLongerRequiredContainer row2; private final MarkupNoLongerRequiredContainer row3; private final FormVoid form; /** * */ public HomePage() { add(form = new FormVoid(form)); form.add(rootContainer = new MarkupNoLongerRequiredContainer(root-content-id)); { rootContainer.add(row1 = new MarkupNoLongerRequiredContainer()); row1.add(new Label(GID, Hello world)); row1.add(0, new Label(GID, br/).setEscapeModelStrings(false)); // Change row before row1.add(0, new Label(GID, br/).setEscapeModelStrings(false)); // Change row twice before row1.add(new Label(GID, br/).setEscapeModelStrings(false)); // Change row once after } { rootContainer.add(row2 = new MarkupNoLongerRequiredContainer()); row2.add(new Label(GID, Type your name here:)); row2.add(new InputField(new TextFieldString(GID, Model.of(...; } { rootContainer.add(row3 = new MarkupNoLongerRequiredContainer()); row2.add(new Label(GID, br/).setEscapeModelStrings(false)); // Change row before row2.add(new InputField(new Button(GID, Model.of(Clickme)) { @Override protected void onComponentTag(ComponentTag tag) { tag.put(type, button); super.onComponentTag(tag); } })); } } } InputField.html: wicket:panel input wicket:id=generic-child-id/ /wicket:panel InputField.java: public class InputField extends Panel { /** */ private static final long serialVersionUID = 1L; public InputFieldDataType, InputFieldType extends FormComponentInputFieldDataType InputField(InputFieldType inputFieldType) { super(MarkupNoLongerRequiredContainer.GID); add(inputFieldType); } } MarkupNoLongerRequiredContainer.html: wicket:panel wicket:container wicket:id=listview-id wicket:container wicket:id=generic-child-id /wicket:container /wicket:container /wicket:panel MarkupNoLongerRequiredContainer.java: public class MarkupNoLongerRequiredContainer extends Panel { /** */ public static final String GID = generic-child-id; /** */ private static final long serialVersionUID = 1L; private final ListComponent children = new ArrayListComponent(); public MarkupNoLongerRequiredContainer() { this(GID); } @Override protected void onBeforeRender() { super.onBeforeRender(); } /** * @param id */ public MarkupNoLongerRequiredContainer(String id) { super(id); super.add(new ListViewComponent(listview-id, children) { /** */ private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItemComponent listItem) { Component component = listItem.getModelObject(); if
Re: Wicket used for mobile.walmart.com
Joachim, Very very cool info. A few days ago folks were talking about slides for convincing management of Wicket and trying to create some common slides for folks to utilize -- information like *this* (Walmart, Wells Fargo) is a gold-mine for those business cases for Wicket. Would it be alright with you if that info (that wicket was deployed on those two mobile sites) were shared in that slide set or by people trying to make cases for Wicket in their workplace? (I assume yes since this is a public mailing list, but want to make sure) Best, Riyad On Mon, Feb 22, 2010 at 12:52 PM, Joachim F. Kainz j...@jolira.com wrote: I am trying to get authorization to share this information. Let me put it this way: I have also create mobile.wellsfargo.com (Wells is one of the top three banks in the US). The first hour of operation of mobile.walmart.com we had significantly more traffic than during the first month of mobile.wellsfargo.com. I will be able to share some wicket-related profiling information, if people are interested. I should have very good data from product available in about a week from now. On Mon, 2010-02-22 at 19:01 +0100, nino martinez wael wrote: Nice.. Any load statistics? Would be nice with that kind of information.. :) regards Nino 2010/2/22 Joachim F. Kainz j...@jolira.com Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! [image: :)] Best regards, Joachim http://www.jolira.com
CompoundPropertyModel: continue traversal with multiple CPMs in the hierarchy
Hi list, say I have a Component hierarchy like CompA-CompB-CompC. CompB and CompA each have a distinct CompoundPropertyModel. CompC will use it's ID as accessor to one of the CPM.modelObject's fields. Given that CompB's CPM doesn't have a coresponding property but CompA's CPM has, will Wicket continue the traversal after it wasn't successful with the first CPM found in the hierarchy? If not, I would like to argue that this could be something useful, though I'll have to come up with a use-case which I don't have at hand right now :) Your input please. Regards, Stephan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket without markup
Hi! I don't know of anybody that tried this out. I tried to make it very easy for everybody to take a test drive, started a quick-start project at: * http://code.google.com/p/wicket-mashup/ ** Martin 2010/2/22 petar peat...@yahoo.de: Hi Martin, do you have any news on this subject? E.g. found that you reinvent the wheel or started a project with this idea :-)? Regards, Peter. MartinM wrote: Hi! I finally came up with something that I have been looking for. It might be more suitable for Wicket 1.5 because it's not very compatible (read: not very lean) with current wicket: Wicket Without Markup ;) Well, yes there is markup for each component, but when you lay them out on the page, the markup is component-contained. So coding an application feels like a breeze for the Java developer, and the HTML developer can strictly stick to styling the (contained) components themselves. Maybe I omitted something, but here comes the example. Let me know what you think. Does it inspire any fresh ideas in you? Is this an old idea? I recall listviews having been mentioned once as a solution for producing markup-less code ... maybe I have re-invented the weel or something. HomePage.html: html body strongWicket Quickstart Archetype Homepage/strong form wicket:id=form wicket:container wicket:id=root-content-id/wicket:container /form /body /html HomePage.java: public class HomePage extends WebPage { /** */ private static final long serialVersionUID = 1L; private final MarkupNoLongerRequiredContainer rootContainer; private final MarkupNoLongerRequiredContainer row1; private final MarkupNoLongerRequiredContainer row2; private final MarkupNoLongerRequiredContainer row3; private final FormVoid form; /** * */ public HomePage() { add(form = new FormVoid(form)); form.add(rootContainer = new MarkupNoLongerRequiredContainer(root-content-id)); { rootContainer.add(row1 = new MarkupNoLongerRequiredContainer()); row1.add(new Label(GID, Hello world)); row1.add(0, new Label(GID, br/).setEscapeModelStrings(false)); // Change row before row1.add(0, new Label(GID, br/).setEscapeModelStrings(false)); // Change row twice before row1.add(new Label(GID, br/).setEscapeModelStrings(false)); // Change row once after } { rootContainer.add(row2 = new MarkupNoLongerRequiredContainer()); row2.add(new Label(GID, Type your name here:)); row2.add(new InputField(new TextFieldString(GID, Model.of(...; } { rootContainer.add(row3 = new MarkupNoLongerRequiredContainer()); row2.add(new Label(GID, br/).setEscapeModelStrings(false)); // Change row before row2.add(new InputField(new Button(GID, Model.of(Clickme)) { @Override protected void onComponentTag(ComponentTag tag) { tag.put(type, button); super.onComponentTag(tag); } })); } } } InputField.html: wicket:panel input wicket:id=generic-child-id/ /wicket:panel InputField.java: public class InputField extends Panel { /** */ private static final long serialVersionUID = 1L; public InputFieldDataType, InputFieldType extends FormComponentInputFieldDataType InputField(InputFieldType inputFieldType) { super(MarkupNoLongerRequiredContainer.GID); add(inputFieldType); } } MarkupNoLongerRequiredContainer.html: wicket:panel wicket:container wicket:id=listview-id wicket:container wicket:id=generic-child-id /wicket:container /wicket:container /wicket:panel MarkupNoLongerRequiredContainer.java: public class MarkupNoLongerRequiredContainer extends Panel { /** */ public static final String GID = generic-child-id; /** */ private static final long serialVersionUID = 1L; private final ListComponent children = new ArrayListComponent(); public MarkupNoLongerRequiredContainer() { this(GID); } @Override protected void onBeforeRender() { super.onBeforeRender(); } /** * @param id */ public MarkupNoLongerRequiredContainer(String id) { super(id); super.add(new ListViewComponent(listview-id, children) { /** */ private static final long serialVersionUID = 1L; @Override
Wicket Stuff Html Validator
I've added htmlvalidator-1.3.1.jar to my classpath, and the appropriate code in the application's init method (see link below). I get the following error when running the app; java.io.FileNotFoundException: Could not find dtds folder null http://wicketinaction.com/2009/06/wicket-html-validator-12/ Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.
Re: Wicket used for mobile.walmart.com
Riyad, Yes, please go ahead and share this information. Best regards, Joachim On Mon, 2010-02-22 at 13:50 -0700, Riyad Kalla wrote: Joachim, Very very cool info. A few days ago folks were talking about slides for convincing management of Wicket and trying to create some common slides for folks to utilize -- information like *this* (Walmart, Wells Fargo) is a gold-mine for those business cases for Wicket. Would it be alright with you if that info (that wicket was deployed on those two mobile sites) were shared in that slide set or by people trying to make cases for Wicket in their workplace? (I assume yes since this is a public mailing list, but want to make sure) Best, Riyad On Mon, Feb 22, 2010 at 12:52 PM, Joachim F. Kainz j...@jolira.com wrote: I am trying to get authorization to share this information. Let me put it this way: I have also create mobile.wellsfargo.com (Wells is one of the top three banks in the US). The first hour of operation of mobile.walmart.com we had significantly more traffic than during the first month of mobile.wellsfargo.com. I will be able to share some wicket-related profiling information, if people are interested. I should have very good data from product available in about a week from now. On Mon, 2010-02-22 at 19:01 +0100, nino martinez wael wrote: Nice.. Any load statistics? Would be nice with that kind of information.. :) regards Nino 2010/2/22 Joachim F. Kainz j...@jolira.com Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! [image: :)] Best regards, Joachim http://www.jolira.com
ListView and DropDownChoice reset all form fields ..
Hi List, If you create a simple Panel with a DropDownChoice where you put wantOnSelectionChangedNotifications to true and onSelectionChanged... JUST your select box is re-rendered when your selection change, others panel fields are not re-renderer...(which is good). BUT if you put your panel in a ListView (because you want to display a lot of panels...), on the onSelectionChanged all the ListView childs are re-renderer and all the panels fields are reseted ! because there was no form processing yet (model and form fields are not setted yet) Any idea to deal with this problem ? thanks for help, Arnaud - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Model to use for static Label text
Hello. I've always used add(new Label(alabel, new Model(A message)); - does this not save the A message string in the page store? Is it not better to do add(new Label(alabel, new LoadableDetachableModelString() { @Override protected String load() { return A message; } })); - while this option does not save it in the page store. Is it because of the coding amount that nobody is using this? I guess not because we could extend IModel and create a label model with a string property that is cleared on detach. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ListView and DropDownChoice reset all form fields ..
Hi! Yeah...try setReuseItems for your listView. If you use ajax, you can use also AjaxFormSubmittingChangeListenerBehavior http://old.nabble.com/New-behavior:-AjaxFormSubmittingChangeListenerBehavior-td26201382.html ** Martin 2010/2/22 Arnaud Garcia arn...@imagemed-87.com: Hi List, If you create a simple Panel with a DropDownChoice where you put wantOnSelectionChangedNotifications to true and onSelectionChanged... JUST your select box is re-rendered when your selection change, others panel fields are not re-renderer...(which is good). BUT if you put your panel in a ListView (because you want to display a lot of panels...), on the onSelectionChanged all the ListView childs are re-renderer and all the panels fields are reseted ! because there was no form processing yet (model and form fields are not setted yet) Any idea to deal with this problem ? thanks for help, Arnaud - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup and AjaxPagination
I added a ajax event handler to the checks in my pageable list view like this add(new AjaxEventBehavior(onclick) { @Override protected void onEvent(AjaxRequestTarget target) { List list = (List) checkGroup.getModelObject(); Object o = item.getModelObject(); if(list.contains(o)) list.remove(o); else list.add(o); //database commit } }); Additionally I overwrote updateModel() of the check group @Override public void updateModel() { // do nothing on purpose. } Works fine for me. But it would be helpful if there was a official solution to achieve the same behavior. -Conny vermas wrote: Hi, I'm trying to implement checkgroup with pagination and the I need to know when the user clicks on the submit button as what checkboxes he selected on various pages. But it doesn't remember it. Only the current page. Does anybody has faced this problem and the solution for this. Thanks Shalini -- View this message in context: http://old.nabble.com/CheckGroup-and-AjaxPagination-tp27426507p27695188.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Model to use for static Label text
Well, a couple of strings more or less usually don't make that much of a difference. I personally prefer to save some typing and have better readability then to save a few bytes here and there. Furthermore, if you were to create an implementation of IModel specifically for this case, you would always need to store the string as an instance variable, thus creating the problem you are trying to solve. Serban Balamaci wrote: Hello. I've always used add(new Label(alabel, new Model(A message)); - does this not save the A message string in the page store? Is it not better to do add(new Label(alabel, new LoadableDetachableModelString() { @Override protected String load() { return A message; } })); - while this option does not save it in the page store. Is it because of the coding amount that nobody is using this? I guess not because we could extend IModel and create a label model with a string property that is cleared on detach. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Model-to-use-for-static-Label-text-tp27695054p27695195.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket used for mobile.walmart.com
Great, I think Riyad just put up a blog post on this. Here's the DZone link ;) http://www.dzone.com/links/apache_wicket_powers_mobilewalmartcom.html On Tue, Feb 23, 2010 at 3:01 AM, Joachim F. Kainz j...@jolira.com wrote: Riyad, Yes, please go ahead and share this information. Best regards, Joachim On Mon, 2010-02-22 at 13:50 -0700, Riyad Kalla wrote: Joachim, Very very cool info. A few days ago folks were talking about slides for convincing management of Wicket and trying to create some common slides for folks to utilize -- information like *this* (Walmart, Wells Fargo) is a gold-mine for those business cases for Wicket. Would it be alright with you if that info (that wicket was deployed on those two mobile sites) were shared in that slide set or by people trying to make cases for Wicket in their workplace? (I assume yes since this is a public mailing list, but want to make sure) Best, Riyad On Mon, Feb 22, 2010 at 12:52 PM, Joachim F. Kainz j...@jolira.com wrote: I am trying to get authorization to share this information. Let me put it this way: I have also create mobile.wellsfargo.com(Wells is one of the top three banks in the US). The first hour of operation of mobile.walmart.com we had significantly more traffic than during the first month of mobile.wellsfargo.com. I will be able to share some wicket-related profiling information, if people are interested. I should have very good data from product available in about a week from now. On Mon, 2010-02-22 at 19:01 +0100, nino martinez wael wrote: Nice.. Any load statistics? Would be nice with that kind of information.. :) regards Nino 2010/2/22 Joachim F. Kainz j...@jolira.com Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! [image: :)] Best regards, Joachim http://www.jolira.com
Re: Wicket used for mobile.walmart.com
Peter, yep that's the one, thanks for sharing it. I'm always wary of kicking my own links out to lists and seeming pushy ;) On Mon, Feb 22, 2010 at 8:55 PM, Peter Thomas ptrtho...@gmail.com wrote: Great, I think Riyad just put up a blog post on this. Here's the DZone link ;) http://www.dzone.com/links/apache_wicket_powers_mobilewalmartcom.html On Tue, Feb 23, 2010 at 3:01 AM, Joachim F. Kainz j...@jolira.com wrote: Riyad, Yes, please go ahead and share this information. Best regards, Joachim On Mon, 2010-02-22 at 13:50 -0700, Riyad Kalla wrote: Joachim, Very very cool info. A few days ago folks were talking about slides for convincing management of Wicket and trying to create some common slides for folks to utilize -- information like *this* (Walmart, Wells Fargo) is a gold-mine for those business cases for Wicket. Would it be alright with you if that info (that wicket was deployed on those two mobile sites) were shared in that slide set or by people trying to make cases for Wicket in their workplace? (I assume yes since this is a public mailing list, but want to make sure) Best, Riyad On Mon, Feb 22, 2010 at 12:52 PM, Joachim F. Kainz j...@jolira.com wrote: I am trying to get authorization to share this information. Let me put it this way: I have also create mobile.wellsfargo.com (Wells is one of the top three banks in the US). The first hour of operation of mobile.walmart.com we had significantly more traffic than during the first month of mobile.wellsfargo.com. I will be able to share some wicket-related profiling information, if people are interested. I should have very good data from product available in about a week from now. On Mon, 2010-02-22 at 19:01 +0100, nino martinez wael wrote: Nice.. Any load statistics? Would be nice with that kind of information.. :) regards Nino 2010/2/22 Joachim F. Kainz j...@jolira.com Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using Wicket for its mobile site. Check out mobile.walmart.com (or just point your mobile phone to www.walmart.com and get redirected automatically). The reason why my client decided to go with Wicket makes it easy to support multiple different types of devices. The walmart mobile application supports different HTML for three categories of devices (L1: iPhones challengers, L2: BlackBerries, L3: Plain Old Devices). These three experiences are supported by the same Java code on the server side. We added a few components to Wicket, mostly because in the retail arena being stateless is very important. Our components are available at http://code.google.com/p/jolira-tools/. Wicket is an awesome product and I would like to thank the Wicket team for all there work. One day I hope to get the largest enterprise in the world to donate an appropriate amount of money for future development! [image: :)] Best regards, Joachim http://www.jolira.com
Re: RadioChoice in IE7 Known Issue?
you should debug it and see, as far as i know radiochoice just generates a bunch of input type=radio so all should work. it is inside a form right? -igor On Mon, Feb 22, 2010 at 10:02 AM, Corbin, James jcor...@iqnavigator.com wrote: Hi, I've noticed that the model isn't updated in IE7 when using the Wicket RadioChoice component. This behavior doesn't appear in Firefox. In my code, the RadioChoice component is set to required and even after selecting one of the radio choices, upon submit I get a required field validation error. I am not adding any ajax behaviors to the component. Again, this only appears to happen in IE7. We are using Wicket 1.4.4. Is this a known issue and/or something that has been fixed in Wicket 1.4.5/6? I've tried overriding wantOnChangeSelectionNotification (return true) but that didn't seem to solve the issue. Any help on this issue would be greatly appreciated. Thanks, J.D. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tomcat Deployment problem : adding CSS links have been modified ?
Hi friends, Is there a way to configure this in Wicket? My client wants to add some static HTML pages by himself ,and it would be difficult for him to add wicket:link tag for every hyper-link. thanks in advance. François Meillet wrote: Hi Ashika, Give a try to this wicket:link link rel=stylesheet type=text/css href=style/tablestyle.css/ link rel=stylesheet type=text/css href=images/style.css/ /wicket:link François Le 1 févr. 2010 à 05:59, Ashika Umanga Umagiliya a écrit : Greetings, I've been developing my wicket application using maven+jetty and when I deployed it in Tomcat , all the CSS styles were missing. I noticed that all the CSS links have been modified by the container(or wicket?) and added the prefix ../ Eg: In my pages I have: link rel=stylesheet type=text/css href=style/tablestyle.css/ link rel=stylesheet type=text/css href=images/style.css/ But in the page Tomcat serves ,it has: link rel=stylesheet type=text/css href=../style/tablestyle.css/ link rel=stylesheet type=text/css href=../images/style.css/ This works fine with Jetty ,what could be the problem? thanks in advance - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
IResponseFilter takes over outputStream - error
I'm using Big Faceless PDF library to generate a PDF from a dynamic Wicket Page which renders XML. I have tried different approaches, but the only one I get to work is by plugging a filter into the app using: getRequestCycleSettings().addResponseFilter(new FacelessResponseFilter()); filter code: public class FacelessResponseFilter implements IResponseFilter { static { ReportParser.setLicenseKey(SOME KEY); } @Override public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer) { if (responseBuffer.indexOf(big.faceless.org) == -1) { return responseBuffer; } ReportParser parser = null; try { parser = ReportParser.getInstance(); } catch (SAXException e) { e.printStackTrace(); } WebRequestCycle requestCycle = (WebRequestCycle) RequestCycle.get(); BufferedWebResponse wr = (BufferedWebResponse) requestCycle.getWebResponse(); wr.setAttachmentHeader(pdfFile.pdf); wr.setContentType(application/pdf); InputSource is = new InputSource(new StringReader(responseBuffer.toString())); OutputStream out = wr.getOutputStream(); is.setSystemId(/); PDF parse; try { parse = parser.parse(is); parse.render(out); } catch (IOException e) { e.printStackTrace(); } catch (SAXException e) { e.printStackTrace(); } return new AppendingStringBuffer(); } } Page code: public class CountryListXMLPage extends Page { private boolean stripTagsSettingBeforeThisPageLoad; public CountryListXMLPage() { add(new ListViewCountry(countryList, new CountryListModel()) { private static final long serialVersionUID = 1L; @Override protected void populateItem(final ListItemCountry listItem) { listItem.add(new Label(name, listItem.getModelObject().getName())); Region region = listItem.getModelObject().getRegion(); listItem.add(new Label(region.name, region == null ? : region.getName())); } }); } @Override protected void onBeforeRender() { stripTagsSettingBeforeThisPageLoad = Application.get().getMarkupSettings().getStripWicketTags(); Application.get().getMarkupSettings().setStripWicketTags(true); super.onBeforeRender(); } @Override protected void onAfterRender() { Application.get().getMarkupSettings().setStripWicketTags(stripTagsSettingBeforeThisPageLoad); super.onAfterRender(); } @Override public String getMarkupType() { return xml; } class CountryListModel extends LoadableDetachableModelListCountry { private static final long serialVersionUID = 1L; @Override protected ListCountry load() { SolidApplication app = (SolidApplication)SolidApplication.get(); return app.getDomainService().getCountries(); } } } I have a Link loading this page and get the PDF download OK, but since the filter hijacks the OutputStream, I get the error: [ERROR,WebResponse,http-8080-1] Unable to redirect to: ?wicket:interface=:2, HTTP Response has already been committed. [ERROR,WicketFilter,http-8080-1] closing the buffer error java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435) at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136) ... Does anyone know about a better way to do what I'm trying here? Geir