Re: Modify items in quickview?
hi, actually your workaround is the right way.there is no setter method for dataprovider in quickview. even in dataview there is none.this is to depict dataprovider can only be provided at construction time either by providing it in constructor or by overriding getter for dataprovider.. actually quickview supports both reconstructing view on complete re-render and partial adding/removing of items when abstractitemsnavigationstrategy implementations like itemsnavigationstrategy or reuseallstrategy is used.. regards, Vineet Semwal
Re: a little question about add(new XComponent(id).setVisible(false))
i think what you need is onbeforerender() and not oninintialize, before rendering visibility is determined( if curious check the source in component#internalbeforer()) , also i am assuming when you will create/add 100 labels,you will use a repeater like dataview/listview which creates and adds items in onbeforerender so if your repeater is not visible, the items/children (and your labels) will not be created/rendered ... On Mon, Dec 16, 2013 at 7:26 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi First, the scenario (a simplified version): I have a XPage (extends WebPage) and in the constructor of this page I want to add a YPanel (extends Panel) but depending on a condition. if (condiiton) { add(new YPanel(panel)); } else { add(new WebMarkupContainer(panel).setVisible(false)); } In fact my scneario is a little complicated, with four children (a CartPage that contains EmptyLabel, CartPanel, LoginPanel, CheckputPanel) and a compund condition (isEmptyCart, isUserLogged) and in this situation my code is verbose and a little spaghetti. The code above resolves my scenario but in my opinion is more readable only a single line add(new YPanel(panel).setVisible(condition)); The solution with a single line is more readable but it has an impediment. For example if in YPanel I want to add 100 labels (hypothetically), I created 100 label only to add nothing if the condition is not satisfied :) The solution is to have a slim constructor for YPanel and to add the children in a method (something like onInitialize) that depends on component visibility. I want something like I know that this component is invisible so don't bother to create the children. I know about the request cycle (not in details) and that it's impossible for now, I know that my issue is a philosophical issue but maybe someone has a good question. Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/a-little-question-about-add-new-XComponent-id-setVisible-false-tp4663041.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 -- regards, Vineet Semwal
Re: Efficient way to update ListView
try https://github.com/vineetsemwal/quickview when you get time also read the below nice article http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ On Sun, Dec 15, 2013 at 4:52 AM, davidh87 da...@confusedherring.com wrote: Hi, Apologies for slight doublepost - I added this to the wrong subforum previously. As I understand it, the method of updating a listview via an Ajax call is to add the listview's container to the AjaxRequestTarget. This is resulting in the entire container being submitted back to the client. The site I'm working on has a panel listing all the users online, and we use websockets to issue updates so that once a new player logs in, the update is pushed to the client and the display is updated. This update is pushed out to all 200 users, so that the users online panel is up-to-date. The update contains the entire panel of players, which is pretty large in size (~80kB of markup). While this markup may be a little large, the issue is that for every user logging in/out, we're doing (80kB * 200) of traffic from the server. With users logging in/out fairly frequently, this gets to be an issue. Is there a more efficient way of wicket only updating/transmitting the items in a ListView that have changed? setReuseItems(true) tells the server not to re-render but the entire thing is submitted over Ajax still. I know there are ways we can get around this by having the Ajax update issue some javascript to add/remove people, but that feels less wicket-y? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Efficient-way-to-update-ListView-tp4663022.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 -- thank you, regards, Vineet Semwal
Re: Component detecting Ajax update
see AjaxRequestTarget#getComponents() On Fri, Nov 1, 2013 at 7:15 PM, Nick Pratt nbpr...@gmail.com wrote: Is there a way for a Component to detect if its been added to an AjaxRequestTarget? N -- regards, Vineet Semwal
Re: Focus element in a list from ajax
try target.focusComponent(listview.get(listview.size()-1).get(name)) ; On Sat, Sep 21, 2013 at 1:21 AM, Anatoly Kupriyanov kan@gmail.comwrote: A have a list model IModelListSomething model; the list is displayed as a simple grid table PropertyListView, each line is a set of controls to edit Something. @Override public void populateItem(final ListItemSomething listItem) { listItem.add(new TextField(name)); listItem.add(new TextField(value)); } There is an a addNew ajax button below the table which adds a new element in the model's list: public void onClick(final AjaxRequestTarget target) { final ListSomething list = model.getObject(); list.add(new Something()); target.add(listViewContainer);// repaint the list view target.focusComponent(??); // Focus name textbox. } After the button click I want to set focus to the one of controls in the new line appeared. How to do it? Wicket 6.10.0 -- WBR, Anatoly. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal
Re: AbstractRequestCycleListener redirect
try this approach.. throw your custom exception after the checks and catch the exception in onexception and then redirect .. On Mon, Aug 12, 2013 at 4:30 PM, Evgheni Emelianov e.emelia...@gmx.netwrote: i did, but the error comes event without, do you have any advice for me how i can implement redirect in this listener? Evgheni - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal
Re: Unknown tag name with Wicket namespace: 'panel'
Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is registering the panel tagname so i don't know what is registering it but it's getting registered ,i tried looking a bit at code but could not find it .. On Tue, May 14, 2013 at 5:18 PM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, May 14, 2013 at 9:51 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi Vineet, On Mon, May 13, 2013 at 11:09 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the Panel class gets loaded, the Panel class will get loaded by PanelMarkupSourcingStrategy itself You are correct. I have no idea why it failed for Andy the first time. Now I realize what happens. The usage of Panel.PANEL is inlined in PanelMarkupSourcingStrategy at compile time, i.e. its String value is put in the place of the constant. That's why it doesn't trigger the static initializer. since it's referring a constant of panel . yes but i agree not a very nice code flow so should be improved ,i always used to think they are doing this in a very weird way :-) On Tue, May 14, 2013 at 1:48 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Mon, May 13, 2013 at 10:02 PM, Paul Bors p...@bors.ws wrote: Get rid of your newMarkupSourcingStrategy() override and place the HTML right next to the Java source code and you'll be fine. This will not work because usually Link component has no its own markup file. See Panel.java. It has: static { // register wicket:panel WicketTagIdentifier.registerWellKnownTagName(PANEL); } Just add this to your class and it should work. I think this is a bug in Wicket though - this piece of code should be executed by PanelMarkupSourcingStrategy, not by Panel itself. Feel free to file a bug report. If you do not like the default location of the HTML next to your Java classes, then read Chapter 4 of the Wicket user guide you can get for free from wicket's website at: http://wicket.apache.org/learn/books/ ~ Thank you, Paul Bors -Original Message- From: Andy Van Den Heuvel [mailto:andy.vandenheu...@gmail.com] Sent: Monday, May 13, 2013 2:04 PM To: users@wicket.apache.org Subject: Unknown tag name with Wicket namespace: 'panel' I get an exception and it's not very clear to me what I'm doing wrong. This is the exception: Last cause: Unknown tag name with Wicket namespace: 'panel'. Might be you haven't installed the appropriate resolver? 'wicket:panel' (line 3, column 2) I'm trying to override the markupSourcingStrategy because i want this class to have it's own html file. Anybody an idea? I use wicket-core 6.7.0. This is my java file: public class ExtBookMarkablePageLinkT extends BookmarkablePageLinkT { private final Component label; public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass) { this(id, pageClass, new PageParameters()); } public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass, final PageParameters parameters) { super(id, pageClass, parameters); add(label = newLabel(label)); } protected Component newLabel(final String markupId) { return new Label(markupId, new ModelString()).setRenderBodyOnly(true); } @Override protected IMarkupSourcingStrategy newMarkupSourcingStrategy() { return new PanelMarkupSourcingStrategy(true); } public ExtBookMarkablePageLinkT setLabel(IModel? label) { this.label.setDefaultModel(label); return this; } } and this my html file: !doctype html html xmlns:wicket=http://wicket.apache.org; wicket:panel span wicket:id=label/span /wicket:panel /html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/ -- regards, Vineet Semwal -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/ -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/ -- regards, Vineet Semwal
Re: Unknown tag name with Wicket namespace: 'panel'
also why is well known tagnames getting registered and why are not they just kept at start itself,they are just strings ,registering only makes sense for the new tags in my opinion.. On Tue, May 14, 2013 at 6:45 PM, vineet semwal vineetsemwa...@gmail.comwrote: Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is registering the panel tagname so i don't know what is registering it but it's getting registered ,i tried looking a bit at code but could not find it .. On Tue, May 14, 2013 at 5:18 PM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, May 14, 2013 at 9:51 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi Vineet, On Mon, May 13, 2013 at 11:09 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the Panel class gets loaded, the Panel class will get loaded by PanelMarkupSourcingStrategy itself You are correct. I have no idea why it failed for Andy the first time. Now I realize what happens. The usage of Panel.PANEL is inlined in PanelMarkupSourcingStrategy at compile time, i.e. its String value is put in the place of the constant. That's why it doesn't trigger the static initializer. since it's referring a constant of panel . yes but i agree not a very nice code flow so should be improved ,i always used to think they are doing this in a very weird way :-) On Tue, May 14, 2013 at 1:48 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Mon, May 13, 2013 at 10:02 PM, Paul Bors p...@bors.ws wrote: Get rid of your newMarkupSourcingStrategy() override and place the HTML right next to the Java source code and you'll be fine. This will not work because usually Link component has no its own markup file. See Panel.java. It has: static { // register wicket:panel WicketTagIdentifier.registerWellKnownTagName(PANEL); } Just add this to your class and it should work. I think this is a bug in Wicket though - this piece of code should be executed by PanelMarkupSourcingStrategy, not by Panel itself. Feel free to file a bug report. If you do not like the default location of the HTML next to your Java classes, then read Chapter 4 of the Wicket user guide you can get for free from wicket's website at: http://wicket.apache.org/learn/books/ ~ Thank you, Paul Bors -Original Message- From: Andy Van Den Heuvel [mailto:andy.vandenheu...@gmail.com] Sent: Monday, May 13, 2013 2:04 PM To: users@wicket.apache.org Subject: Unknown tag name with Wicket namespace: 'panel' I get an exception and it's not very clear to me what I'm doing wrong. This is the exception: Last cause: Unknown tag name with Wicket namespace: 'panel'. Might be you haven't installed the appropriate resolver? 'wicket:panel' (line 3, column 2) I'm trying to override the markupSourcingStrategy because i want this class to have it's own html file. Anybody an idea? I use wicket-core 6.7.0. This is my java file: public class ExtBookMarkablePageLinkT extends BookmarkablePageLinkT { private final Component label; public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass) { this(id, pageClass, new PageParameters()); } public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass, final PageParameters parameters) { super(id, pageClass, parameters); add(label = newLabel(label)); } protected Component newLabel(final String markupId) { return new Label(markupId, new ModelString()).setRenderBodyOnly(true); } @Override protected IMarkupSourcingStrategy newMarkupSourcingStrategy() { return new PanelMarkupSourcingStrategy(true); } public ExtBookMarkablePageLinkT setLabel(IModel? label) { this.label.setDefaultModel(label); return this; } } and this my html file: !doctype html html xmlns:wicket=http://wicket.apache.org; wicket:panel span wicket:id=label/span /wicket:panel /html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/ -- regards, Vineet Semwal -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/ -- Martin Grigorov Wicket Training
Re: Unknown tag name with Wicket namespace: 'panel'
i have just created issue https://issues.apache.org/jira/browse/WICKET-5189 thank you ! On Tue, May 14, 2013 at 7:15 PM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, May 14, 2013 at 3:28 PM, vineet semwal vineetsemwa...@gmail.com wrote: also why is well known tagnames getting registered and why are not they just kept at start itself,they are just strings ,registering only makes sense for the new tags in my opinion.. Agreed. We can pre-register all known tags like: panel, border, head, container, etc. No need to do this lazily. org.apache.wicket.markup.parser.filter.WicketTagIdentifier#wellKnownTagNames is a static HashSetString. It won't be too much memory consumption. Please file a ticket. On Tue, May 14, 2013 at 6:45 PM, vineet semwal vineetsemwa...@gmail.com wrote: Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is registering the panel tagname so i don't know what is registering it but it's getting registered ,i tried looking a bit at code but could not find it .. On Tue, May 14, 2013 at 5:18 PM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, May 14, 2013 at 9:51 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi Vineet, On Mon, May 13, 2013 at 11:09 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the Panel class gets loaded, the Panel class will get loaded by PanelMarkupSourcingStrategy itself You are correct. I have no idea why it failed for Andy the first time. Now I realize what happens. The usage of Panel.PANEL is inlined in PanelMarkupSourcingStrategy at compile time, i.e. its String value is put in the place of the constant. That's why it doesn't trigger the static initializer. since it's referring a constant of panel . yes but i agree not a very nice code flow so should be improved ,i always used to think they are doing this in a very weird way :-) On Tue, May 14, 2013 at 1:48 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Mon, May 13, 2013 at 10:02 PM, Paul Bors p...@bors.ws wrote: Get rid of your newMarkupSourcingStrategy() override and place the HTML right next to the Java source code and you'll be fine. This will not work because usually Link component has no its own markup file. See Panel.java. It has: static { // register wicket:panel WicketTagIdentifier.registerWellKnownTagName(PANEL); } Just add this to your class and it should work. I think this is a bug in Wicket though - this piece of code should be executed by PanelMarkupSourcingStrategy, not by Panel itself. Feel free to file a bug report. If you do not like the default location of the HTML next to your Java classes, then read Chapter 4 of the Wicket user guide you can get for free from wicket's website at: http://wicket.apache.org/learn/books/ ~ Thank you, Paul Bors -Original Message- From: Andy Van Den Heuvel [mailto:andy.vandenheu...@gmail.com] Sent: Monday, May 13, 2013 2:04 PM To: users@wicket.apache.org Subject: Unknown tag name with Wicket namespace: 'panel' I get an exception and it's not very clear to me what I'm doing wrong. This is the exception: Last cause: Unknown tag name with Wicket namespace: 'panel'. Might be you haven't installed the appropriate resolver? 'wicket:panel' (line 3, column 2) I'm trying to override the markupSourcingStrategy because i want this class to have it's own html file. Anybody an idea? I use wicket-core 6.7.0. This is my java file: public class ExtBookMarkablePageLinkT extends BookmarkablePageLinkT { private final Component label; public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass) { this(id, pageClass, new PageParameters()); } public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass, final PageParameters parameters) { super(id, pageClass, parameters); add(label = newLabel(label)); } protected Component newLabel(final String markupId) { return new Label(markupId, new ModelString()).setRenderBodyOnly(true); } @Override protected IMarkupSourcingStrategy newMarkupSourcingStrategy() { return new PanelMarkupSourcingStrategy(true
Re: Unknown tag name with Wicket namespace: 'panel'
On Tue, May 14, 2013 at 6:45 PM, vineet semwal vineetsemwa...@gmail.comwrote: Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is registering the panel tagname so i don't know what is registering it but it's getting registered ,i tried looking a bit at code but could not find it .. actually later yesterday i was able to reproduce the problem in a pure quickstart ,earlier i was testing on some test project where i test/experiment odd things,something there was registering the panel tagname ,i also realized that corresponding issue was created and fixed so all is well :-)
Re: Unknown tag name with Wicket namespace: 'panel'
see link#setbody(model) ,i think this is what you are trying to do :-) else that should be PanelMarkupSourcingStrategy(*false*) On Mon, May 13, 2013 at 11:33 PM, Andy Van Den Heuvel andy.vandenheu...@gmail.com wrote: I get an exception and it's not very clear to me what I'm doing wrong. This is the exception: Last cause: Unknown tag name with Wicket namespace: 'panel'. Might be you haven't installed the appropriate resolver? 'wicket:panel' (line 3, column 2) I'm trying to override the markupSourcingStrategy because i want this class to have it's own html file. Anybody an idea? I use wicket-core 6.7.0. This is my java file: public class ExtBookMarkablePageLinkT extends BookmarkablePageLinkT { private final Component label; public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass) { this(id, pageClass, new PageParameters()); } public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass, final PageParameters parameters) { super(id, pageClass, parameters); add(label = newLabel(label)); } protected Component newLabel(final String markupId) { return new Label(markupId, new ModelString()).setRenderBodyOnly(true); } @Override protected IMarkupSourcingStrategy newMarkupSourcingStrategy() { return new PanelMarkupSourcingStrategy(true); } public ExtBookMarkablePageLinkT setLabel(IModel? label) { this.label.setDefaultModel(label); return this; } } and this my html file: !doctype html html xmlns:wicket=http://wicket.apache.org; wicket:panel span wicket:id=label/span /wicket:panel /html -- regards, Vineet Semwal
Re: Unknown tag name with Wicket namespace: 'panel'
hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the Panel class gets loaded, the Panel class will get loaded by PanelMarkupSourcingStrategy itself since it's referring a constant of panel . yes but i agree not a very nice code flow so should be improved ,i always used to think they are doing this in a very weird way :-) On Tue, May 14, 2013 at 1:48 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Mon, May 13, 2013 at 10:02 PM, Paul Bors p...@bors.ws wrote: Get rid of your newMarkupSourcingStrategy() override and place the HTML right next to the Java source code and you'll be fine. This will not work because usually Link component has no its own markup file. See Panel.java. It has: static { // register wicket:panel WicketTagIdentifier.registerWellKnownTagName(PANEL); } Just add this to your class and it should work. I think this is a bug in Wicket though - this piece of code should be executed by PanelMarkupSourcingStrategy, not by Panel itself. Feel free to file a bug report. If you do not like the default location of the HTML next to your Java classes, then read Chapter 4 of the Wicket user guide you can get for free from wicket's website at: http://wicket.apache.org/learn/books/ ~ Thank you, Paul Bors -Original Message- From: Andy Van Den Heuvel [mailto:andy.vandenheu...@gmail.com] Sent: Monday, May 13, 2013 2:04 PM To: users@wicket.apache.org Subject: Unknown tag name with Wicket namespace: 'panel' I get an exception and it's not very clear to me what I'm doing wrong. This is the exception: Last cause: Unknown tag name with Wicket namespace: 'panel'. Might be you haven't installed the appropriate resolver? 'wicket:panel' (line 3, column 2) I'm trying to override the markupSourcingStrategy because i want this class to have it's own html file. Anybody an idea? I use wicket-core 6.7.0. This is my java file: public class ExtBookMarkablePageLinkT extends BookmarkablePageLinkT { private final Component label; public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass) { this(id, pageClass, new PageParameters()); } public C extends Page ExtBookMarkablePageLink(String id, ClassC pageClass, final PageParameters parameters) { super(id, pageClass, parameters); add(label = newLabel(label)); } protected Component newLabel(final String markupId) { return new Label(markupId, new ModelString()).setRenderBodyOnly(true); } @Override protected IMarkupSourcingStrategy newMarkupSourcingStrategy() { return new PanelMarkupSourcingStrategy(true); } public ExtBookMarkablePageLinkT setLabel(IModel? label) { this.label.setDefaultModel(label); return this; } } and this my html file: !doctype html html xmlns:wicket=http://wicket.apache.org; wicket:panel span wicket:id=label/span /wicket:panel /html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/ -- regards, Vineet Semwal
Re: Ajax call of textfield after pressing the Enter key
hi, just minor correction, enter key is 13 .. On Sat, Apr 27, 2013 at 11:34 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Sat, Apr 27, 2013 at 12:31 AM, Andre Schütz wic...@faustas.de wrote: Hello, I tried to find out how I can make a Ajax call from a textfield after pressing the Enter key. I want to reach the following: - The user types a name into the textfield - After pressing the Enter key, the value of the textfield will be processed on the server side I tried AjaxFormSubmitBehavior and AjaxFormComponentUpdatingBehavior without success. Can anyone help me with an example? Both behaviors will do the job. You should listen on keypress or keyup event and you should have a AjaxCallListener precondition that checks that the pressed key is Enter (Wicket.Event.keyCode(attrs.event) === 27) -- Andre Schütz wic...@faustas.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/ -- regards, Vineet Semwal
Re: wicket:extend Not Showing in Parent
it will show up when you will load FileSubPage :-) On Wed, Apr 24, 2013 at 9:52 PM, dhongyt davidhtr...@gmail.com wrote: I've been reading up on markup inheritance and believe I understand it correctly but its not quite working for me. My HomePage.html has the wicket:child/ tag And I have extended the FileSubPage.java to HomePage.java. Also added the wicket:extend to the FileSubPage What is it that when my HomePage loads, TEST does not show up after my forms? Am I missing an add in my HomePage.java? I thought markup inheritance will just add the child into the parent automatically? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-extend-Not-Showing-in-Parent-tp4658243.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 -- regards, Vineet Semwal
Re: wicket:extend Not Showing in Parent
no i didn't mean loading through HomePage,i meant you are expecting on HomePage which is wrong since the extended page is FileSubPage it will show on extened page and not basepage,think it in this way it can't be shown on HomePage because baseclass has no knowledge of extended class FileSubPage so it can't show anything which you did in subclass . On Wed, Apr 24, 2013 at 11:25 PM, dhongyt davidhtr...@gmail.com wrote: Do you mean loading it via the HomPage.java How do I load FileSubPage.java? I did a setResponsePage and ended up getting a redirection loop. Thanks! David -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-extend-Not-Showing-in-Parent-tp4658243p4658249.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 -- regards, Vineet Semwal
Re: [6.7] How to set header of DynamicImageResource ?
as far as i can see this is the default behavior for DynamicImageResource so you don't need it ,other wise call disableCaching() , i don't remember 1.4 now but you can have your isNotCachable() ,it's very simple check if getCacheduration is none/zero else there is boolean dataNeedsToBeWritten(attributes) On Wed, Apr 24, 2013 at 9:24 PM, smallufo small...@gmail.com wrote: Hi : I wonder how to set header of DynamicImageResource ? In 1.4 , it just override setHeaders(WebResponse response) { response.setHeader(Cache-Control , no-cache); } But , how to do this in 6.7 ? If I override setResponseHeaders(ResourceResponse data , Attributes attributes) , It seems there are two ways to setHeader : data.getHeaders().addHeader(Cache-Control, no-cache); and ((WebResponse) attributes.getResponse()).addHeader(Cache-Control , no-cache); Which is correct ? And... in 1.4 , there is an isCacheable() method , where is it in 6.7 ? Thanks . -- regards, Vineet Semwal
Re: wicket:extend Not Showing in Parent
yes you are looking at it wrong,you are asking/requesting for RepeatingPage which extends BasePage ,you are not requesting for BasePage itself ,now apply the same logic in your case .. On Thu, Apr 25, 2013 at 12:42 AM, dhongyt davidhtr...@gmail.com wrote: So if I want FileSubPage to show up on HomePage I have to put all the code and markup from FileSubPage on HomePage? Its confusing because the way the wicket example shows repeaters http://www.wicket-library.com/wicket-examples-6.0.x/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.RepeatingPage?0 You can see that the table is a extend to the BasePage. They didn't do anything special and it shows up on the BasePage automatically? Or am I looking at this wrong? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-extend-Not-Showing-in-Parent-tp4658243p4658251.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 -- regards, Vineet Semwal
Re: [6.7] How to set header of DynamicImageResource ?
both does the same thing ,however there are some internal headers so take a look at them in AbstractResource,if your header is one of those you can't use it manually On Thu, Apr 25, 2013 at 1:24 AM, smallufo small...@gmail.com wrote: Hi I just take Cache-Control:no-cache for example. What if I want to add additional header information, which is correct ? data.getHeaders().addHeader(key, value); ? or ((WebResponse) attributes.getResponse()).addHeader(key , value); ? Thanks. -- regards, Vineet Semwal
Re: [6.7] How to set header of DynamicImageResource ?
adding header in data.getHeaders() appears better to me according to code flow in AbstractResource On Thu, Apr 25, 2013 at 2:15 AM, vineet semwal vineetsemwa...@gmail.comwrote: both does the same thing ,however there are some internal headers so take a look at them in AbstractResource,if your header is one of those you can't use it manually On Thu, Apr 25, 2013 at 1:24 AM, smallufo small...@gmail.com wrote: Hi I just take Cache-Control:no-cache for example. What if I want to add additional header information, which is correct ? data.getHeaders().addHeader(key, value); ? or ((WebResponse) attributes.getResponse()).addHeader(key , value); ? Thanks. -- regards, Vineet Semwal -- regards, Vineet Semwal
Re: User data during request of AuthenticatedWebSession
what Bas said .. also i think it will be better to load data lazily instead of using listener for performance ,pseudocode below just call LazyLoad.getData(cycle,mailId) when there is a need .. public class LazyLoad implements Serializable{ public static final MetaDataKeyUserData KEY= new MetaDataKeyUserData() {}; public static UserData getData(RequestCycle cycle,String mailId){ UserData data=cycle.getMetaData(KEY); if(data!=null){ return data; } data=service.loadData(mailId) ; cycle.setMetaData(KEY,data ); return data; } } On Thu, Apr 25, 2013 at 3:42 AM, Bas Gooren b...@iswd.nl wrote: Andre, Your listener will also be called for resources served by wicket, so my guess is you have 1-7 resources on your page which are served by wicket. E.g. resources you store next to your pages (inside the same java package). So my guess is that you're not seeing multiple hits to onBeginRequest for a single request, but simply multiple requests to wicket. If you only want to handle requests to pages inside your listener, you can do so by overriding onRequestHandlerResolved instead: void onRequestHandlerResolved(**RequestCycle cycle, IRequestHandler handler) { if(handler instanceof IPageClassRequestHandler) { // This is a request to a page, or a component on a page } } Met vriendelijke groet, Kind regards, Bas Gooren Op 24-4-2013 22:34, schreef Andre Schütz: Hello, thank you for the answers. I created my own RequestCycleListener and have another question. public MyRequestCycleListener extends AbstractRequestCycleListener { public onBeginRequest(RequestCycle cycle) { super.onBeginRequest(cycle); MyAuthenticatedSession session = (MyAuthenticatedSession)** Session.get(); if (session.isSignedIn()) { System.out.println(Is signed in); // this is planned // String email = session.getAuthenticatedMail()**; // ObjectId userID = userDAO.getUserID(email); // cycle.setMetaData(userID, userID); } else { System.out.println(Is not signed in); } } } public MyApplication extends AuthenticatedWebApplication { public void init() { super.init(); IRequestCycleListener cycle = new MyRequestCycleListener(); getRequestCycleListener().add(**cycle); } } public MyPage extends WebPage() { public MyPage ... } My question is as follows: I load MyPage and the onBeginRequest method is called multiple times during the load of the page (between 2 and 8 times) and displays the lines Is signed in. I planned to store the email ID of the User in the session and load the User data in the onBeginRequest function of the RequestCycleListener. But ... I only want to load the User data once per request. What do I wrong? Any help? Thanks, Andre On Mon, 22 Apr 2013 11:03:43 +0530 vineet semwal vineetsemwa...@gmail.com wrote: yes,you can store some key in session like emailId and then retrieve and store the user and related data in request cycle metadata ,as you are storing in requestcycle metadata ,scope of the data will be for the whole request only . no need to create your own requestcycle for that,create your requestcycle listener which onbeginrequest stores the user related data in requestcycle metadata On Mon, Apr 22, 2013 at 1:55 AM, Andre Schütz andre-p...@gmx.de wrote: I plan to implement a project with AuthenticatedWebApplication. The users have to sign up for an account. My question is regarding the user data that I have to load during each request of the single pages. The project will be as follows: (1) User logs into the system (2) The dashboard will be loaded (3) The user clicks the menu and gets a different representation of the information I would like to know the following two things: (a) The user registers with his email and a password (The email is unique in the database). I wanted to store the email in the AuthenticatedWebSession and load the desired user data during each request of a WebPage. Would that be a good idea? (b) I read in the documentation about the WebRequestCycle. Would it be useful to implement an own WebRequestCycle for the loading of the user data? I hope to hear some opinions. Thanks in advance. Andre --**--** - To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- regards, Vineet Semwal
Re: Panel resfresh with AjaxRequestTarget
i actually meant improve your B.java in my second post , also yes you can repaint any inner component of B from A and not the whole B by say providing getter of that component so you can repaint just b.getSomeComponent() by adding to AjaxRequestTarget ,you can also replacewith that inner component like you were doing with B before .. On Tue, Apr 23, 2013 at 6:15 PM, souvikbhattacharyas souvikbhattachar...@gmail.com wrote: Hi, Thanks for the suggetion you have given in two posts. With the first one Replace Components I have to create the new object again and creating new object will call lots of web services as written on screen initialize. This will effect the performance of the product. In second one you have suggested to go to B but is that possible to refresh a particular panel only of B from Panel A? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-resfresh-with-AjaxRequestTarget-tp4658145p4658188.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 -- regards, Vineet Semwal
Re: Panel resfresh with AjaxRequestTarget
actually my suggestion is not good for every usecase ,it's not good in the context where you want to preserve old state of B so check if it's ok for you else get into B , see what can be moved in onbeforerender/onconfigure,make your models dynamic.. On Mon, Apr 22, 2013 at 11:13 AM, vineet semwal vineetsemwa...@gmail.comwrote: oninitialize is only called once like constructor,the only advantage is called after component is added to page. the easiest way for you without making any change in B will be replacing the old instance of B with new one see Component#replacewith(newcomponent) On Sun, Apr 21, 2013 at 2:46 PM, souvikbhattacharyas souvikbhattachar...@gmail.com wrote: I am new to wicket and stuck in a Panel refresh problem with AjaxRequestTarget. I am clarifying my scenario below. In the Ui I have a Panel (A) which contains another Panel (B) and B contains some buttons and tables. I Panel A, I have a Event which will refresh My Panel B (Mainly the table in Panel B) with AjaxRequestTarget. On event I am adding Panel B in my AjaxRequestTarget.add() but it's not calling my initialize method in Panel B. So, Panel B is not refreshing properly. It's a existing code so, can't move the event to Panel B. So, need to do something from Panel A itself. Any help is appreciable -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-resfresh-with-AjaxRequestTarget-tp4658145.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 -- regards, Vineet Semwal -- regards, Vineet Semwal
Re: User data during request of AuthenticatedWebSession
yes,you can store some key in session like emailId and then retrieve and store the user and related data in request cycle metadata ,as you are storing in requestcycle metadata ,scope of the data will be for the whole request only . no need to create your own requestcycle for that,create your requestcycle listener which onbeginrequest stores the user related data in requestcycle metadata On Mon, Apr 22, 2013 at 1:55 AM, Andre Schütz andre-p...@gmx.de wrote: I plan to implement a project with AuthenticatedWebApplication. The users have to sign up for an account. My question is regarding the user data that I have to load during each request of the single pages. The project will be as follows: (1) User logs into the system (2) The dashboard will be loaded (3) The user clicks the menu and gets a different representation of the information I would like to know the following two things: (a) The user registers with his email and a password (The email is unique in the database). I wanted to store the email in the AuthenticatedWebSession and load the desired user data during each request of a WebPage. Would that be a good idea? (b) I read in the documentation about the WebRequestCycle. Would it be useful to implement an own WebRequestCycle for the loading of the user data? I hope to hear some opinions. Thanks in advance. Andre - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal
Re: Panel resfresh with AjaxRequestTarget
oninitialize is only called once like constructor,the only advantage is called after component is added to page. the easiest way for you without making any change in B will be replacing the old instance of B with new one see Component#replacewith(newcomponent) On Sun, Apr 21, 2013 at 2:46 PM, souvikbhattacharyas souvikbhattachar...@gmail.com wrote: I am new to wicket and stuck in a Panel refresh problem with AjaxRequestTarget. I am clarifying my scenario below. In the Ui I have a Panel (A) which contains another Panel (B) and B contains some buttons and tables. I Panel A, I have a Event which will refresh My Panel B (Mainly the table in Panel B) with AjaxRequestTarget. On event I am adding Panel B in my AjaxRequestTarget.add() but it's not calling my initialize method in Panel B. So, Panel B is not refreshing properly. It's a existing code so, can't move the event to Panel B. So, need to do something from Panel A itself. Any help is appreciable -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-resfresh-with-AjaxRequestTarget-tp4658145.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 -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
hi, i am making a guess now ,i think you are having this problem ,there is one limitation of quickview in cases where you want to update without rendering the whole quickview .that limitation is the quickview immediate parent can have one child (which is quickview ofcourse) .this limitation is only for the immediate parent and if you give quickview a dedicated parent/container ,your problem will go away ... this check is also made in ajaxitemsnavigator and gives you an expectation explaining the problem and in older versions it was in quickview itself ,i somehow removed it while refactoring sometime ago ..,i will add it back later. please also create quickstart ie. small project which reproduces the bug and add it here ,i will check it out.,thanks ! On Mon, Apr 15, 2013 at 5:03 PM, Raul ralva...@netwie.com wrote: Exactly the error occurs when you click on the above item, item affects the bottom, but not vice versa. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657984.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 -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
or upload it somewhere else and give a url here from where it can be downloaded,sometimes here the attached files don't go through.. or just mail your project at vineetsemwa...@gmail.com On Mon, Apr 15, 2013 at 5:31 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi, i am making a guess now ,i think you are having this problem ,there is one limitation of quickview in cases where you want to update without rendering the whole quickview .that limitation is the quickview immediate parent can have one child (which is quickview ofcourse) .this limitation is only for the immediate parent and if you give quickview a dedicated parent/container ,your problem will go away ... this check is also made in ajaxitemsnavigator and gives you an expectation explaining the problem and in older versions it was in quickview itself ,i somehow removed it while refactoring sometime ago ..,i will add it back later. please also create quickstart ie. small project which reproduces the bug and add it here ,i will check it out.,thanks ! On Mon, Apr 15, 2013 at 5:03 PM, Raul ralva...@netwie.com wrote: Exactly the error occurs when you click on the above item, item affects the bottom, but not vice versa. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657984.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 -- regards, Vineet Semwal -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
sorry i made a typo in one of the post .. i wrote gives you an expectation what i meant was gives you an *exception* :-) On Mon, Apr 15, 2013 at 5:39 PM, vineet semwal vineetsemwa...@gmail.comwrote: or upload it somewhere else and give a url here from where it can be downloaded,sometimes here the attached files don't go through.. or just mail your project at vineetsemwa...@gmail.com On Mon, Apr 15, 2013 at 5:31 PM, vineet semwal vineetsemwa...@gmail.com wrote: hi, i am making a guess now ,i think you are having this problem ,there is one limitation of quickview in cases where you want to update without rendering the whole quickview .that limitation is the quickview immediate parent can have one child (which is quickview ofcourse) .this limitation is only for the immediate parent and if you give quickview a dedicated parent/container ,your problem will go away ... this check is also made in ajaxitemsnavigator and gives you an expectation explaining the problem and in older versions it was in quickview itself ,i somehow removed it while refactoring sometime ago ..,i will add it back later. please also create quickstart ie. small project which reproduces the bug and add it here ,i will check it out.,thanks ! On Mon, Apr 15, 2013 at 5:03 PM, Raul ralva...@netwie.com wrote: Exactly the error occurs when you click on the above item, item affects the bottom, but not vice versa. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657984.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 -- regards, Vineet Semwal -- regards, Vineet Semwal -- thank you, regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
i have tried explaining it in this issue https://github.com/vineetsemwal/quickview/issues/13 i have fixed it locally , just need to test and push the commit ,will give you an update then.. thanks for pointing out very important issue ! On Mon, Apr 15, 2013 at 6:02 PM, Raul ralva...@netwie.com wrote: http://ul.to/847ee7uh From his example I just changed the RowsNavigatorPage -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657989.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 -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
this is fixed now and is available in master and 1.5.x branch,since this was an important bug i have also created releases 6.6.2 for wicket 6.6 and 1.5.10.2 for wicket 1.5.10 ,you example works fine now :-) thank you ! On Tue, Apr 16, 2013 at 1:03 AM, Raul ralva...@netwie.com wrote: Thanks to you, I look forward to the update, a greeting. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657995.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 -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
hi, if you can change repeater,try using QuickView instead of ListView ,it supports the functionality you are asking.. ,way of using is like DataView ,project is here https://github.com/vineetsemwal/quickview On Sat, Apr 13, 2013 at 1:35 AM, Raul ralva...@netwie.com wrote: Hello, I need to implement a component that can display a list of users from a ListView, at the end of the list you should see a link to see more users. What I need is to update the list of users displayed but without rendering at all in ListView again. Because right now I use a AjaxLink that updates the entire ListView container, but when many users are penalized performance and gives a sense of slowness. Anyone know if you can implement some of this functionality with wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948.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 -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
forgot to write there is AjaxItemsNavigator in the package which on click adds new rows for QuickView, you can use or extend it or write your own depending on your usecase,see examples.. On Sat, Apr 13, 2013 at 12:39 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi, if you can change repeater,try using QuickView instead of ListView ,it supports the functionality you are asking.. ,way of using is like DataView ,project is here https://github.com/vineetsemwal/quickview On Sat, Apr 13, 2013 at 1:35 AM, Raul ralva...@netwie.com wrote: Hello, I need to implement a component that can display a list of users from a ListView, at the end of the list you should see a link to see more users. What I need is to update the list of users displayed but without rendering at all in ListView again. Because right now I use a AjaxLink that updates the entire ListView container, but when many users are penalized performance and gives a sense of slowness. Anyone know if you can implement some of this functionality with wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948.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 -- regards, Vineet Semwal -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
sorry,i did't want to do effort of publishing in maven central repository .., currently a user has to build and install on his machine either by doing a)git clone and then a mvn install or b) he has to grab a release release tag from https://github.com/vineetsemwal/quickview/tags ,decompress it,step into it and then mvn install ,same as he does in his maven project ,a part from that there is no difference after installing quicvkiew , specify dependency in your project and use it .. On Sat, Apr 13, 2013 at 3:19 PM, Raul ralva...@netwie.com wrote: QuickView The project looks great, but I want to try, why not stay at maven central repository?. It is very cumbersome installation is proposed. Https://github.com/vineetsemwal/quickview/wiki -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657958.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 -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
i am glad the project is useful for you.. ,thanks for the feedback :-) i think it's too new to move into wicket-extension ,also i think core and extension should be kept small.. On Sat, Apr 13, 2013 at 4:23 PM, Raul ralva...@netwie.com wrote: I tried the project and give you my congratulations, it's just what I need, but it would be ideal that was included as an extension of the core wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657961.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 -- regards, Vineet Semwal
Re: Update ListView with Ajax, performance.
i am not a core dev. , wicket core devs can only decide what can be moved in ;) On Sat, Apr 13, 2013 at 6:23 PM, Raul ralva...@netwie.com wrote: I think the functionality that gives your project is essential to many Web projects, and in many companies there is a policy not to use third party libraries that can not be maintained or updated in the future. I therefore believe that the number of components official Wicket, should increase in the future, for the framework to do its job better, which is to provide web development -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657963.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 -- regards, Vineet Semwal
Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView
...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- regards, Vineet Semwal
Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView
i was expecting this case too :-) but it's a very unusual usecase for a *user* but not for wicket developer ,i have an easy(may be stupid) idea for this,no need of quickview :-) ,show only one repeater's page items to user like as usual.., on scroll event just repaint the repeater's parent ,foreg. with dataview on event dataview.setcurrentpage(dataview.getcurrentpage()+1) //plus or minus 1 depending on scroll direction target.add(parent) that might be the cheapest/baddest way of achieving this usecase :-) On Wed, Mar 27, 2013 at 5:28 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, I mean something like https://github.com/mleibman/SlickGrid/wiki#virtual-rendering - DOM objects are added and removed while scrolling, thus keeping the DOM tree size small On Wed, Mar 27, 2013 at 12:52 PM, vineet semwal vineetsemwa...@gmail.com wrote: hi , do you mean removing items when you said unloading? the scroll behavior and navigator that are in the package just do quickview#addItemsForNextPage() on event like in this example https://github.com/vineetsemwal/quickview/blob/master/wicket-quickview-examples/src/main/java/com/aplombee/examples/PageScrollBar.java somone who doesn't want to maintain state can do *protected* void onScroll(AjaxRequestTarget target) { //this removes items but do not update client view quickView.simpleRemoveAll(); addItemsForNextPage(quickView); } as in this case the state is not maintained hence not good for someone who wants to use stateful components .. may be i am just misunderstanding you :-) On Wed, Mar 27, 2013 at 1:01 PM, Martin Grigorov mgrigo...@apache.org wrote: Check https://github.com/vineetsemwal/quickview - a lazy loading repeater. I'm not sure whether it also unloads items which are no more visible. On Wed, Mar 27, 2013 at 12:16 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, Angular is just a detail on the approach I was suggesting... You can achieve the same using plain jquery to ask for JSON and do creation of rows at client side iterating over results. If you do thing nicely you can still have some kind of componentization and the performance will be a lot better... Not to mention use of resources at server side. On Tue, Mar 26, 2013 at 9:10 PM, Marco Springer ma...@glitchbox.nl wrote: I've looked at Angular a while back and it certainly looks interesting. However I don't think it's wise to introduce another technology within the current company where I'm migrating a rather large CGI-BIN application to a Wicket variant and into several modules. I'm the main JAVA/Wicket guy now, the others are mainly C++ developers with some JAVA knowledge and growing in that knowledge as more and more parts are converted into Wicket counterparts. So they already have to get known with: Hibernate, parts of Spring, Wicket, Maven and HTML, CSS JS. Sooo for now.. I'm sticking with Wicket only. And with the zoomed out version and restricting the date range, ergo reducing the amount of components.., that fixes things. The future will give me plenty of time make things even fancier. Perhaps even the use of Angular. On Tuesday 26 March 2013 19:55:30 Ernesto Reinaldo Barreiro wrote: I mean: This same component could be used as context for AJAX interactions. On Tue, Mar 26, 2013 at 7:42 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Why don't you try rolling your own component that at sever side just serves JSON and you build up rich functionality at client side. This same context could be used as context for AJAX interactions. Something like http://www.antiliasoft.com/wicket-angular-demo/ On Tue, Mar 26, 2013 at 5:23 PM, Marco Springer ma...@glitchbox.nl wrote: I'm building a Gantt like interface with Wicket (nearly finished). It was a requirement to see multiple years of planned items, in the extreme range even. I've down-tuned it to be around max ~3k (8 years) of components in that listview, through the power of persuasion and as a test. At 3k components, the getId() method is called quite a reasonable amount of times. around 4.5M'ish times through the children_indexOf method. But you're absolutely right, 100k components is bull. Right now I've settled with them that I'd change the view of the Gantt to be less detailed when that amount of data is in there. The UI is quite flexible in that I can change what I render. With 2 years, only 731 columns are rendered, each day is a column. When 2
Re: Free Wicket guide now available!
super work ! super thanks ! :-) On Thu, Mar 21, 2013 at 9:21 PM, Andrea Del Bene an.delb...@gmail.comwrote: Dear Wicketers, I'm really excited to announce that, after almost two years of work (in may spare time), I've finished and published my free guide to Wicket! You can find it at https://code.google.com/p/**wicket-guide/https://code.google.com/p/wicket-guide/. I've chosen to use Google Project because many of us have a gmail account that can be used to sign in and leave a feedback (for example opening an issue). The document is structured as a step-by-step tutorial and is released under Creative Commons license (CC BY-NC-SA 3.0). Unfortunately I didn't cover yet the topic of WebSocket, but I think that writing a chapter on it will be my very next step :). Hope you find it helpful! PS: feel free to contact me via mail. Any feedback is REALLY appreciated! --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal
Re: ListView does not repaint inside WebMarcupContainer using AjaxLink
ajax repainting will not work with wicket:container or setrenderbodyonly(true) as in that case component tag is not rendered in html.another way is repainting grand(er) parent which doesn't have setrenderbodyonly(true) or wicket:container On Sun, Mar 17, 2013 at 3:22 PM, meduolis meduol...@gmail.com wrote: Hi, does anybody knows how to repaint ListView properly using AjaxLink? This https://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html https://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html does not work for me. If I use Link, everything works. But not with AjaxLink. Help, please === Markup: === Java: === -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-does-not-repaint-inside-WebMarcupContainer-using-AjaxLink-tp4657300.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 -- regards, Vineet Semwal
Re: How to redirect an external web site and where is setRequestTarget method?
use RedirectToUrlException On Mon, Mar 4, 2013 at 8:31 AM, mike.hua hz...@sohu.com wrote: According to the web site: https://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html public void onSubmit() { // Make sure no output for the current cycle is ever sent. getRequestCycle().setRequestTarget(new RedirectRequestTarget(http://www.163.com;)); } I can't find the method setRequestTarget under getRequestCycle(). What's the matter? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-redirect-an-external-web-site-and-where-is-setRequestTarget-method-tp4656924.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 -- regards, Vineet Semwal
Re: Infinite Scrolling in Wicket 6
assuming you are using infinite scrolling with a repeater try quickview https://github.com/vineetsemwal/quickview way of using quickview is like dataview ,important difference is is dataview uses IItemReuseStrategy and quickview uses IQuickReuseStrategy one such example here https://github.com/vineetsemwal/quickview/blob/master/wicket-quickview-examples/src/main/java/com/aplombee/examples/PageScrollBar.java On Wed, Feb 27, 2013 at 3:28 PM, Martin Dietze d...@fh-wedel.de wrote: I will soon have to implement infinite scrolling in my project and would thus like to know if there are already libraries or code snippets for this based on Wicket 6? What I found after a quick search was oegyscroll [1], but this seems to be based on Wicket 1.4.x. But as this feature is becoming increasingly popular, I'm sure that others have already implemented this kind of thing and can give me a recommendation? Cheers, M'bert [1] https://github.com/reaktor/oegyscroll -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Ruft man einen Hund, dann kommt er. Ruft man eine Katze, dann nimmt sie das zur Kenntnis, und kommt gelegentlich darauf zurueck. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal
Re: How to remove panel in a list?
Hi, 1)use dataview +reuseifmodelsequalstrategy 2) model object should be your data object and not component, see examples in the wicket distribution. On Wed, Feb 13, 2013 at 3:06 AM, Celia Xu wwx@gmail.com wrote: Hi, I want to use a repeater to paint my panels so now I have a listview which only remove the last item in the list. I browsed and found some people recommend to use refreshingView but I'm not sure how to populate my panel items. any suggestion? thanks LinkedListmyPanel myPanelList= new LinkedListmyPanel(); RefreshingView refreshingView = new RefreshingViewmyPanel (myPanel ){ @Override protected IteratorIModellt;myPanel getItemModels() { *//HOW to convert my panel object to IModel?* } @Override protected void populateItem(final ItemmyPanel item) { item.add(item.getModelObject()); int index = item.getIndex() ; item.add(new Label(index, (index +1 )+ .)); AjaxFallbackButton removePanelLink = new AjaxFallbackButton(remove, form) { @Override protected void onSubmit(AjaxRequestTarget ajaxRequestTarget, Form? form) { interactivePanels.remove(item.getIndex()); if (ajaxRequestTarget != null) { ajaxRequestTarget.add(wmc); } } }; removePanelLink.setDefaultFormProcessing(false); removePanelLink.setOutputMarkupId(true); item.add(removePanelLink); } }.setItemReuseStrategy(new ReuseIfModelsEqualStrategy()); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-remove-panel-in-a-list-tp4656293.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Style Modifier
yes,appears useful to me :) however not sure if this should be added in wicket-core.. another way of doing the same thing is a reusable ondomreadyheaderitem using jquery's css(propertyName,value) in a neat way .. On Fri, Feb 1, 2013 at 8:14 PM, William Speirs wspe...@apache.org wrote: I created a Behavior the other night that allows one to modify the style attribute of a tag by easily adding or removing a CSS property. Why is this better/different than AttributeModifier? Because you can update a CSS property inside the style attribute. Basic usage: myComponent.add(new StyleModifier(background-color, blue)); // changes (or adds) the background-color property of the style tag on this component to blue myComponent.add(new StyleModifier(background-color)); // removes the background-color property from the style tag on this component Would anyone else find this useful? Would the devs on this list consider taking it in for the next release of Wicket (if so I can open an JIRA)? Is this already implemented and I'm just too stupid to have found it? Thanks... Bill- -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is wrong/missing in this code, model object deos not get set
use AjaxFormComponentUpdatingBehavior On Sat, Feb 2, 2013 at 12:18 AM, saty satya...@gmail.com wrote: I will give it a try just to see if model gets set, but i really cant do that in this case as there are other fields in the form that need to be filled before submitting the form, is there any other way that just sets the model for auto complete field? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-is-wrong-missing-in-this-code-model-object-does-not-get-set-tp4656005p4656007.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Announce] Apache Wicket 6.5.0 is released
hi, i can't see any tag related to 6.5.0 :| On Wed, Jan 23, 2013 at 2:12 PM, Martin Grigorov mgrigo...@apache.org wrote: This is the fifth maintenance release of the Wicket 6.x series. This release brings over 32 bug fixes and improvements. Git tag: release/wicket-6.5.0 Changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561version=12323540 Maven: dependency groupIdorg.apache.wicket/groupId artifactIdwicket-core/artifactId version6.5.0/version /dependency Download the full distribution (including source): http://www.apache.org/dyn/closer.cgi/wicket/6.5.0 The Wicket team -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Configure AjaxRequestAttributes globally?
i have one idea,not sure if it's good, what if IRequestCycleListener contributes in requestcycle's metadata and AbstractDefaultAjaxBehavior checks it from there,if found populate AjaxRequestAttribute with that when it's constructed.. On Wed, Jan 9, 2013 at 3:07 PM, Martin Grigorov mgrigo...@apache.org wrote: I see it the same as how AjaxRequestHandler is created. On Wed, Jan 9, 2013 at 11:00 AM, Thomas Götz t...@decoded.de wrote: Done: https://issues.apache.org/jira/browse/WICKET-4958 Any hint/idea how this could be implemented, maybe I'll have a look at this …?! -Tom On 09.01.2013, at 08:58, Martin Grigorov mgrigo...@apache.org wrote: Hi Thomas, No, there is no way to do what you need at the momemt. Please file a ticket for improvement. On Wed, Jan 9, 2013 at 1:13 AM, Thomas Götz t...@decoded.de wrote: Is there a way to manipulate/configure AjaxRequestAttributes globally (in Wicket 6.x)? My usecase: in every AJAX request I want to include some dynamicExtraParameters, i.e. client side information. Or is the only way to do this to hook into one of the global ajax channels (e.g. /ajax/call/before) and manipulate the attributes object directly? I'd prefer if there was a Java API for this, but maybe I just haven't found it yet!? ;-) -Tom -- 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best way to set up a handler for 'Internal error'
hi, add your IRequestCycleListener which onexception checks if it's the exception you want to log/mail ,if it's then do so. On Wed, Dec 26, 2012 at 3:45 AM, Chris Colman chr...@stepaheadsoftware.com wrote: When running in production mode and an error occurs Wicket will display 'Internal error/return to home page'. What is the best place to put in a hook or a listener to be activated when this occurs so that we can have an email sent to an admin or log extra details etc., Yours sincerely, Chris Colman -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: little refactor moving onPopulate() to populate(), and make first called by second, and overridable?
onpopulate() is called every time dataview/repeater is rendered,you can do the same thing after overriding onbeforerender, pseducode below new DataView(){ public void onbeforerender(){ super.onbeforerender(); //this will create/populate children too //now my code } } On Tue, Dec 18, 2012 at 5:36 PM, manuelbarzi manuelba...@gmail.com wrote: hi, i would appreciate having the choice to do something on DataView.onPopulate (at end of populating process), but cannot override this method (final at RefreshingView). i know i have the choice to compare Item.getIndex() to DataView.getItemsPerPage() to determine the end of populating process, but what about getting this execution point by refactoring a bit, so: AbstractRepeater { @Override protected void onBeforeRender() { // onPopulate(); not anymore... populate(); ... } // protected abstract void onPopulate(); not anymore... protected abstract void populate(); } RefreshingView { @Override protected final void populate() { ... // do same stuff... ... onPopulate(); } protected void onPopulate() { // not final anymore, and overridable to do something on populating process ends } } moreover, using the method name populate to exactly do that, populate, when onBeforeRender seems to be more semantic-precise; and then, the same onBeforeRender responds to beforeRender, onPopulate now would respond to populate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is the way to test a behavior?
hi martin, you missed his test abortRenderingOnUsage() tester.executeBehavior() doesn't fit his case, also tester#executeBehavior(AbstractAjaxBehavior behavior) On Fri, Nov 2, 2012 at 1:49 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Additionally you need to : tester.executeBehavior() otherwise WicketTester is not used at all in your test. On Thu, Nov 1, 2012 at 10:49 PM, vineet semwal vineetsemwa...@gmail.com wrote: hi, this is expected behavior, AbortWithHttpErrorCodeException doesn't respond with InternalErrorPage,it merely sets HTTP error code , you can assert that by below code Assert.assertEquals( tester.getLastResponse().getStatus(), HttpServletResponse.SC_NOT_FOUND); Assert.assertEquals(tester.getLastResponse().getErrorMessage(), This is for testing) ; On Thu, Nov 1, 2012 at 11:54 PM, Per Newgro per.new...@gmx.ch wrote: Hi, i try to unit test a custom behavior. But i was wondering what's the right way to test it. I provide some code to explain my mind mismatch. The behavior shall interrupt the rendering of a component. I would like to answer this with a 404. Calling the behavior method directly results in the expected exception. But if i render a using component it's not answered by the 404. How can i get a 404 within the usage testcase (see below). Thanks for helping me Per code public class TestHomePage { public static class MyBehavior extends Behavior { @Override public void beforeRender(Component component) { if (true) { throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_NOT_FOUND, This is for testing); } } } public static class MyTestHomePage extends WebPage implements IMarkupResourceStreamProvider { public MyTestHomePage() { add(new MyBehavior()); } @Override public IResourceStream getMarkupResourceStream( MarkupContainer container, Class? containerClass) { return Markup.of(html/html).getMarkupResourceStream(); } } private WicketTester tester; @Before public void setUp() { tester = new WicketTester(new WicketApplication()); } @Test public void abortRenderingOnUsage() { tester.startPage(MyTestHomePage.class); tester.assertRenderedPage(InternalErrorPage.class); } @Test(expected = AbortWithHttpErrorCodeException.class) public void abortRenderingOnUnitTesting() { MyBehavior behavior = new MyBehavior(); behavior.beforeRender(null); } } /code - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Showing images from c:\xxxx\xx directory
hi, read this excellent article http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ On Sat, Nov 3, 2012 at 2:09 AM, Delange delan...@telfort.nl wrote: Hi, I have a webapplication where users can upload their files. I store them on my C:\xxx\xx directory. It all works fine, except... I do no know how to show them again in wicket. Who can help me ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Showing-images-from-c--xx-directory-tp4653586.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WiQuery SortableBehavior/DroppableBehavior questions
hi, On Thu, Nov 1, 2012 at 5:27 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: I've looked into this issue once more and it seems I solved it by.. doing what Decebal said. In the update() method of the SortableUpdateCallback, after the changes are saved to the XML data source, I call ListView.detach() directly. So the ListView gets a fresh, up-to-date version of the model. But somehow I find this solution a bit hacky. Maybe because I don't understand whats happening in detail. Shouldn't do the model all that kinda stuff for me? So I don't have to think about if I have the latest version of the model? Or is this a particular problem with the LoadableDetachableModel I just should be aware of? yes this is the case with loadabledetachablemodel,it's not the problem,it's by design L.D.M basically caches object for the request so if your real object has changed in the middle it won't know,calling detach() just makes this cached object null so the fresh object can be loaded by calling load() Also, I have to keep a reference to the ListView in a member variable now, which is something I always tried to avoid. Does that even make sense? In terms of page-size, or performance? no need to avoid that for components,it doesn't change anything in pagesize. 2012/10/31 Ernesto Reinaldo Barreiro reier...@gmail.com We're sorry but all of our available download slots are busy currently, please try again within a few minutes. Can you e-mail it to me directly? On Wed, Oct 31, 2012 at 4:17 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: I have no maven installed, so I can't create a quickstart. Instead, I zipped my project directory (an eclipse project) and uploaded it here: http://uploaded.net/file/d2zahfva Don't worry about the file size, all dependent libraries are in the WEB-INF/lib directory. The project itself is actually really small. -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is the way to test a behavior?
hi, this is expected behavior, AbortWithHttpErrorCodeException doesn't respond with InternalErrorPage,it merely sets HTTP error code , you can assert that by below code Assert.assertEquals( tester.getLastResponse().getStatus(), HttpServletResponse.SC_NOT_FOUND); Assert.assertEquals(tester.getLastResponse().getErrorMessage(), This is for testing) ; On Thu, Nov 1, 2012 at 11:54 PM, Per Newgro per.new...@gmx.ch wrote: Hi, i try to unit test a custom behavior. But i was wondering what's the right way to test it. I provide some code to explain my mind mismatch. The behavior shall interrupt the rendering of a component. I would like to answer this with a 404. Calling the behavior method directly results in the expected exception. But if i render a using component it's not answered by the 404. How can i get a 404 within the usage testcase (see below). Thanks for helping me Per code public class TestHomePage { public static class MyBehavior extends Behavior { @Override public void beforeRender(Component component) { if (true) { throw new AbortWithHttpErrorCodeException(HttpServletResponse.SC_NOT_FOUND, This is for testing); } } } public static class MyTestHomePage extends WebPage implements IMarkupResourceStreamProvider { public MyTestHomePage() { add(new MyBehavior()); } @Override public IResourceStream getMarkupResourceStream( MarkupContainer container, Class? containerClass) { return Markup.of(html/html).getMarkupResourceStream(); } } private WicketTester tester; @Before public void setUp() { tester = new WicketTester(new WicketApplication()); } @Test public void abortRenderingOnUsage() { tester.startPage(MyTestHomePage.class); tester.assertRenderedPage(InternalErrorPage.class); } @Test(expected = AbortWithHttpErrorCodeException.class) public void abortRenderingOnUnitTesting() { MyBehavior behavior = new MyBehavior(); behavior.beforeRender(null); } } /code - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Atmosphere Application - Configuration
Hi, On Fri, Oct 26, 2012 at 8:13 PM, Nick Pratt nbpr...@gmail.com wrote: How do you configure a Spring+Wicket application that was being loaded via the WicketFilter and the SpringWebApplicationFactory to use Atmosphere. Specifically, how do I get the Atmosphere servlet to trigger the WicketApplication load via the Spring factory (so my App gets created via Spring)? afaik AtmosphereServlet dispatches to WicketFilter eventually so the way of doing is same as before. Also, for an application with context path of /foo, should I set param-namefilterMappingUrlPattern/param-name to be /foo/* for the AtmosphereServlet as well as servlet-mapping servlet-nameAtmosphereApplication/servlet-name url-pattern/foo/*/url-pattern /servlet-mapping looks ok Regards Nick -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Load table rows lazy when click browser scrollbar
hi, quickview's immediate parent can have only one child and that can only be quickview.i have mentioned this issue in the below link https://github.com/vineetsemwal/quickview/issues/3 this limitation is only for the immediate parent . On Fri, Oct 26, 2012 at 10:32 AM, steven.li steven...@skyworthglobal.com wrote: http://apache-wicket.1842946.n4.nabble.com/file/n4653359/Untitled.png - Steven Li Skyworthglobal www.skyworthglobal.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653359.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Load table rows lazy when click browser scrollbar
that limitation i described earlier is only in the case of Reuse.ITEMSNAVIGATION and Reuse.ALL ie. only in the case where you want to add new items/rows without re-rendering the parent/quickview ,anyway this is not what you are asking. looks like the html you posted didn't pass through in the mail and i don't see any zip file too ,if you think there is some issue ,please create a new issue at https://github.com/vineetsemwal/quickview and attach your quickstart there. On Fri, Oct 26, 2012 at 1:27 PM, steven.li steven...@skyworthglobal.com wrote: Yes, I can find a workround for this limit. but met into another one, in my case, each row contains multiple, and under , there are label, span. seems it doesn't work well if is wrapped by . see attached zip file, If I remove the , it works fine in IE. but failed to reload next page if with aroound. - Steven Li Skyworthglobal www.skyworthglobal.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653371.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Apache Wicket 6.2.0 released!
hmm i see it now... thank you core devs for the great work ! On Wed, Oct 24, 2012 at 2:18 AM, vineet semwal vineetsemwa...@gmail.com wrote: how come i don't see any tag related to 6.2.0 ? On Wed, Oct 24, 2012 at 1:24 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: The Apache Wicket PMC is proud to announce Apache Wicket 6.2.0! This release marks the second minor release of Wicket 6. Starting with Wicket 6 we use semantic versioning for the future development of Wicket, and as such no API breaks are present in this release compared to 6.0.0. New and noteworthy -- SerializableChecker has been made easier to extend. It is now much easier to add your own checks at serialization time. For example, check whether your LoadableDetachableModels are detached, or no Hibernate entities are referenced directly from your component tree, etc. For the full changelog see the release notes attached to the end of this announcement. Using this release -- With Apache Maven update your dependency to (and don't forget to update any other dependencies on Wicket projects to the same version): dependency groupIdorg.apache.wicket/groupId artifactIdwicket-core/artifactId version6.2.0/version /dependency Or download and build the distribution yourself, or use our convenience binary package * http://www.apache.org/dyn/closer.cgi/wicket/6.2.0 * http://www.apache.org/dyn/closer.cgi/wicket/6.2.0/binaries Upgrading from earlier versions --- If you upgrade from 6.0.0, this release is a drop in replacement. If you come from a version prior to 6.0.0, please read our Wicket 6 migration guide found at http://s.apache.org/wicket-6.0-migration Have fun! — The Wicket team Release Notes - Wicket - Version 6.2.0 ** Sub-task * [WICKET-4752] - Revert Wicket-4715 -Read multipart request params in WebApplication ** Bug * [WICKET-4587] - URLRenderer renderFullUrl * [WICKET-4589] - Closing /wicket:container tag is incorrectly setup as autocomponent * [WICKET-4756] - AtmosphereWebRequest should return true on calls to #isAjax() * [WICKET-4759] - FilterForm/FilterToolbar don't work when there's more than one IColumn to be filtered * [WICKET-4769] - Clicking on Label of Radio doesn't update component with Ajax update * [WICKET-4771] - Submitting value filled in DropDownChoice fails when tinymce textarea is on the page * [WICKET-4776] - Problems with switching between HTTP/HTTPS * [WICKET-4777] - JavaScriptReference escapes given URL * [WICKET-4786] - AjaxTabbedPanel doesn't include constructor with model * [WICKET-4787] - Registering resource bundles with duplicate resource references gives an NPE * [WICKET-4788] - FilteringHeaderResponse does not unwrap PriorityHeaderItems for filtering * [WICKET-4789] - URL rendering regression * [WICKET-4791] - UploadProgressBar hides immediately after being shown. * [WICKET-4792] - wickettester#startcomponent(component) doesn't call oninitialize * [WICKET-4794] - RfcCompliantEmailAddressValidator error message not defined * [WICKET-4796] - DatePickerTest fails because of java inconsistensy on localizing March german shortname Mrz vs Mär * [WICKET-4797] - CheckBoxMultipleChoice loses state * [WICKET-4801] - BaseWicketTester.executeAjaxEvent only fires one of multiple behaviors bound to a given event * [WICKET-4806] - AjaxEditableChoiceLabel won't close select onblur * [WICKET-4810] - CLONE - BaseWicketTester.clickLink() does not work with a ResourceLink with ResourceReference * [WICKET-4816] - Handling of semicolons in form action URLs * [WICKET-4818] - NullPointerException while reading the POST parameters * [WICKET-4820] - Race condition in ResourceSettings: getResourceWatcher() is not thread safe * [WICKET-4822] - Wicket.Event.add requires Wicket.$, but wicket-ajax-jquery is not listed as a dependency * [WICKET-4824] - Redirect to HTTPS is using wrong port 80 if HttpsConfig with default ports 80/443 is used ** Improvement * [WICKET-4160] - Make AbstractAutoCompleteRenderer.renderHeader() and .renderFooter() non-final * [WICKET-4772] - DataTable API and handling of AbstractToolbar * [WICKET-4778] - Add factory methods to JavaScriptHeaderItem to create a deferred JavaScript header item. * [WICKET-4798] - Make IteratorFilter.onFilter protected * [WICKET-4804] - Add #setStatus(int) in AbstractResource.ResourceResponse * [WICKET-4808] - WebClientInfo.getRemoteAddr() handling Forwarded-For value tokens not being ip addresses * [WICKET-4812] - Make SerializationChecker easier for extending so custom checks can be added to it ** New Feature * [WICKET-4793] - Support Jetty 9.x websocket implementation * [WICKET-4802] - Add functionality to be able to export DataTable content * [WICKET
Re: Apache Wicket 6.2.0 released!
-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Migration from 1.5.8 to 6.1
i can't reproduce your problem,on clicking cancel ,the precondition should fail ie. return false which is what the code is doing,what browser are you using? i tested it on chrome/firefox On Mon, Oct 22, 2012 at 3:33 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi, I implemented following your suggestions. Currently, the list item is deleted if I press ok or cancel in the dialog. item.add(new AjaxDecoratedCheckbox(toRemove, new ModelBoolean(Boolean.FALSE)) { private static final long serialVersionUID = 7170946748485726506L; @Override protected void onUpdate(final AjaxRequestTarget target) { -- entityTO.getDerivedAttributes().remove(attributeTO); target.add(attributesContainer); } @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); IAjaxCallListener myAjaxCallListener = new AjaxCallListener() { private static final long serialVersionUID = 7160235486520935153L; @Override public CharSequence getPrecondition(Component component) { return if (!confirm(' + getString(confirmDelete) + ')) + {return false;}; } }; attributes.getAjaxCallListeners().add(myAjaxCallListener); } }); What should I call to handle ok or cancell event? Marco On Oct 19, 2012, at 6:10 PM, vineet semwal wrote: iajaxcalldecorator is replaced with iajaxcalllistener,ajaxcalllistener(dummy implementation) is what you can extend for your use ,override ajaxcheckbox#updateAjaxAttributes(attributes) like below @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { attributes.getAjaxCallListeners().add(new AjaxCallListener(){ @Override public CharSequence getPrecondition(Component component) { return if (!confirm(' + getString(confirmDelete) + ')) + { return false; } ; } }); } On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi all, How can i convert this code into wicket 6.1. item.add(new AjaxDecoratedCheckbox(toRemove, new ModelBoolean(Boolean.FALSE)) { @Override protected void onUpdate(final AjaxRequestTarget target) { entityTO.getDerivedAttributes().remove(attributeTO); target.add(attributesContainer); } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { @Override public CharSequence preDecorateScript(final CharSequence script) { return if (confirm(' + getString(confirmDelete) + ')) + { + script + } + else {this.checked = false;}; } }; } }); I see the migration doc, but i not found a solution. Thanks M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Load table rows lazy when click browser scrollbar
hi, i tested successfully on chrome/firefox , i don't have IE8 on my system so didn't test,might be a bug in IE8,it might work in IE9 .. but i will improve it later today so that it will work on IE8 too.. On Mon, Oct 22, 2012 at 3:51 PM, steven.li steven...@skyworthglobal.com wrote: I have run the demo application, found that, the Scroll on Page link only show 13 rows result without go to next page when i pull down the page scroll bar. I test it on IE8. do you have the same issue ? Thanks. - Steven Li Skyworthglobal www.skyworthglobal.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653193.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Migration from 1.5.8 to 6.1
i can't reproduce your problem and i can't guess too, attach a quickstart that demonstrates your problem .. On Mon, Oct 22, 2012 at 4:12 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: I tested with chrome and firefox. The method onUpdate is invoked always and the item is removed. On Oct 22, 2012, at 12:34 PM, vineet semwal wrote: i can't reproduce your problem,on clicking cancel ,the precondition should fail ie. return false which is what the code is doing,what browser are you using? i tested it on chrome/firefox On Mon, Oct 22, 2012 at 3:33 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi, I implemented following your suggestions. Currently, the list item is deleted if I press ok or cancel in the dialog. item.add(new AjaxDecoratedCheckbox(toRemove, new ModelBoolean(Boolean.FALSE)) { private static final long serialVersionUID = 7170946748485726506L; @Override protected void onUpdate(final AjaxRequestTarget target) { -- entityTO.getDerivedAttributes().remove(attributeTO); target.add(attributesContainer); } @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); IAjaxCallListener myAjaxCallListener = new AjaxCallListener() { private static final long serialVersionUID = 7160235486520935153L; @Override public CharSequence getPrecondition(Component component) { return if (!confirm(' + getString(confirmDelete) + ')) + {return false;}; } }; attributes.getAjaxCallListeners().add(myAjaxCallListener); } }); What should I call to handle ok or cancell event? Marco On Oct 19, 2012, at 6:10 PM, vineet semwal wrote: iajaxcalldecorator is replaced with iajaxcalllistener,ajaxcalllistener(dummy implementation) is what you can extend for your use ,override ajaxcheckbox#updateAjaxAttributes(attributes) like below @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { attributes.getAjaxCallListeners().add(new AjaxCallListener(){ @Override public CharSequence getPrecondition(Component component) { return if (!confirm(' + getString(confirmDelete) + ')) + { return false; } ; } }); } On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi all, How can i convert this code into wicket 6.1. item.add(new AjaxDecoratedCheckbox(toRemove, new ModelBoolean(Boolean.FALSE)) { @Override protected void onUpdate(final AjaxRequestTarget target) { entityTO.getDerivedAttributes().remove(attributeTO); target.add(attributesContainer); } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { @Override public CharSequence preDecorateScript(final CharSequence script) { return if (confirm(' + getString(confirmDelete) + ')) + { + script + } + else {this.checked = false;}; } }; } }); I see the migration doc, but i not found a solution. Thanks M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino -- regards, Vineet Semwal
Re: Load table rows lazy when click browser scrollbar
i have fixed that and tested it in IE8,firefox,chrome,i have created a new tag 1.5.8.2 for this.you can download it from the below link https://github.com/vineetsemwal/quickview/tags On Mon, Oct 22, 2012 at 5:39 PM, vineet semwal vineetsemwa...@gmail.com wrote: hi, i tested successfully on chrome/firefox , i don't have IE8 on my system so didn't test,might be a bug in IE8,it might work in IE9 .. but i will improve it later today so that it will work on IE8 too.. On Mon, Oct 22, 2012 at 3:51 PM, steven.li steven...@skyworthglobal.com wrote: I have run the demo application, found that, the Scroll on Page link only show 13 rows result without go to next page when i pull down the page scroll bar. I test it on IE8. do you have the same issue ? Thanks. - Steven Li Skyworthglobal www.skyworthglobal.com -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653193.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 -- regards, Vineet Semwal -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IAjaxCallDecorator deprecated by no suggested replacement in Migration to 6.x
iajaxcalldecoration is replaced with iajaxcalllistener and yes it's specified in migration https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax On Sat, Oct 20, 2012 at 1:03 PM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like IAjaxCallDecorator is no longer available in 6.x I found this nabble reference: My question is: should we try to translate IAjaxCallDecorator to IAjaxCallListener or we should drop IACD completely ? The migration page will describe to do the translation in any case! Seems like IACD has been dropped completely but the Wicket 6.x migration page doesn't have any reference explaining how to replace it. -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IAjaxCallDecorator deprecated by no suggested replacement in Migration to 6.x
On Sat, Oct 20, 2012 at 1:34 PM, Chris Colman chr...@stepaheadsoftware.com wrote: iajaxcalldecoration is replaced with iajaxcalllistener and yes it's specified in migration https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax wicket ajax related migration^^ Whoah! That's a much better migration page than the one I was using. Perhaps this old one should be changed to reference the migration page you provided because the one I was using comes up first when I google wicket migration 6 https://cwiki.apache.org/WICKET/migration-to-wicket-60.html - old one? complete wicket migration ^^ ,url for wicket ajax related migration is provided here ;) On closer inspection it seems we need to use both of these Migration 6 pages for full coverage of all migration 6 issues. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Load table rows lazy when click browser scrollbar
you are welcome.. sorry for the delay ,i made some improvements in the internal in last few days. i have also added the scroll behaviors for 1.5 today and their corresponding examples.i have created new tags 1.5.8.1 and 6.1.1 today. you can download from the below link https://github.com/vineetsemwal/quickview/tags martin-g has already told you but i am repeating again to avoid any confusion for you . every version of quickview package depends on the same version of wicket mostly. quickview 1.5.8.1 depends on wicket 1.5.8(because there is no wicket 1.5.8.1) quickview 6.1.1depends on wicket 6.1.1 since you are on wicket 1.5.6 ,i recommend you to at least upgrade to 1.5.8 to use quickview. On Tue, Oct 16, 2012 at 2:25 PM, steven.li steven...@skyworthglobal.com wrote: Thank you very much ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653003.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Migration from 1.5.8 to 6.1
iajaxcalldecorator is replaced with iajaxcalllistener,ajaxcalllistener(dummy implementation) is what you can extend for your use ,override ajaxcheckbox#updateAjaxAttributes(attributes) like below @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { attributes.getAjaxCallListeners().add(new AjaxCallListener(){ @Override public CharSequence getPrecondition(Component component) { return if (!confirm(' + getString(confirmDelete) + ')) + { return false; } ; } }); } On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi all, How can i convert this code into wicket 6.1. item.add(new AjaxDecoratedCheckbox(toRemove, new ModelBoolean(Boolean.FALSE)) { @Override protected void onUpdate(final AjaxRequestTarget target) { entityTO.getDerivedAttributes().remove(attributeTO); target.add(attributesContainer); } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { @Override public CharSequence preDecorateScript(final CharSequence script) { return if (confirm(' + getString(confirmDelete) + ')) + { + script + } + else {this.checked = false;}; } }; } }); I see the migration doc, but i not found a solution. Thanks M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Load table rows lazy when click browser scrollbar
hi ! i have made some improvements in quickview in last 2 days,i am writing tests for them,after that i will add AjaxPageScrollEventBehavior for 1.5 branch,i will send you a notification here.. On Tue, Oct 16, 2012 at 11:35 AM, steven.li steven...@skyworthglobal.com wrote: yes. I followed that try to wrap a AjaxPageScrollEventBehavior for wicket 1.5. I added below method into the AjaxPageScrollEventBehavior : @Override protected CharSequence getPreconditionScript() { String call=RepeaterUtil.get().isPageScrollBarAtBottom(); return return + call; } however, it only staticlly show the first 14 rows, the page scrollbar at bottom event cannot be triggered. please help on how to get the PageScrollBar sample works in 1.5. Thanks very much! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4652993.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Load table rows lazy when click browser scrollbar
that AjaxPageScrollEventBehavior is equal to AjaxEventBehavior(onscroll){ public void onevent(AjaxRequestTarget target){ quickView.addItemsForNextPage(); } } so all the work is basically done by quickview ,the only useful thing that behavior provides is javascript which only lets server request happens if scroll-bar is moved to bottom of page. if you want to use that javascript ,it's available in the below link,see js function isPageScrollBarAtBottom() ,create a decorator in 1.5 and use it https://github.com/vineetsemwal/quickview/blob/master/wicket-quickview/src/main/java/com/aplombee/repeater.js On Mon, Oct 15, 2012 at 10:37 AM, steven.li steven...@skyworthglobal.com wrote: I tried the quickview , however, seems PageScrollBar only supported in Wicket 6.0 ? Currently, I'm using Wicket 1.5.6, If I want to use PageScrollBar, do I have to migrate to Wicket 6.0 ? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4652959.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: getInitParameter returns null
i can't reproduce ,which wicket version and servlet container are you on? On Sat, Oct 13, 2012 at 12:41 PM, Lucio Crusca lu...@sulweb.org wrote: Hello *, I'm having troubles with WebApplication.getInitParameter() method. In the init() method of MyApp I call getInitParameter(myPar); It returns null. in web.xml I have filter filter-namewicket.MyApp/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter- class init-param param-nameapplicationClassName/param-name param-valueexample.MyApp/param-value /init-param init-param param-namemyPar/param-name param-valuemyValue/param-value /init-param [...] Why getInitParameter returns null instead of myValue? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: getInitParameter returns null
this is not the problem in normal run but in testing.. wickettester itself doesn't use any servelt container, you don't have to yourself call init() on your own,use new wickettester(new myap()) wickettester will do all the setup and call init() too. you can later retrieve by tester.getApplication().getInitParameter(myPar) ,basically application.getInitParameter(parameter)== application.getfilerconfig().getInitParameter(parameter) afaik this is how it would have worked ,however it won't i just checked the wickettester's source the reason is tester doesn't provide anyway of adding init parameters to mock filterconfig which means mock filterconfig should also add methods for that or wickettester should provide constructor through which you can pass your custom fileterconfig. i think others will tell if a jira ticket for this should be created or if i have overlooked something ;) On Sat, Oct 13, 2012 at 4:07 PM, Lucio Crusca lu...@sulweb.org wrote: In data sabato 13 ottobre 2012 11:53:54, vineet semwal ha scritto: i can't reproduce ,which wicket version and servlet container are you on? Wicket version 6.0 and not sure about the servlet container, because what's failing is the automatic tests Netbeans runs before running the app. My unit test creates the application instance, the instance calls init(), init() calls getInitParameter and then it throws an exception after the received null. No worries about the exception, it's correct it is being thrown on nulls, but that's making my unit test fail. I don't know what servlet container Netbeans uses when it runs tests. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OnMouseOver and OnMouseOut menu
you are welcome,as i have said before there are already existing tooltips projects done in wicket ,the most popular/used one is i think mootip,it's in minis project in wickestuff but i have not used tooltips in long time so there might have come new ones so either use that or create a new thread that asks for the existing tooltips/ajaxtooltips in wicket and people will recommend the tooltips they like/use. On Sat, Oct 6, 2012 at 6:05 AM, theivorykitty chantal.da...@frontier.com wrote: Thanks very much! Unfortunately while this does set a wait time, I didn't really think it through. ... After the wait time the mouseout behavior always occurs - even if your mouse is back in at the time (obviously - I didn't think this through). That means that the mouse-in behavior also occurs (making the popup appear again). To the user it looks like the menu is flickering horribly. :( I'm just not sure what the answer is! However, I did get the throttle setting working properly, so thank you very much :). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/OnMouseOver-and-OnMouseOut-menu-tp4652538p4652714.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: performance on nested dataviews
i am curious what kind of a user uses 200 columns,what is the use case? datatable can't give you better performance unless i am missing some point .i just checked datable's source beriefly. what you need is a dynamic/partial updating repeater for columns so say if a row has 50 columns visible at start ,a user can click on link in some particular row to see more columns of that row and he can see next 50 columns.he can click on that link till he wants or till no more columns for that row are available. if you want to do that way you should read Igor Vaynberg's for the idea http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ On Fri, Oct 5, 2012 at 2:11 AM, lukuperman lukuper...@hotmail.com wrote: Hi, in the project I work on there is a matrix that grows in both dimensions. Currently it is implemented as 2 nested DataViews. I'm seeing the inner-most dataview's onBeforeRender() takes 2-3 seconds to process 200 checkboxes, which if I combine it with a 15 outer-most dataview gives me the horrible number of 30-40 seconds or more. If I have 200 instead of 15, you can imagine my concern. Should I change to another repeater? Should I use the DataTable instead of nested dataviews? FYI: With the given implementation I tried overriding the Item's onComponentTagBody() method but the time is spent before reaching that method, so it doesn't really make a difference to improve that method. Lucas Kuperman PS: pagination is not an option and on scroll lazyloading is another topic. Size of the matrix is not cuestionable unfort -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/performance-on-nested-dataviews-tp4652673.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: get new value of drop down inside vieworedit on onchange
no you can't but if your use case is just to retain old value,you can retain it in a field ,you can even set the old value back or just write your own behavior that does that On Tue, Oct 2, 2012 at 2:08 PM, cosmindumy cosmind...@yahoo.com wrote: Another question, hope the last at this topic. May I get the value before the update in AjaxFormComponentUpdatingBehavior? Now on update the new model is already setted. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479p4652596.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: get new value of drop down inside vieworedit on onchange
you can also do a css disable dropdown.add(new AttributeModifier(disabled, true)) On Mon, Oct 1, 2012 at 12:53 PM, cosmindumy cosmind...@yahoo.com wrote: Thanks. It worked. But I have another question. I want the drop down inside vieworedit in some cases to be disabled. If I disable it is automatically replaced with label. I want to be replaced with label only when my condition is true. Is there any possibility? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479p4652557.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: get new value of drop down inside vieworedit on onchange
you can add in constructor/onintialize()/onconfigure()/onbeforerender but not in onafterender(),the exception is self explanatory Cannot modify component hierarchy after render phase has started (page version cant change then anymore) On Mon, Oct 1, 2012 at 3:11 PM, cosmindumy cosmind...@yahoo.com wrote: Thanks for advice. When it should it be added? I tried both beforeRender and also onRender but I get the exceptin Cannot modify component hierarchy after render phase has started (page version cant change then anymore) It must be added somehow after the editorview was rendered, otherwise it will make it label. wouldn't be better to call a js that disabled it after the page was rendered? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479p4652571.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Centralizing ajax inline javascript
hi ! dynamic load will only be useful if you can add new items without repainting the repeater's parent (repainting parent will cause the repeater to render again), read Igor Vaynberg's article for the idea http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ On Mon, Oct 1, 2012 at 2:45 AM, lukuperman lukuper...@hotmail.com wrote: Hi Ernesto. We seem to be in the same page now. Sebastien's approach is also about a single behavior, with the small difference of adding the CheckBoxes onclick event in the server side (I did it in the onComponentTag method instead of relying on attributemodifiers because of performance) rather than through a small JavaScript on the client. Since I am dealing with an unusual big table and my main problem is performance, I'll consider your JS approach now that I have centralized the behavior (thanks Sebastien!). I am considering applying the dynamic load that Vineet suggested because I still can't bring numbers down, but planning to do that after the table is as 'efficient' as I can get it to be. Thank you so much for your contribution! I'll keep you posted Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Centralizing-ajax-inline-javascript-tp4652499p4652549.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: edit label w/o ajax
hi! see AjaxEditableLabel On Fri, Sep 28, 2012 at 12:58 PM, rpere...@ok.de wrote: Hello, does it exist an edit label component without ajax? I mean, switching from label to field without ajax, but an ajax request when switching it back. Regards, Rodrigo P. -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: form with arbitrary number of fields
use a repeater which and yo can attach your formcomponents to items On Fri, Sep 28, 2012 at 8:18 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a form that allows users to add an arbitrary number of fields, for example keywords for an item where there could be multiple. Up until now I have been processing my form where the fields are known and map directly to a model. However I'm unsure as to how this mapping works, for example having two or more keywords for one item. Would the property in the backing model be a list for this item? Rather than a string for example? Are there any examples of a similar dynamic form? cheers, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: form with arbitrary number of fields
sorry somehow i didn't type last message correctly :) use a repeater and you can add your formcoponents to its items ,see listview/dataview On Fri, Sep 28, 2012 at 1:35 PM, vineet semwal vineetsemwa...@gmail.com wrote: use a repeater which and yo can attach your formcomponents to items On Fri, Sep 28, 2012 at 8:18 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi all, I have a form that allows users to add an arbitrary number of fields, for example keywords for an item where there could be multiple. Up until now I have been processing my form where the fields are known and map directly to a model. However I'm unsure as to how this mapping works, for example having two or more keywords for one item. Would the property in the backing model be a list for this item? Rather than a string for example? Are there any examples of a similar dynamic form? cheers, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: get new value of drop down inside vieworedit on onchange
try ajaxformcomponentupdatingbehvior with change event On Fri, Sep 28, 2012 at 1:15 PM, cosmindumy cosmind...@yahoo.com wrote: Hi, I want to get the new selected of a dropdown wich is inside a vieworedit component. Attached an ajax behaviour on onchange event, but cannot get the new vale. Do not need model object. drop down value is enough, but it is still the old valuel. I setted on selection changed notification. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/get-new-value-of-drop-down-inside-vieworedit-on-onchange-tp4652479.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: edit label w/o ajax
sorry,i just realized i have misread the post ,follow what Ernesto recommended.. On Fri, Sep 28, 2012 at 1:32 PM, vineet semwal vineetsemwal1...@gmail.com wrote: hi! see AjaxEditableLabel On Fri, Sep 28, 2012 at 12:58 PM, rpere...@ok.de wrote: Hello, does it exist an edit label component without ajax? I mean, switching from label to field without ajax, but an ajax request when switching it back. Regards, Rodrigo P. -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: edit label w/o ajax
i just checked AjaxEditableLabel ,it's pretty flexible,you can override new label which have your custom non-ajax behavior added to it .the behavior can use render javascript which does what ernesto suggested ie. makes textfield/editor visible on click On Fri, Sep 28, 2012 at 3:10 PM, vineet semwal vineetsemwa...@gmail.com wrote: sorry,i just realized i have misread the post ,follow what Ernesto recommended.. On Fri, Sep 28, 2012 at 1:32 PM, vineet semwal vineetsemwal1...@gmail.com wrote: hi! see AjaxEditableLabel On Fri, Sep 28, 2012 at 12:58 PM, rpere...@ok.de wrote: Hello, does it exist an edit label component without ajax? I mean, switching from label to field without ajax, but an ajax request when switching it back. Regards, Rodrigo P. -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 - 6 wheres org.apache.wicket.ajax.IAjaxCallDecorator?
IAjaxCallListener replaced it, see here https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax On Fri, Sep 28, 2012 at 6:04 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: So where is it? What should I do ? I could not find anything about it here: https://cwiki.apache.org/WICKET/migration-to-wicket-60.html#MigrationtoWicket6.0-Refactorings -- Best regards / Med venlig hilsen Nino Martinez -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Centralizing ajax inline javascript
assuming you are using a repeater say dataview/gridview,think about that in this way 200*200==40k items of repeater,are you rendering that number of items at once? i would have used a small table with navigator or some ajax scroll behavior .. On Fri, Sep 28, 2012 at 6:11 PM, lukuperman lukuper...@hotmail.com wrote: Hello all, I am working on an application that was built with Wicket 1.4.15. It has to show a table with an AjaxCheckBox on each cell. Most of the final html size is because of the inline ajax behavior on each cb (ie 20Mb for a 200x200 table). Leaving aside the fact of rendering big tables (which is imposed by business), can you give me some hints or ideas on how can I decrease final html size maintaining ajax behavior? For example, how can I: -centralize the javascript and make checkboxes call it passing the minimum parameters needed (id, etc) -or event registration, without migrating to Wicket 6 (not allowed to) -some other way? Thank you! Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Centralizing-ajax-inline-javascript-tp4652499.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Centralizing ajax inline javascript
actually i have the elegant solution for your problem in 6.x ,i didn't recommend it before because you are on 1.4 i wrote Quickview and QuickGridView ,the whole project is available at https://github.com/vineetsemwal/quickview including examples. the way of using QuickView is almost like DataView the way of using QuickGridView is almost like Gridview what they offer is they can add/remove new items/rows without the need to repaint the whole repeater.i have written a navigator and a scroll behavior for that so on demand/scroll you can add new rows.this in working is like how new rows are added on demand/scroll in social networking sites.a user practically doesn't have to learn anything. the problem is i don't want to port/support any version less than 6.x On Fri, Sep 28, 2012 at 8:34 PM, lukuperman lukuper...@hotmail.com wrote: Hi Vineet. I knew someone would ask. Lots of components right? Yes, I agree. The component tree is giving us a hard time with performance in general (around 5 minutes to process) and stack overflows when serializing, etc. But focusing back to my original question, unfortunately the business requirement remains. Pagination is not allowed. The page is currently loaded at once, but lazy loading is certainly an option if end result is the same. I'll search for ajax scroll behaviors. If you happen to have used something like that with Wicket and have a link handy, it would be appreciated. Thanks for contributing on my thread Lucas Kuperman -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Centralizing-ajax-inline-javascript-tp4652499p4652505.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Auto PageParameters from a POJO?
you can create some reusable bookmarkablelink like below public class ReleaseBookmarkablePageLink extends BookmarkablePageLink{ private Release release; public ReleaseBookmarkablePageLink(String id,Class? extends PagepageClass,Release release){ super(id,pageClass); this.release=release; } @Override protected void onInitialize() { super.onInitialize(); getPageParameters().set(product, release.getProduct().getName()); getPageParameters().set(version, release.getVersion() ); } } if you don't want to serialize release object,you can just serialize it's key and retrieve release object from it On Tue, Sep 18, 2012 at 7:39 AM, Ondrej Zizka ozi...@redhat.com wrote: Hi, I found myself repeatedly creating a PageParameters object from some domain object for BookmarkablePageLink just to have it then parsed back to that same domain object. Example: Release rel { product: AS; version: 7.1.2 } = add( new BookmarkablePageLink ( link, ReleasePage.class, new PageParameters() .add(product, rel.getProduct().getName()) .add(version, rel.getVersion() ) ) ); So to avoid repeating that all the time, I created (besides a link component) this in ReleasePage: public static PageParameters createPageParameters( Release rel ){ return new PageParameters() .add(product, rel.getProduct().getName()) .add(version, rel.getVersion() ); } And I was thinking - is there some mechanism to automatically create the params from the domain object, using properties matching against mount() string? E.g. like this: mountPage(/release/${product.name}/${version}, ReleasePage.class); new BookmarkablePageLink ( link, ReleasePage.class, rel); // This would create page params the properties. Anything like this available? If not, is it doable? It would reduce quite some boilerplate code. Thanks, Ondra -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Catch the doGet/doPost on every request and override it
add your requestcyclelistener and do it in onbeginrequest On Mon, Sep 17, 2012 at 7:29 PM, eugenebalt eugeneb...@yahoo.com wrote: In Wicket, is there an easy way to override the doGet/doPost on every request in order to add some common code that should fire on every request? I used to know but forgot. The idea is to add some common code e.g. database transaction start/end for the request scope. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Catch the doGet/doPost on every request and override it
i didn't see last part of your mail see IRequestCycleListener onbeginrequest/onendrequest On Mon, Sep 17, 2012 at 7:29 PM, eugenebalt eugeneb...@yahoo.com wrote: In Wicket, is there an easy way to override the doGet/doPost on every request in order to add some common code that should fire on every request? I used to know but forgot. The idea is to add some common code e.g. database transaction start/end for the request scope. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Catch the doGet/doPost on every request and override it
see PageRequestHandlerTracker ,you can get first and last page of your request On Mon, Sep 17, 2012 at 7:55 PM, eugenebalt eugeneb...@yahoo.com wrote: Sorry, one more question. Is it possible to know which active Page I'm currently on during this request interception? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038p4652045.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Generating markup from Wicket
use a repeater On Fri, Sep 14, 2012 at 5:34 PM, jam.ntk jam@gmail.com wrote: Hi - I have data strings coming from database e.g. ABC, 123, DEF,456. Now I am creating a MultilineLabel to hold the string with new line characters to diplay on the page with line breaks. It is working fine but I want to display them as mark up list items as it would display with the following mark up. Can you please suggest how i can do this in Wicket code as my model is being created in wicket? Do I need to use WebMarkupContainer instead of MultiLineLabel? ul liABC/li li123/li liDEF/li li456/li /ul dbLabelText = ABC.append(\n).123.. add(new MultiLineLabel(label, dbLabelText)); Please give an example. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generating-markup-from-Wicket-tp4652003.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: disabling ajax submit button
that should have worked... btw why not just button.setEnabled(false) ? On Thu, Sep 13, 2012 at 9:11 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: I am using wicket 1.4.3 and changing to the code you mentioned below, does not work as well:( Thanks On Wed, Sep 12, 2012 at 11:42 AM, Sébastien Gautrin sgaut...@telemetris.com wrote: Which wicket version ? (I ask because I see you are using several calls that are deprecated in 1.5). Besides, within the declaration of your inner class, don't try to access the variable you are defining (and without declaring it final, it should normally not compile anyway). Not changing the deprecated calls, this should probably look like : add(new SimpleAttributeModifier(**disabled, disabled)); target.addComponent(this); Original Message *Subject: *disabling ajax submit button *From: *Anna Simbirtsev asimbirt...@gmail.com *To: *users@wicket.apache.org *Date: *2012-09-12 Hi I am trying to disable ajax submit button after it has been clicked. AjaxSubmitLink submitButton1 = new AjaxSubmitLink(submitButton1**) { private static final long serialVersionUID = 1L; protected void onSubmit(AjaxRequestTarget target, final Form? form) { submitButton1.add( new SimpleAttributeModifier(**disabled, disabled)); target.addComponent(**submitButton1); } This does not work.:( -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Open link in new tab which are part of a label..
afaik the link should have attribute target=_blank On Thu, Sep 13, 2012 at 8:08 PM, kshitiz k.agarw...@gmail.com wrote: Hi Can anyone tell me how to make a link open in new tab which is part of a label like a paragraph? I cant usetags so how would I make sure that links which are part of that label open in new tab? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Open-link-in-new-tab-which-are-part-of-a-label-tp4651977.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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: stateless Login page!!
RestartResponseAtInterceptPageException explicitly binds session may be you are not binding your session yourself and your authorization strategy were redirecting you back to login page because there was not a permanent(http) session? On Tue, Sep 11, 2012 at 8:54 PM, Alfonso Quiroga alfonsose...@gmail.com wrote: It IS calling it (I've debugged it) and nothing happens. I could make it work replacing that line with this: throw new RestartResponseAtInterceptPageException(RealHomePage.class); Is this the solution? Why setReponsePage() is not working? thanks! On Tue, Sep 11, 2012 at 12:21 PM, Paul Bors p...@bors.ws wrote: Are you sure it's not calling the setReponsePage() (put break-point or a log message) and instead is trying to call the onError() method of your button or form? ~ Thank you, Paul Bors -Original Message- From: Alfonso Quiroga [mailto:alfonsose...@gmail.com] Sent: Tuesday, September 11, 2012 11:07 AM To: users@wicket.apache.org Subject: stateless Login page!! Hi, I have a stateless login page (statelessForm) and when the user login I do: protected void onSubmit() { [] setResponsePage(HomePage.class); } This was WORKING on wicket 1.5.RC7, but when I've changed to 1.5.7 or 1.5.8, it does not work, it just RELOADS the login page. What can I do instead of using setResponsePage() ?? 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Debug messages
change the log setting to INFO from DEBUG On Thu, Sep 6, 2012 at 1:24 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi I am seeing the following debug messages, how do I turn them off? 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.MarkupContainer - Rendering raw markup 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - Rendered [MarkupContainer [Component id = 7]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Component - End render [MarkupContainer [Component id = 7]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - Rendered [MarkupContainer [Component id = linkContainer]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Component - End render [MarkupContainer [Component id = linkContainer]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.MarkupContainer - Rendering raw markup 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - Rendered [Page class = info.afilias.WAT.UI.Pages.SubMenuContents, id = 2, version = 0] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Component - End render [Page class = info.afilias.WAT.UI.Pages.SubMenuContents, id = 2, version = 0] 15:51:07.817 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - ending request for page [Page class = info.afilias.WAT.UI.Pages.SubMenuContents, id = 2, version = 0], request [method = GET, protocol = HTTP/1.1, requestURL = http://localhost:8080/application/home, contentType = null, contentLength = -1, contextPath = /application, pathInfo = null, requestURI = /application/home, servletPath = /home, pathTranslated = null] 15:51:07.817 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Session - update: Session not dirty. -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Debug messages
looks ok to me .. On Thu, Sep 6, 2012 at 1:59 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: This log setting? I tried changing log4j.rootLogger=INFO,Stdout, it still prints. Thank you for you answer. log4j.rootLogger=DEBUG,Stdout log4j.appender.Stdout=org.apache.log4j.ConsoleAppender log4j.appender.Stdout.layout=org.apache.log4j.TTCCLayout log4j.appender.Stdout.layout.ThreadPrinting=true log4j.appender.Stdout.layout.ContextPrinting=true log4j.appender.Stdout.layout.DateFormat=ISO8601 log4j.appender.Stdout.layout.TimeZone=GMT log4j.logger.org.springframework=INFO log4j.logger.org.springframework.beans.factory=DEBUG log4j.logger.org.apache.wicket=INFO log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO log4j.logger.org.apache.wicket.version=INFO log4j.logger.org.apache.wicket.RequestCycle=INFO On Wed, Sep 5, 2012 at 4:23 PM, vineet semwal vineetsemwal1...@gmail.comwrote: change the log setting to INFO from DEBUG On Thu, Sep 6, 2012 at 1:24 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi I am seeing the following debug messages, how do I turn them off? 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.MarkupContainer - Rendering raw markup 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - Rendered [MarkupContainer [Component id = 7]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Component - End render [MarkupContainer [Component id = 7]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - Rendered [MarkupContainer [Component id = linkContainer]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Component - End render [MarkupContainer [Component id = linkContainer]] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.MarkupContainer - Rendering raw markup 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - Rendered [Page class = info.afilias.WAT.UI.Pages.SubMenuContents, id = 2, version = 0] 15:51:07.816 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Component - End render [Page class = info.afilias.WAT.UI.Pages.SubMenuContents, id = 2, version = 0] 15:51:07.817 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Page - ending request for page [Page class = info.afilias.WAT.UI.Pages.SubMenuContents, id = 2, version = 0], request [method = GET, protocol = HTTP/1.1, requestURL = http://localhost:8080/application/home, contentType = null, contentLength = -1, contextPath = /application, pathInfo = null, requestURI = /application/home, servletPath = /home, pathTranslated = null] 15:51:07.817 [1945207123@qtp-636450175-3] DEBUG org.apache.wicket.Session - update: Session not dirty. -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Unable to get response page from PageRequestHandlerTracker
PageRequestHandlerTracker http://apache-wicket.1842946.n4.nabble.com/Interpolate-response-with-IResponseFilter-td4651476.html to meet this common requirement. However, when we use PageRequestHandlerTracker.getLastHandler(RequestCycle.get()), and then attempt to call #getPage(), a null pointer exception is thrown. Am I doing something wrong here? Please give your suggestions. -- Thanks regards James Selvakumar mcruncher.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks regards James Selvakumar mcruncher.com -- Thanks regards James Selvakumar mcruncher.com -- Thanks regards James Selvakumar mcruncher.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks regards James Selvakumar mcruncher.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks regards James Selvakumar mcruncher.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks regards James Selvakumar mcruncher.com -- Thanks regards James Selvakumar mcruncher.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Re: Re: Basic JUnit Test
that test looks ok to me ,please attach a quickstart On Mon, Aug 20, 2012 at 12:23 PM, JCoder i...@jcoder.de wrote: Hi Vineet, thanks for the reply. The line tester.getServletRequest().setParameter(myParam, testParam); But now Im breaking my head with the next issue. If you look at my first post, Im trying to do a test where a second page is rendered after a submit on an AjaxButton. The test code looks like this: 1. FirstPage page = (FirstPage) tester.startPage(FirstPage.class, pageParameters); 2. tester.assertRenderedPage(FirstPage.class); 3. page.getActionForm().setType(1); // where actionForm is a property/attribute of FirstPage. 4. FormTester formTester = tester.newFormTester(myForm); 5. tester.getServletRequest().setParameter(myParam, testParam); 6. tester.executeAjaxEvent(myForm:myAjaxButton, onclick); 7. tester.assertRenderedPage(SecondPage.class); The the test fails within the onSubmit(AjaxRequestTarget target, Form? form) saying that the attribute/property actionForm is null... Obviously the second (Ajax-) request is not shipped with the attribute/property values of his containing panel. Is this correct? Who can help me out here? Regards, Yusuf - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Re: Basic JUnit Test
why are you attaching a new ajaxformsubmitbehavior to an ajaxbutton ,it already has it's own ? if you want to pass some request parameter ,you can set it to the request by tester.getRequest().setParameter(key,value) On Fri, Aug 17, 2012 at 12:09 PM, JCoder i...@jcoder.de wrote: Hi Vineet, wickettester#ajaxEvent(button,onclick) is what I already tried. And it worked better but not finally finsihed. The cause of the next problem is that I need to provide some request parameter for this request since my application reads request and throws an exception if it can't find special parameters. Then I changed my code to provide some ajax request parameter because the button click is an instance of AjaxButton: Component comp = tester .getComponentFromLastRenderedPage(myForm:myAjaxButton); AjaxEventBehavior behavior = new AjaxFormSubmitBehavior(onclick) { @Override protected void onSubmit(AjaxRequestTarget target) { System.out.println(hh); } @Override protected void onError(AjaxRequestTarget target) { // TODO Auto-generated method stub } }; comp.add(behavior); tester.executeAjaxEvent(comp, onclick); Is this the correct to provide ajax request parameter? If so, I guess I need to chance something in onSubmit(AjaxRequestTarget), true ? Regards, Y - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Basic JUnit Test
that is expected behavior try wickettester#ajaxEvent(button,onclick) or it's path equivalent On Thu, Aug 16, 2012 at 7:00 PM, JCoder i...@jcoder.de wrote: Furthermore, I found out that my test code calls public void onSubmit(); instead of calling the overridden protected void onSubmit(AjaxRequestTarget target, Form? form); These overriden methods reside in my anonymous inner subclass of AjaxButton. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Basic JUnit Test
sorry typo i meant wickettester#executeAjaxEvent(button,onclick) On Thu, Aug 16, 2012 at 8:11 PM, vineet semwal vineetsemwa...@gmail.com wrote: that is expected behavior try wickettester#ajaxEvent(button,onclick) or it's path equivalent On Thu, Aug 16, 2012 at 7:00 PM, JCoder i...@jcoder.de wrote: Furthermore, I found out that my test code calls public void onSubmit(); instead of calling the overridden protected void onSubmit(AjaxRequestTarget target, Form? form); These overriden methods reside in my anonymous inner subclass of AjaxButton. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Calling isPageStateless() can mess up the statelessness of a page
it actually is isPageStatelessAtTimeIAmChecking i have one idea ..if isPageStateless() is only made to cache that variable after page#onbeforerender then it will be ok. if some call is made before that then don't allow caching of that variable ,it's very easy to make this improvement... what should be returned if call is made before page#onbeforerender depends how much you want to deviate from current behvior,you can return the isPagestateless() without caching with a warning *too early to check if page is stateless* or change the return type to Boolean and return null or throw runtimexception. On Sat, Aug 11, 2012 at 10:33 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: This is weird, I never received Martin's email! I managed to see it in your first reply Vineet... I also lost a few hours' worth of mailing list emails. Removing the caching in isPageStateless() would indeed make sure that the code in WebPageRenderer would not get the wrong value. However, all the calls made to isPageStateless() before that point could still get the wrong value returned, depending on the page. In that case, it seems kind of pointless to rely on isPageStateless() for anything at all before rendering (or at least onBeforeRender) occurs. I had a deeper look at callers of isPageStateless() in Wicket's source and found two possible causes of concern: WebPageRenderer#respond(RequestCycle) and ListenerInterfaceRequestHandler#respond(RequestCycle). I'll need to examine in them in more details. To be continued... On 10/08/2012 6:33 PM, vineet semwal wrote: you are right onconfigure is executed once before rendering . actually isPageStateless() can be broken easily as that variable can be populated before the page#onbeforerender is completed ie. say if some component in onbeforerender uses ispagestateless() then the variable will be set prematurely now i see martin-g is correct the solution is to just remove the caching but the problem can be that method is used in a lot of places and can be called many times foreg. it's used inside urlFor in Component which means link will at least call this method once in getUrl and if you have a repeater of 20 links this is 20 X isPageStateless() ,it actually depends on how expensive ispagestateless() itself is and at how many places is it used .. On Fri, Aug 10, 2012 at 10:53 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: On 10/08/2012 12:12 PM, vineet semwal wrote: it might give you wrong result even if you add your component after adding all the components because some components foreg. a repeater like listview/dataview/gridview add children in onbeforerender so isPageStateless() can be assumed to work correctly only after onbeforerender Yes that's exactly what I wanted to say! The repeaters are only populated in their onBeforeRender() which is executed after onConfigure(). that caching part is ok imho for isPageStateless() ,actually that cached variable is reset in page#onbeforerender which is the another reason isPageStateless() should work correctly after onbeforerender I hadn't noticed that reset in Page#onBeforeRender() so I had a look since it would contradict my observations. This is the stack trace when my label's onConfigure() is reached : TmpPage$1.onConfigure() line: 24-- my stateless indicator label; calls isPageStateless() TmpPage$1(Component).configure() line: 1028 TmpPage$1(Component).internalBeforeRender() line: 913 TmpPage$1(Component).beforeRender() line: 990 TmpPage(MarkupContainer).onBeforeRenderChildren() line: 1688 TmpPage(Component).onBeforeRender() line: 3830 TmpPage(Page).onBeforeRender() line: 802--- line 799 already did the reset of the cached stateless var TmpPage(Component).internalBeforeRender() line: 922 TmpPage(Component).beforeRender() line: 990 TmpPage(Component).internalPrepareForRender(boolean) line: 2204 TmpPage(Page).internalPrepareForRender(boolean) line: 247 TmpPage(Component).render() line: 2289 TmpPage(Page).renderPage() line: 1021 This stack trace occurs before the repeating view is populated which would render the page stateful and causes the Page to cache that it is stateless. By the way, I did find a workaround to achieve the desired effect so that's not why I brought this up here. I'm just concerned that such erroneous computations of the page's stateless state might cause other bugs down the road. - 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 -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr
Re: Calling isPageStateless() can mess up the statelessness of a page
it might give you wrong result even if you add your component after adding all the components because some components foreg. a repeater like listview/dataview/gridview add children in onbeforerender so isPageStateless() can be assumed to work correctly only after onbeforerender that caching part is ok imho for isPageStateless() ,actually that cached variable is reset in page#onbeforerender which is the another reason isPageStateless() should work correctly after onbeforerender On Fri, Aug 10, 2012 at 7:43 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, The page can become stateful during rendering, as you have noticed. There is a code in WebPageRenderer that re-renders the page if it change state during the first rendering because otherwise some previously rendered links may became broken. The real problem here is that #isPageStateless() does caching (by using Page#stateless variable) and once set it doesn't bother asking the components second time. I see no reason to add restrictions related to the page's lifecycle. This wont help. The only solution that I see is to remove the caching and make this call more expensive. But even in this case your logic wont work. It will work only if your label is at the very bottom of the page. On Fri, Aug 10, 2012 at 4:31 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, (Using Wicket 6.0-SNAPSHOT, or 1.5.7) I found a strange behavior when calling Page#isPageStateless(). I have a simple label in my personal wicket debug bar which displays stateless when a page is stateless. It works like so: new WebMarkupContainer(statelessMarker) { @Override protected void onConfigure() { super.onConfigure(); setVisible(getPage().isPageStateless()); } }; This worked great until I got by chance a page which was stateless except for ajax links which were children of a repeater. Here is what happens then: 1) onConfigure() is called which calls isPageStateless() and determines the page is stateless 2) onBeforeRender() is executed which populates the repeaters and adds stateful components to the tree 3) Since the page was determined stateless in 1), it stays that way 4) stateful ajax callback links do not work on the page Therefore, it seems that isPageStateless() should never be called before onBeforeRender() is executed or mayhem may ensue. However, after cursory inspection of callers of isPageStateless(), it looks like that is not always the case so I'm not certain. Should this be considered a bug? Should an assertion be made in isPageStateless() that onBeforeRender() was executed? Regards, Bertrand - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org