RE: WicketStuff artifacts naming strategy
- jasperreports-1.4.16.jar - jasperreports-3.7.2.jar The first one is from WicketStuff, but still, it is confusing to see this. This one of my biggest peeves with Maven: It has this concept of a groupId to namespace artifacts in the repository, but this is of no consequence when the jar files appear in the classpath, since the groupId namespace is not part of the actual file name. A workaround could be to prefix the jar file name with the groupId namespace somehow. - Tor Iver
Re: WicketStuff artifacts naming strategy
In the most parent wicketstuff pom.xml: build finalName${project.groupId}-${project.artifactId}-${project.version}.jar/finalName On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: - jasperreports-1.4.16.jar - jasperreports-3.7.2.jar The first one is from WicketStuff, but still, it is confusing to see this. This one of my biggest peeves with Maven: It has this concept of a groupId to namespace artifacts in the repository, but this is of no consequence when the jar files appear in the classpath, since the groupId namespace is not part of the actual file name. A workaround could be to prefix the jar file name with the groupId namespace somehow. - Tor Iver -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: IDE / Server Support
take a look at: http://stackoverflow.com/questions/5373522/is-jrebel-ever-used-in-production-environments-what-can-it-reload-on-the-jvm http://stackoverflow.com/questions/2844135/which-java-web-frameworks-provide-hot-reload Regards, Peter. Hi, How do you get fast deployment in development with large Wicket EJB applications? Wicket pages are ordinary class files that do not always seem to have special redeployment support like JSP files or HTML files. I have an EJB 3.1 app deployed on GlassFish 3.1. Web pages in the web directory deploy automatically in milliseconds, but whenever I save a Java class file, deploy on save deploys the whole application. This is not a big deal with hello world apps, but it hurts badly otherwise. As an example I tried the Wicket example application with hundreds of class files which takes more than half a minute to deploy on fast computers, and during that time, the IDE freezes. I thought that a decent servlet container should be able to detect single class file changes and hot-deploy them individually. But I might be wrong. The NetBeans folks think otherwise and refer me to the GlassFish server docs. I don't care so much about their view because what matters to me is the fact that - say a PHP developer - just saves his files and hits the reload button, and that is what I try to get, too. Otherwise I feel I am fighting an uphill battle. Any thoughts are appreciated. Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- http://jetwick.com open twitter search - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best way to periodically refresh an inmethod DataGrid?
If you update the just the selected row then the selection will be lost. You may try with some JavaScript gymnastics to save the selection and restore it later. Use AjaxRequestTarget.prependJavascript() for the saving code and .appendJavascript() for the restoring code. The JavaScript to deal with selection is different for the different browsers, so better find a JS library that does it for you. Good luck! On Thu, Mar 24, 2011 at 11:38 PM, Coleman, Chris chris.cole...@thalesgroup.com.au wrote: We've got a wicket app with an inmethod DataGrid and it displays fine and we use an AjaxSelfUpdatingTimerBehaviour to update the grid every 5 seconds. That part works fine - as data changes in the database the changes are reflected in the table in the browser However, if we select an item the selection dissappears when the very next refresh occurs. How do we refresh the DataGrid in such a way that it remembers its selected item after a refresh? DISCLAIMER:--- This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. -- -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Navigation and Adding Panels dynamically.
See Wizard component in wicket-extensions. You'll need custom logic to check whether the previous/next wizard step should be shown to the current user depending on its privileges. On Fri, Mar 25, 2011 at 1:57 AM, Mansour Al Akeel mansour.alak...@gmail.com wrote: I do have the need to implement different screens. Each screen is a Panel that will be displayed when requested from the screens menu. The screen menu should display the items depending on the functionality the user has access to. Can some one point me to an article or a tutorial with similar requirements ? I trully appreciate any help. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: WicketStuff artifacts naming strategy
I'm planning on doing point releases this weekend for 1.4.16.1 and 1.5-rc2.1 and I'll make sure the artifacts generate using the longer name. Thanks, Mike In the most parent wicketstuff pom.xml: build finalName${project.groupId}-${project.artifactId}-${project.version}.jar/finalName On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Ivertoriv...@arrive.nowrote: - jasperreports-1.4.16.jar - jasperreports-3.7.2.jar The first one is from WicketStuff, but still, it is confusing to see this. This one of my biggest peeves with Maven: It has this concept of a groupId to namespace artifacts in the repository, but this is of no consequence when the jar files appear in the classpath, since the groupId namespace is not part of the actual file name. A workaround could be to prefix the jar file name with the groupId namespace somehow. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Interaction betwen IAjaxRegionMarkupIdProvider, renderPlaceholderTag and visibility
Hi, I've just discovered what I think is a bug with IAjaxRegionMarkupIdProvider. We are using it on a Behavior that provides a border to form components (label, mandatory marker, etc), which for the most part works great. We have encountered a problem when toggling the visibility of a form component with this behavior via ajax. The component is first sent out visible and the markup is all correct. A change elsewhere on the page causes the component to be set to not visible and redrawn via ajax. The ajax response contains a tag with a markupid generated via renderPlaceholderTag. This does not take into account the IAjaxRegionMarkupIdProvider behaviour. Another change happens on the page causing the component to become visible, and the ajax replace can't happen because the component with the correct markupId is not present. I think the problem is that renderPlaceholderTag should be aware of IAjaxRegionMarkupIdProvider behaviours on the component when creating the markupid. Should I raise a issue for this? Cheers, Paul /PRE p style=font-family:'Arial';font-size:8pt **br Please consider the environment - do you really need to print this email?br br This email is intended only for the person(s) named above and may contain private and confidential information. If it has come to you in error, please destroy and permanently delete any copy in your possession and contact us on +44 (0) 161 480 4420. The information in this email is copyright copy; CDL Group Holdings Limited. We cannot accept any liability for any loss or damage sustained as a result of software viruses. It is your responsibility to carry out such virus checking as is necessary before opening any attachment.br Cheshire Datasystems Limited uses software which automatically screens incoming emails for inappropriate content and attachments. If the software identifies such content or attachment, the email will be forwarded to our Technology Department for checking. You should be aware that any email which you send to Cheshire Datasystems Limited is subject to this procedure. br Cheshire Datasystems Limited, Strata House, Kings Reach Road, Stockport SK4 2HDbr Registered in England and Wales with Company Number 3991057br VAT registration: 727 1188 33/p PRE
Re: Interaction betwen IAjaxRegionMarkupIdProvider, renderPlaceholderTag and visibility
It sounds like bug, yes. I'm not sure how easy is to support it, though. renderPlaceholderTag() will need to iterate over all ajax behaviors and check whether they have region... Create a ticket with a quickstart and we'll see what can be made. Thanks! On Fri, Mar 25, 2011 at 1:31 PM, Paul Jackson paul.jack...@cdl.co.ukwrote: Hi, I've just discovered what I think is a bug with IAjaxRegionMarkupIdProvider. We are using it on a Behavior that provides a border to form components (label, mandatory marker, etc), which for the most part works great. We have encountered a problem when toggling the visibility of a form component with this behavior via ajax. The component is first sent out visible and the markup is all correct. A change elsewhere on the page causes the component to be set to not visible and redrawn via ajax. The ajax response contains a tag with a markupid generated via renderPlaceholderTag. This does not take into account the IAjaxRegionMarkupIdProvider behaviour. Another change happens on the page causing the component to become visible, and the ajax replace can't happen because the component with the correct markupId is not present. I think the problem is that renderPlaceholderTag should be aware of IAjaxRegionMarkupIdProvider behaviours on the component when creating the markupid. Should I raise a issue for this? Cheers, Paul /PRE p style=font-family:'Arial';font-size:8pt **br Please consider the environment - do you really need to print this email?br br This email is intended only for the person(s) named above and may contain private and confidential information. If it has come to you in error, please destroy and permanently delete any copy in your possession and contact us on +44 (0) 161 480 4420. The information in this email is copyright copy; CDL Group Holdings Limited. We cannot accept any liability for any loss or damage sustained as a result of software viruses. It is your responsibility to carry out such virus checking as is necessary before opening any attachment.br Cheshire Datasystems Limited uses software which automatically screens incoming emails for inappropriate content and attachments. If the software identifies such content or attachment, the email will be forwarded to our Technology Department for checking. You should be aware that any email which you send to Cheshire Datasystems Limited is subject to this procedure. br Cheshire Datasystems Limited, Strata House, Kings Reach Road, Stockport SK4 2HDbr Registered in England and Wales with Company Number 3991057br VAT registration: 727 1188 33/p PRE -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: PackageResourceReference, MetaInfStaticResourceReference and timestamps
Hi, I made a new test (serving a png and a js) with current trunk and the gap is much smaller now: tomcat is 25% faster on average. Attila Attila can you elaborate on your tests? Are you comparing the difference between using a resource reference (js) and image component (png) in wicket vs linking straight the to the files in html? If so, what relevance does whether the static files are in META-INF or WEB-INF have? Not that much because if I am correct the extra overhead is introduced by having wicket process the resource and spit out the markup... 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: Choice of Resource for my Image component
1. I changed the image component from Image to NonCachingImage. This seems to have eliminated my issue of images being shown which were a previously-shown image instead of the correct one. 2. The model which I pass to my NonCachingImage is descended from LoadableDetachableModel. This model class's load() method returned null if there was no image to display. I believe that this is the cause of the exception which I was getting. If there is no image, load() now returns new ByteArrayResource(null, new byte[0]); instead. I have yet to see the exception since this change. 3. All I need to do now is find out why my use of a NonCachingImage together with my descended LoadableDetachableModel in the form of my web page still results in huge session size (1MB), which is forbidden in Google App Engine. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Choice-of-Resource-for-my-Image-component-tp3342289p3405585.html Sent from the Users forum 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
setObject with invisible panel
I have a form with a section that the user can show or hide via an AjaxLink. The AjaxLink is hiding and showing using Component.isVisible(boolean). When the user expands the section of the form, enters data, collapses the section of the form, and then saves, I lose the edits the user makes. Is there a way to keep the edits without having to change my AjaxLink to just manipulate the display style attribute? The hide/show section of the form starts hidden so it doesn't need to load from the DB until the LoadableDetachableModel attaches and I would lose that if I only manipulate the style attribute. Jered Myers - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Trouble with DropDownChoice
I'm trying to follow the example in the Javadoc for DropDownChoice which says: Java: List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); // Add a dropdown choice component that uses Input's 'site' property to designate the // current selection, and that uses the SITES list for the available options. // Note that when the selection is null, Wicket will lookup a localized string to // represent this null with key: id + '.null'. In this case, this is 'site.null' // which can be found in DropDownChoicePage.properties form.add(new DropDownChoice(site, SITES)); HTML: select wicket:id=site optionsite 1/option optionsite 2/option /select I follow this quite closely. The code is inside a form: ListString recCapNames = new ArrayListString(); for (Capability cap : recognizedCaps) recCapNames.add(cap.toString()); final DropDownChoice permissionDropDown = new DropDownChoice( permissionDropdown, recCapNames); add(permissionDropDown); select wicket:id=permissionDropdown optionP1/option optionP2/option /select The page renders fine. The dropdown shows the right elements in the list when I pull it down, and allows me to select one, etc. But when I hit any button on the form it pukes, complaining about trying to setModelObject on a null model. (I have several buttons on the form, only one of which is related to the DropDownChoice, and they all fail the same way. Their onSubmit() methods never get reached: some sort of general process of form-handling is run first, and that's where the exception happens.) Stack dump below. Wicket 1.5 RC2. Any ideas? Thanks in advance Jim Stackdump: Root cause: java.lang.IllegalStateException: Attempt to set model object on null model of component: AdministerGroupForm:permissionspanel:permissionpanelform:permissionDropdown at org.apache.wicket.Component.setDefaultModelObject(Component.java:3006) at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1038) at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:221) at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:192) at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:274) at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:263) at org.apache.wicket.util.visit.Visits.visitPostOrder(Visits.java:246) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:384) at org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1669) at org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1634) at org.apache.wicket.markup.html.form.Form.process(Form.java:807) at org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:61) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:743) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:685) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:259) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:215) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:171) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:157) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:706) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
Choice of Resource for my Image component
Hello Jim, Could I ask you to post this in a separate topic? This one is for my choice of resource for my Image component. Cheers, Ian -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Choice-of-Resource-for-my-Image-component-tp3342289p3406000.html Sent from the Users forum 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
Apache Wicket Cookbook Published!
For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the next level this book is for you. Cheers, and I hope you enjoy the book! -Igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Apache Wicket Cookbook Published!
Congrats. I trust Igor -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, March 25, 2011 1:44 PM To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org Subject: Apache Wicket Cookbook Published! For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the next level this book is for you. Cheers, and I hope you enjoy the book! -Igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail:
Re: Trouble with DropDownChoice
You can create a simple PropertyModel to hold the value your form is trying to set. Here is an example: public Pageextends WebPage { private List letters = Arrays.asList(new String[] {A,B,C })); public String selected =B; public Page() { Form form =new Form(form); DropDownChoice choice=new DropDownChoice(ddc,new PropertyModel(this,selected), letters); } } The example is from: https://cwiki.apache.org/WICKET/dropdownchoice-examples.html. It is missing the generics if you are working in 1.4.x, but it demonstrates the process well. The model object here is the selected string. When the form saves it will set the selected string with the value in the drop down. On 3/25/2011 9:40 AM, Jim Goodwin wrote: I'm trying to follow the example in the Javadoc for DropDownChoice which says: Java: List SITES = Arrays.asList(new String[] { The Server Side, Java Lobby, Java.Net }); // Add a dropdown choice component that uses Input's 'site' property to designate the // current selection, and that uses the SITES list for the available options. // Note that when the selection is null, Wicket will lookup a localized string to // represent this null with key: id + '.null'. In this case, this is 'site.null' // which can be found in DropDownChoicePage.properties form.add(new DropDownChoice(site, SITES)); HTML: select wicket:id=site optionsite 1/option optionsite 2/option /select I follow this quite closely. The code is inside a form: ListString recCapNames = new ArrayListString(); for (Capability cap : recognizedCaps) recCapNames.add(cap.toString()); final DropDownChoice permissionDropDown = new DropDownChoice( permissionDropdown, recCapNames); add(permissionDropDown); select wicket:id=permissionDropdown optionP1/option optionP2/option /select The page renders fine. The dropdown shows the right elements in the list when I pull it down, and allows me to select one, etc. But when I hit any button on the form it pukes, complaining about trying to setModelObject on a null model. (I have several buttons on the form, only one of which is related to the DropDownChoice, and they all fail the same way. Their onSubmit() methods never get reached: some sort of general process of form-handling is run first, and that's where the exception happens.) Stack dump below. Wicket 1.5 RC2. Any ideas? Thanks in advance Jim Stackdump: Root cause: java.lang.IllegalStateException: Attempt to set model object on null model of component: AdministerGroupForm:permissionspanel:permissionpanelform:permissionDropdown at org.apache.wicket.Component.setDefaultModelObject(Component.java:3006) at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1038) at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:221) at org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:192) at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:274) at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:263) at org.apache.wicket.util.visit.Visits.visitPostOrder(Visits.java:246) at org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:384) at org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:1669) at org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:1634) at org.apache.wicket.markup.html.form.Form.process(Form.java:807) at org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:61) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:743) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:685) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:259) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:215) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:171) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:157) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:706) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138) at
Re: Trouble with DropDownChoice
On 3/25/2011 1:54 PM, Jered Myers wrote: You can create a simple PropertyModel to hold the value your form is trying to set. Here is an example: public Pageextends WebPage { private List letters = Arrays.asList(new String[] {A,B,C })); public String selected =B; public Page() { Form form =new Form(form); DropDownChoice choice=new DropDownChoice(ddc,new PropertyModel(this,selected), letters); } } The example is from: https://cwiki.apache.org/WICKET/dropdownchoice-examples.html. It is missing the generics if you are working in 1.4.x, but it demonstrates the process well. The model object here is the selected string. When the form saves it will set the selected string with the value in the drop down. Ah. I get it. Thank you Jered. As a side question then, does this mean that the example cited in the DropDownChoice javadoc does not work? Because it only did: form.add(new DropDownChoice(site, SITES)); So wouldn't it fail the same way? /jg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Navigation and Adding Panels dynamically.
Thank you Martin, I had a quick look at extension. I will try a small application with it soon. However my requirement are a bit more complex, as I need to load Panels by string. So let's say I have a String called EditUserScreen, then I need to dynamically load this panel. I am not sure yet if the wizard extension can do this, but will try it anyway. If you know something else that can work for these requirements please advice me. On Fri Mar 25,2011 12:37 pm, Martin Grigorov wrote: See Wizard component in wicket-extensions. You'll need custom logic to check whether the previous/next wizard step should be shown to the current user depending on its privileges. On Fri, Mar 25, 2011 at 1:57 AM, Mansour Al Akeel mansour.alak...@gmail.com wrote: I do have the need to implement different screens. Each screen is a Panel that will be displayed when requested from the screens menu. The screen menu should display the items depending on the functionality the user has access to. Can some one point me to an article or a tutorial with similar requirements ? I trully appreciate any help. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Trouble with DropDownChoice
Hi, if you don't provide a model explicitly, a component will try to look up one from its parent components. Most of the time you use a CompoundPropertyModel, in this case the example in the javadoc is valid: form = new Form(form, new CompoundPropertyModel(this)); form.add(new DropDownChoice(selected, letters); Hope this helps Sven On 03/25/2011 08:00 PM, Jim Goodwin wrote: On 3/25/2011 1:54 PM, Jered Myers wrote: You can create a simple PropertyModel to hold the value your form is trying to set. Here is an example: public Pageextends WebPage { private List letters = Arrays.asList(new String[] {A,B,C })); public String selected =B; public Page() { Form form =new Form(form); DropDownChoice choice=new DropDownChoice(ddc,new PropertyModel(this,selected), letters); } } The example is from: https://cwiki.apache.org/WICKET/dropdownchoice-examples.html. It is missing the generics if you are working in 1.4.x, but it demonstrates the process well. The model object here is the selected string. When the form saves it will set the selected string with the value in the drop down. Ah. I get it. Thank you Jered. As a side question then, does this mean that the example cited in the DropDownChoice javadoc does not work? Because it only did: form.add(new DropDownChoice(site, SITES)); So wouldn't it fail the same way? /jg - 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: setObject with invisible panel
Hi, you'll have to send all values to the server via form submit, e.g. by using an AjaxSubmitLink. This will trigger processing of the whole form though. Sven On 03/25/2011 06:26 PM, Jered Myers wrote: I have a form with a section that the user can show or hide via an AjaxLink. The AjaxLink is hiding and showing using Component.isVisible(boolean). When the user expands the section of the form, enters data, collapses the section of the form, and then saves, I lose the edits the user makes. Is there a way to keep the edits without having to change my AjaxLink to just manipulate the display style attribute? The hide/show section of the form starts hidden so it doesn't need to load from the DB until the LoadableDetachableModel attaches and I would lose that if I only manipulate the style attribute. Jered Myers - 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: Apache Wicket Cookbook Published!
Excellent! I'll buy it in a week max! Are there a lot of complex graphics or is it suitable to read it in a BW e-book reader in pdf format? Actually, I think I'll buy both format but you know... Regards, Pierre On Fri, Mar 25, 2011 at 6:52 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Congrats. I trust Igor -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, March 25, 2011 1:44 PM To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org Subject: Apache Wicket Cookbook Published! For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the
StatelessForm redirect
Hello, I built a stateless website using Bookmarkable pages and links. I have a base page with a search form (StatelessForm) which all the other pages (bookmarkable) extend to share this form and some other tabs (Home, Links, etc). My problem is that if this search box is on AbcPage or XyzPage, on submit the pageparameters are forwarded to AbcPage first and then redirected to SearchResultsPage. But, since pageparameters validation fails on AbcPage/XyzPage, I get an exception and the further redirect gives an error too. Is there a way to go straight to SearchResultsPage without going through the current AbcPage? I am using latest wicket distribution (apache-wicket-1.4.16). I have been trying to figure out this for days, so I would really appreciate any help! HTML --- Search: Advanced Search Java --- final StatelessForm form = new StatelessForm(Search, new CompoundPropertyModel(fSearch)) { @Override protected void onSubmit() { if(sLogger.isInfoEnabled()) { sLogger.info(fSearch.toString()); } setResponsePage(SearchResultsPage.class, fSearch.toPageParameters()); //setRedirect(false); } }; // Add the search box to the form form.add(new TextField(SearchValue)); form.add(new BookmarkablePageLink(advancedSearch, AdvancedSearchPage.class)); fParentComponent.add(form); Webpage ERROR: HTTP Status 404 - type Status report message description The requested resource () is not available. Server ERROR: 2011-03-25 12:53:51.0349 ERROR http-8080-3 index.AbcPage - Exception java.lang.NullPointerException at index.AbcPage.validateParams(AbcPage.java:258) at index.AbcPage.(AbcPage.java:86) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:188) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:306) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:321) at org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:126) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1241) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1320) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) I tried mounting the page and supplying the url in action attribute but that didn't work either. Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/StatelessForm-redirect-tp3406282p3406282.html Sent from the Users forum 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: Apache Wicket Cookbook Published!
there are some graphics, but most of them are small and should look ok in a reader. i havent tried it in my kindle yet. -igor On Fri, Mar 25, 2011 at 1:00 PM, Pierre Goupil goupilpie...@gmail.com wrote: Excellent! I'll buy it in a week max! Are there a lot of complex graphics or is it suitable to read it in a BW e-book reader in pdf format? Actually, I think I'll buy both format but you know... Regards, Pierre On Fri, Mar 25, 2011 at 6:52 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Congrats. I trust Igor -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, March 25, 2011 1:44 PM To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org Subject: Apache Wicket Cookbook Published! For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons
Re: Apache Wicket Cookbook Published!
Looking forward to reading it! My copy is in the mail. On 25/03/2011 1:44 PM, Igor Vaynberg wrote: For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the next level this book is for you. Cheers, and I hope you enjoy the book! -Igor - 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: Apache Wicket Cookbook Published!
Thx! Got it, and it is well done. Cheers, Matthias -- http://matthiasgasser.com Am 25.03.2011 um 22:17 schrieb Bertrand Guay-Paquet: Looking forward to reading it! My copy is in the mail. On 25/03/2011 1:44 PM, Igor Vaynberg wrote: For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the next level this book is for you. Cheers, and I hope you enjoy the book! -Igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Apache Wicket Cookbook Published!
Looks as good as any PDF on the Kindle. I've been looking forward to this, thanks Igor! Regards - Cemal jWeekend Training, Consulting, Development http://jWeekend.com On 25 March 2011 20:47, Igor Vaynberg igor.vaynb...@gmail.com wrote: there are some graphics, but most of them are small and should look ok in a reader. i havent tried it in my kindle yet. -igor On Fri, Mar 25, 2011 at 1:00 PM, Pierre Goupil goupilpie...@gmail.com wrote: Excellent! I'll buy it in a week max! Are there a lot of complex graphics or is it suitable to read it in a BW e-book reader in pdf format? Actually, I think I'll buy both format but you know... Regards, Pierre On Fri, Mar 25, 2011 at 6:52 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Congrats. I trust Igor -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, March 25, 2011 1:44 PM To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org Subject: Apache Wicket Cookbook Published! For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and
Re: Apache Wicket Cookbook Published!
Congratulations on the book! My dead-tree format is in the post! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406621.html Sent from the Users forum 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: Apache Wicket Cookbook Published!
Gratulations! I ordered one. Attila 2011/3/25 Igor Vaynberg igor.vaynb...@gmail.com For the past nine months I have been quietly working on a book about Wicket...
Re: PackageResourceReference, MetaInfStaticResourceReference and timestamps
2011/3/25 mzem...@osc.state.ny.us Hi, I made a new test (serving a png and a js) with current trunk and the gap is much smaller now: tomcat is 25% faster on average. Attila Attila can you elaborate on your tests? Are you comparing the difference between using a resource reference (js) and image component (png) in wicket vs linking straight the to the files in html? If so, what relevance does whether the static files are in META-INF or WEB-INF have? Not that much because if I am correct the extra overhead is introduced by having wicket process the resource and spit out the markup... Hi! In speed test I compared the serving time of the static resources directly (and not the rendering time of the url-s in the wicket page or the page itself). With jmeter I calculated the average time for serving 20k times the same resource trough Servlet 3.0 meta and trough wicket. Attila
Re: Apache Wicket Cookbook Published!
Congrats!! I will order mine! On Fri, Mar 25, 2011 at 7:48 PM, Attila Király [via Apache Wicket] ml-node+3406630-1722189058-65...@n4.nabble.com wrote: Gratulations! I ordered one. Attila 2011/3/25 Igor Vaynberg [hidden email]http://user/SendEmail.jtp?type=nodenode=3406630i=0by-user=t For the past nine months I have been quietly working on a book about Wicket... -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406630.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) --Anyone who has never made a mistake has never tried anything new.-- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406733.html Sent from the Users forum 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: Apache Wicket Cookbook Published!
Another baby, congrats! Eelco On Fri, Mar 25, 2011 at 10:44 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the next level this book is for you. Cheers, and I hope you enjoy the book! -Igor - 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:
Re: Apache Wicket Cookbook Published!
Congrats! Bought a copy -- glad to see that the merchant vendor is Royal Bank of Scotland. Scotland the Brave! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406765.html Sent from the Users forum 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: Apache Wicket Cookbook Published!
purchased! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406821.html Sent from the Users forum 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: Apache Wicket Cookbook Published!
I had the privilege of previewing the book's content over the past few months, and I can tell you that this book is going to be worth every penny and then some! I'd recommend it for every Wicket develop out there - even if you think you've already done it all. I guarantee you'll pick up a trick or two - I did! -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* On Fri, Mar 25, 2011 at 1:44 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: For the past nine months I have been quietly working on a book about Wicket. Unlike other books on the market this one does not attempt to teach you Wicket from the ground up. Instead, it is for developers who already know the basics and want to learn how to implement some of the more advanced use cases. Essentially, it contains recipes that show the reader how to implement solutions to some of, what I think are, the most commonly asked questions and stumbling blocks. This morning I was informed that the book has been published! You can read more about it and pick up a copy on PACKT's Site[1]. I hope you enjoy it, more details below... [1] https://www.packtpub.com/apache-wicket-cookbook/book ## Description ## Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities. Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems. You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler. A straightforward Cookbook with highly focused practical recipes to make your web application development easier with the Wicket web framework ## What you will learn from this book ## * Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point * Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing * Simplify localizing your Wicket applications * Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time * Leverage the built-in Table component to make displaying tabular data a snap * Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things * See how to integrate with Flash components and create interactive charts at the same time * Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0 * Simplify your security code by learning various security techniques * An application cannot be built with Wicket alone; see how to make it play nice with other frameworks ## Approach ## This is a hands-on practical guide to a large variety of topics and use cases. This book tries to use real-world examples when possible, but is not afraid to come up with a contrived pretext if it makes explaining the problem simpler. Unlike a lot of other books, this one does not try to maintain a continuous theme from chapter to chapter, such as demonstrating solutions on the same fictional application; doing so would be almost impossible given the wide variety of recipes presented here. Instead, this book concentrates on focused problems users are likely to encounter and shows clear solutions in a step-by-step manner. This book tries to teach by example and is not afraid to show a lot of code because, after all, it is for coders. ## Who this book is written for ## This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the next level this book is for you. Cheers, and I hope you enjoy the book! -Igor
Ajax Submit Link and detect if that button clicked
I was having trouble detecting if a particular ajax submit link was the last behavior associated with a form submission. I tried to use the findSubmittingButton (or whatever the name is) and that was always returning null. I used this approach and it works, but doesn't seem intuitintive and I wonder if there is a better way. final String lastURL = form.getWebRequest().getURL(); return (lastURL.indexOf(nextLink) != -1); or whatever the link is in the URL.