Re: Mounting a parameter on the root url crashes resource location wicket
Hi, /wicket is nothing special. Every application can use it for its own needs. The problem is that your mount path would match anything. Even '/something/that/do/not/exist'. There are several solutions. Here is one of them: Override MountedMapper#urlStartsWithMountedSegments(Url url) to return 'true' only if the url has a single segment (the username) MyApp.mount(new MountedMapper(/${username}, ProfilePage.class) { @Override protected boolean urlStartsWithMountedSegments(Url url) {return url.getSegments().size() == 1;} }) Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 7, 2015 at 10:33 PM, wiseguy2 folarinomotorio...@gmail.com wrote: In a social network, that seems redundant especially when users will be sharing the links on other platforms. Is it not possible for wicket to treat the /wicket/* urls differently with a separate filter so that mounting a parameter in root doesnt collapse resource resoclution? This is where the problem lies. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-a-parameter-on-the-root-url-crashes-resource-location-wicket-tp4670175p4670217.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
FormComponentPanel and propagating model value to components
Hi all, I have a FormComponentPanel. Is it okay if I set its components models using a behavior that overrides onConfigure() as below? public class MyFormComponentPanel extends FormComponentPanel { protected void onInitialize() { super.onInitialize(); componentA = new TextField... componentA.add(new Behavior() { @Override public void onConfigure(Component component) { componentA.setModel(...); } }); } thanks
Re: FormComponentPanel and propagating model value to components
Hi, quite unusal to me using a behavior to set a model. Why dont you delegate to your inner textfiled by implementing an own setXYZModel()-method? Or bind your inner textfield direct by providing a particular model in your Constructor of your custom MyFormComponentPanel? And no onInitialize()-method... public class MyFormComponentPanel extends FormComponentPanel { public MyFormComponentPanel(IModel myModel){ add(new TextField(id, myModel)); } } (add generics if needed) Patrick Am 08.04.2015 um 09:27 schrieb mscoon: Hi all, I have a FormComponentPanel. Is it okay if I set its components models using a behavior that overrides onConfigure() as below? public class MyFormComponentPanel extends FormComponentPanel { protected void onInitialize() { super.onInitialize(); componentA = new TextField... componentA.add(new Behavior() { @Override public void onConfigure(Component component) { componentA.setModel(...); } }); } thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Mounting a parameter on the root url crashes resource location wicket
This is what I was looking for. A way to tell the url segments apart. Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-a-parameter-on-the-root-url-crashes-resource-location-wicket-tp4670175p4670220.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
AutoComplete suggestion list disappear when I click on scrollbar in IE
Hi, I am using Wicket's(version ) AutoCompleteTextField in my application to a form component, when I type something I will get the suggestion list, the suggestion list container width is 300px, so when the text inside the container exceeds the width of the container, we will get a horizontal scroll bar for the suggestion list, the problem is when I scroll to view the text the suggestion list is disappearing. This happens in all IE browser versions IE8, IE9, IE10 and IE11. I am using wicket version 6.19. I have attached the image to show suggestion list with scroll bar. http://apache-wicket.1842946.n4.nabble.com/file/n4670222/autocompleteScroll.png Regards Ramesh V. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoComplete-suggestion-list-disappear-when-I-click-on-scrollbar-in-IE-tp4670222.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