Re: categorizing checks in a checkgroup
Hi Martin, Thank you for the hint, you're completely right it would be much better as a span or wicket:container although it did work as a wicket:enclosure. I've changed it and it works fine, Thanks once again, Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/categorizing-checks-in-a-checkgroup-tp4671586p4671591.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: categorizing checks in a checkgroup
Hello, In the end I managed to do this. I found following presentation on how to do a bean editor: https://londonwicket.googlecode.com/files/LondonWicket-BeanEditor.pdf And using that and a few other things I done in the past came up with the following: the html was: and then the getGridViewWithCheckGroups(String,CheckGroup,PropertyTypeFeatureGroup) implementation was roughly: I hope that helps someone else in the future, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/categorizing-checks-in-a-checkgroup-tp4671586p4671587.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: categorizing checks in a checkgroup
Hi Simon, I pretty sure you don't want to use an enclosure for: wicket:enclosure wicket:id=labeldisplay value/wicket:enclosure Better use either a span (with label.setRenderBodyOnly(true)) or wicket:container. Martin Grigorov Freelancer. Available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jul 13, 2015 at 10:33 AM, Simon B simon.bott...@gmail.com wrote: Hello, In the end I managed to do this. I found following presentation on how to do a bean editor: https://londonwicket.googlecode.com/files/LondonWicket-BeanEditor.pdf And using that and a few other things I done in the past came up with the following: the html was: and then the getGridViewWithCheckGroups(String,CheckGroup,PropertyTypeFeatureGroup) implementation was roughly: I hope that helps someone else in the future, Cheers Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/categorizing-checks-in-a-checkgroup-tp4671586p4671587.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: wicket-annotations and page mounting
Hi, AFAIK this is not possible, you must mount your pages using a path parameter (something like: 'summary/${account}'). andrea. On 10/07/2015 18:51, Jason Novotny wrote: Hi, I'm using wicket-annotations and I've added: newAnnotatedMountScanner().scanPackage(com.foo.web.pages).mount(this); in my Application class. My page classes all have: @MountPath(value =summary) However, I want to adjust the pages to not use query parameters like account=5 and use / like account/5 instead. Is there a way to set this across the app, just like scanPackage, or do I have to set this on each page in my application? I'm using latest Wicket 6. Thanks, Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-annotations and page mounting
Hi, You should use a modified AnnotatedMountScanner. Its getRequestMapper() should return new MountedMapper(mountPath, pageClass, new UrlPathPageParametersEncoder()); Looking at the code [1] it should work for #scanPackage() too. 1. https://github.com/wicketstuff/core/blob/master/jdk-1.7-parent/annotation/src/main/java/org/wicketstuff/annotation/scan/AnnotatedMountScanner.java#L250 Martin Grigorov Freelancer. Available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 10, 2015 at 7:51 PM, Jason Novotny jason.novo...@gmail.com wrote: Hi, I'm using wicket-annotations and I've added: newAnnotatedMountScanner().scanPackage(com.foo.web.pages).mount(this); in my Application class. My page classes all have: @MountPath(value =summary) However, I want to adjust the pages to not use query parameters like account=5 and use / like account/5 instead. Is there a way to set this across the app, just like scanPackage, or do I have to set this on each page in my application? I'm using latest Wicket 6. Thanks, Jason