Re: [Wicket-user] proof of concept app
I had thought that I indicated the panel needed to respond to the Ajax onSubmit() via target.addComponent() -- but then I'm still figuring out how some of these pieces fit together. I do update the model underlying the cart panel in the onSubmit() method of the form, however I'm not sure how to get the cart panel to display its changed model without target.addComponent(cartPanel) public void onSubmit(AjaxRequestTarget target, Form f) { target.addComponent(theCartPanel); ModalWindow.close(target); } On 10/15/06, Dirk Markert [EMAIL PROTECTED] wrote: Scott, do you really have to get access to the panel from the form? Or can your panel respond to a model change you do in the form? Dirk 2006/10/15, Scott Swank [EMAIL PROTECTED]: One weekend later and I'm working on this again. Here's my situation: page - browse panel - cart panel - modal window - - edit item form (inside the modal window) I have an ajax submit button in the EditItemForm. I need to call public void onSubmit(AjaxRequestTarget target, Form f) { target.addComponent(theCartPanel); ModalWindow.close(target); } My problem is: how do I get access to the cart panel from within the form in the modal window? Here's what I've come up with, and everything feels a bit ugly: 1. I can get the cart from the session and have the cart fetch the cart panel -- ugh, the cart (business object) shouldn't know about a UI widget. 2. I can pass the cart panel in as my model object 3. I could put the cart panel in the session (or my own ThreadLocal) 4. I could crawl my way back up findParent(ProductPanel.class).visitChildren(IVisitorThatHandlesTargetAddComponent) Any suggestions would be entirely welcome. Thanks, Scott On 10/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: the question is one of lifecycle. does your reportmodel need to live as long as the user's session? if not then you dont need to put it into session. a shopping cart usually spans the session - so it makes complete sense to put it there. -Igor On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Why? Keeping the cart within constructors are kinda more POJO i think. What I am working on now, we have a reportmodel and almost all our pages has a constructor that requires our reportmodel, so we dont need to be aware of session. I feel that the application becomes more simple that way, however we do not have a LOT of panels, we have some which uses abstractmodels that grabs their data from the reportmodel, when switching pages we pass the reportmodel through. This might be a different approach from what you need when building a store site, but it feels pretty a lot simpler than have something stored in session context. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Eelco Hillenius Sent: Mon 09-10-2006 20:14 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] proof of concept app If you're main domain is a store, and a cart is information you want to keep throughout, it does make sense to put it in a session, so that you don't have to pass it around your pages and panels all the time. Eelco On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Looks nice(just skimping the code through without running it though), however I can see that you have extended the session, do you really have a need to store the cart in session context? Why not just create it on PosPage? -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Scott Swank Sent: Mon 09-10-2006 18:30 To: wicket-user@lists.sourceforge.net Cc: Subject:[Wicket-user] proof of concept app I've been pushing to use Wicket as our new web UI framework. We currently have a custom template that resembles Velocity. The broad concensus is to go with JSF. While I'm convinced that JSF will work for us it always seems so cumbersome. I've convinced by boss to give Wicket a 2nd look, and so this weekend I threw together the attached. If anyone is inclined to give it a quick glance for best practices type considerations I'd certainly be appreciative. The only relevant files are the jetty config, web.xml the java/html. There are two apps that both sub-class an abstract app. The Concierge version is for retail sales while the C3 version is for our call center. The urls are below. Thank you, Scott -- Forwarded message -- From: Scott Swank [EMAIL PROTECTED] Date: Oct 8, 2006 10:41 PM Subject: concierge/c3 in wicket To: Scott Swank [EMAIL PROTECTED], Scott Swank [EMAIL
Re: [Wicket-user] proof of concept app
I haven't worked with modal windows yet (though I like em!) but did you try to create one with a panel? That panel could just be a private class, and could reference theCartPanel or you could pass theCartPanel to it's constructor, and adding it to the ajax request target should work fine. The only thing I'm not sure whether it would give problems is whether the modal window layer is in the way of reaching the dom element for replacement properly. Maybe Matej or Igor can say more about that. Eelco On 10/15/06, Scott Swank [EMAIL PROTECTED] wrote: One weekend later and I'm working on this again. Here's my situation: page - browse panel - cart panel - modal window - - edit item form (inside the modal window) I have an ajax submit button in the EditItemForm. I need to call public void onSubmit(AjaxRequestTarget target, Form f) { target.addComponent(theCartPanel); ModalWindow.close(target); } My problem is: how do I get access to the cart panel from within the form in the modal window? Here's what I've come up with, and everything feels a bit ugly: 1. I can get the cart from the session and have the cart fetch the cart panel -- ugh, the cart (business object) shouldn't know about a UI widget. 2. I can pass the cart panel in as my model object 3. I could put the cart panel in the session (or my own ThreadLocal) 4. I could crawl my way back up findParent(ProductPanel.class).visitChildren(IVisitorThatHandlesTargetAddComponent) Any suggestions would be entirely welcome. Thanks, Scott On 10/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: the question is one of lifecycle. does your reportmodel need to live as long as the user's session? if not then you dont need to put it into session. a shopping cart usually spans the session - so it makes complete sense to put it there. -Igor On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Why? Keeping the cart within constructors are kinda more POJO i think. What I am working on now, we have a reportmodel and almost all our pages has a constructor that requires our reportmodel, so we dont need to be aware of session. I feel that the application becomes more simple that way, however we do not have a LOT of panels, we have some which uses abstractmodels that grabs their data from the reportmodel, when switching pages we pass the reportmodel through. This might be a different approach from what you need when building a store site, but it feels pretty a lot simpler than have something stored in session context. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Eelco Hillenius Sent: Mon 09-10-2006 20:14 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] proof of concept app If you're main domain is a store, and a cart is information you want to keep throughout, it does make sense to put it in a session, so that you don't have to pass it around your pages and panels all the time. Eelco On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Looks nice(just skimping the code through without running it though), however I can see that you have extended the session, do you really have a need to store the cart in session context? Why not just create it on PosPage? -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Scott Swank Sent: Mon 09-10-2006 18:30 To: wicket-user@lists.sourceforge.net Cc: Subject:[Wicket-user] proof of concept app I've been pushing to use Wicket as our new web UI framework. We currently have a custom template that resembles Velocity. The broad concensus is to go with JSF. While I'm convinced that JSF will work for us it always seems so cumbersome. I've convinced by boss to give Wicket a 2nd look, and so this weekend I threw together the attached. If anyone is inclined to give it a quick glance for best practices type considerations I'd certainly be appreciative. The only relevant files are the jetty config, web.xml the java/html. There are two apps that both sub-class an abstract app. The Concierge version is for retail sales while the C3 version is for our call center. The urls are below. Thank you, Scott -- Forwarded message -- From: Scott Swank [EMAIL PROTECTED] Date: Oct 8, 2006 10:41 PM Subject: concierge/c3 in wicket To: Scott Swank [EMAIL PROTECTED], Scott Swank [EMAIL PROTECTED] http://localhost:8081/concierge/app http://localhost:8081/concierge/c3 -- Scott Swank reformed mathematician Power is not a means, it is an end. One does not establish a dictatorship in order to safeguard a revolution; one makes the revolution in order to establish the dictatorship. The
Re: [Wicket-user] timeout event
well i am working on a tiny wicket ajax chat component and i need a way for the other forum members to know when a participant of the chat forum leaves either by logging off (easy) or by leaving his web page idle until his session times out , which is where i am not sure where to start but let me go over eelcos reference thanksOn 10/15/06, Johan Compagner [EMAIL PROTECTED] wrote: just before is not possible (as far as i know)it is always after..you can't touch the session then anymore (by using a httpsession listener)so what do you want to do?johan On 10/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: please in a situation where my application needs to trigger an eventjust before a session timeout, what can i do. thanks- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Aladejebi Ayodeji A., DabarObjects SolutionsEmail: [EMAIL PROTECTED]Mobile: +234 803 589 1780 Web: www.dabarobjects.comBlog: blog.dabarobjects.comCommunity:www.cowblock.net - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket starts incubation at Apache
Why? Martijn Dashorst wrote: The Wicket team is proud to announce that we are starting the process of joining the Apache Software Foundation. When projects first move to Apache, they are housed at the Apache Incubator. The Incubator helps incoming projects migrate to the vibrant Apache community. One of the primary goals of the incubator is to ensure that the joining community is open, diverse and effective meritocracy. During Wicket's incubation we will resolve any issues regarding license (in)compatibilities that might be present in our code. For more information on the incubation process, please read the documents found on the incubator website. To facilitate our transition we have moved parts of our development infrastructure to the Apache Incubator: o the subversion repository is now hosted at https://svn.apache.org/repos/asf/incubator/wicket o the development mailing list is now provided by wicket-dev at incubator.apache.org o the commit mailing list is now wicket-commits at incubator.apache.org o our bug tracking system is now hosted at http://issues.apache.org/jira/browse/WICKET Please join our incubating community at Apache by subscribing to the Wicket development list. Send a message to: wicket-dev-subscribe at incubator.apache.org and follow the instructions. If you want to recieve commit messages from Wicket to track our development, please send a message to wicket-commits-subscribe at incubator.apache.org and follow the instructions. When you need to file a bug report, a patch or a request for enhancement (RFE), then please do so at our Apache JIRA installation: http://issues.apache.org/jira/browse/WICKET We are in the process of importing the contents of the sourceforge trackers into our JIRA project space. This will loose some information in the process, however we strive to keep as much information as possible. As always, have fun and thanks for your support using Wicket! - the Wicket team ps. apologies for the cross posting -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket starts incubation at Apache
On 16/10/06, Anders Peterson [EMAIL PROTECTED] wrote: Why? Discussed on the mailing list (e.g. http://www.nabble.com/apache-wicket--tf2012023.html#a5529288) but http://wiki.apache.org/incubator/WicketProposal covers what we felt were the main reasons. /Gwyn Martijn Dashorst wrote: The Wicket team is proud to announce that we are starting the process of joining the Apache Software Foundation. When projects first move to Apache, they are housed at the Apache Incubator. The Incubator helps incoming projects migrate to the vibrant Apache community. One of the primary goals of the incubator is to ensure that the joining community is open, diverse and effective meritocracy. During Wicket's incubation we will resolve any issues regarding license (in)compatibilities that might be present in our code. For more information on the incubation process, please read the documents found on the incubator website. To facilitate our transition we have moved parts of our development infrastructure to the Apache Incubator: o the subversion repository is now hosted at https://svn.apache.org/repos/asf/incubator/wicket o the development mailing list is now provided by wicket-dev at incubator.apache.org o the commit mailing list is now wicket-commits at incubator.apache.org o our bug tracking system is now hosted at http://issues.apache.org/jira/browse/WICKET Please join our incubating community at Apache by subscribing to the Wicket development list. Send a message to: wicket-dev-subscribe at incubator.apache.org and follow the instructions. If you want to recieve commit messages from Wicket to track our development, please send a message to wicket-commits-subscribe at incubator.apache.org and follow the instructions. When you need to file a bug report, a patch or a request for enhancement (RFE), then please do so at our Apache JIRA installation: http://issues.apache.org/jira/browse/WICKET We are in the process of importing the contents of the sourceforge trackers into our JIRA project space. This will loose some information in the process, however we strive to keep as much information as possible. As always, have fun and thanks for your support using Wicket! - the Wicket team ps. apologies for the cross posting -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java -- Download Wicket 1.2.2 now! - http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] htmlunit (or jwebunit), wicket and ajax
Has anybody used htmlunit (or jwebunit) with success to create a functional test for a wicket application that contains ajax code? In a few words: I have a html page with a select element inside. When I select an option from this, an ajax request is made on the server and an input text appears on the page. My question is: How can I retrieve the input text in the unit test using htmlunit/jwebunit? I have here a very simple unit test that doesn't work (I cann't retrieve the input text). WebClient webClient = new WebClient(); webClient.setRedirectEnabled(true); webClient.setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage(baseUrl); Htmlform form = (HtmlForm) page.getForms().get(0); HtmlSelect select = form.getSelectByName(mySelect); page = (HtmlPage) select.setSelectedAttribute(0, true); assertTrue(page.getEnclosingWindow().getThreadManager().joinAll(5 * 1000)); System.out.println(page.asXml()); I attached the entire source code of the test. I used wicket 1.2.2 and htmlunit 1.9 with java 1.5 on linux. Where could be the problem (wicket, htmlunit, my code)? Thanks, Decebal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com src.tar.gz Description: 1009463993-src.tar.gz - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] htmlunit (or jwebunit), wicket and ajax
No, The problem is that dom and javascript are not completely implemented in both frameworks. For functional tests I advise to use Selenium instead. Martijn On 10/16/06, Decebal Suiu [EMAIL PROTECTED] wrote: Has anybody used htmlunit (or jwebunit) with success to create a functional test for a wicket application that contains ajax code? In a few words: I have a html page with a select element inside. When I select an option from this, an ajax request is made on the server and an input text appears on the page. My question is: How can I retrieve the input text in the unit test using htmlunit/jwebunit? I have here a very simple unit test that doesn't work (I cann't retrieve the input text). WebClient webClient = new WebClient(); webClient.setRedirectEnabled(true); webClient.setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage(baseUrl); Htmlform form = (HtmlForm) page.getForms().get(0); HtmlSelect select = form.getSelectByName(mySelect); page = (HtmlPage) select.setSelectedAttribute(0, true); assertTrue(page.getEnclosingWindow().getThreadManager().joinAll(5 * 1000)); System.out.println(page.asXml()); I attached the entire source code of the test. I used wicket 1.2.2 and htmlunit 1.9 with java 1.5 on linux. Where could be the problem (wicket, htmlunit, my code)? Thanks, Decebal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket starts incubation at Apache
Until now, it has been impossible for me to do a clean checkout from Apache. The connexion is closed by the server well before the checkout is complete. :-( Here is the error I get : Error: REPORT request failed on '/repos/asf/!svn/vcc/default' Error: REPORT of '/repos/asf/!svn/vcc/default': Could not read chunk size: A connection has been closed by the distant host. (https://svn.apache.org) Pierre-Yves Gwyn Evans a écrit : On 16/10/06, Anders Peterson [EMAIL PROTECTED] wrote: Why? Discussed on the mailing list (e.g. http://www.nabble.com/apache-wicket--tf2012023.html#a5529288) but http://wiki.apache.org/incubator/WicketProposal covers what we felt were the main reasons. /Gwyn Martijn Dashorst wrote: The Wicket team is proud to announce that we are starting the process of joining the Apache Software Foundation. When projects first move to Apache, they are housed at the Apache Incubator. The Incubator helps incoming projects migrate to the vibrant Apache community. One of the primary goals of the incubator is to ensure that the joining community is open, diverse and effective meritocracy. During Wicket's incubation we will resolve any issues regarding license (in)compatibilities that might be present in our code. For more information on the incubation process, please read the documents found on the incubator website. To facilitate our transition we have moved parts of our development infrastructure to the Apache Incubator: o the subversion repository is now hosted at https://svn.apache.org/repos/asf/incubator/wicket o the development mailing list is now provided by wicket-dev at incubator.apache.org o the commit mailing list is now wicket-commits at incubator.apache.org o our bug tracking system is now hosted at http://issues.apache.org/jira/browse/WICKET Please join our incubating community at Apache by subscribing to the Wicket development list. Send a message to: wicket-dev-subscribe at incubator.apache.org and follow the instructions. If you want to recieve commit messages from Wicket to track our development, please send a message to wicket-commits-subscribe at incubator.apache.org and follow the instructions. When you need to file a bug report, a patch or a request for enhancement (RFE), then please do so at our Apache JIRA installation: http://issues.apache.org/jira/browse/WICKET We are in the process of importing the contents of the sourceforge trackers into our JIRA project space. This will loose some information in the process, however we strive to keep as much information as possible. As always, have fun and thanks for your support using Wicket! - the Wicket team ps. apologies for the cross posting -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] htmlunit (or jwebunit), wicket and ajax
Ok, Selenium Remote Control with junit works in this case? Any example, advice or success story? Thanks, Decebal --- Martijn Dashorst [EMAIL PROTECTED] wrote: No, The problem is that dom and javascript are not completely implemented in both frameworks. For functional tests I advise to use Selenium instead. Martijn On 10/16/06, Decebal Suiu [EMAIL PROTECTED] wrote: Has anybody used htmlunit (or jwebunit) with success to create a functional test for a wicket application that contains ajax code? In a few words: I have a html page with a select element inside. When I select an option from this, an ajax request is made on the server and an input text appears on the page. My question is: How can I retrieve the input text in the unit test using htmlunit/jwebunit? I have here a very simple unit test that doesn't work (I cann't retrieve the input text). WebClient webClient = new WebClient(); webClient.setRedirectEnabled(true); webClient.setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage(baseUrl); Htmlform form = (HtmlForm) page.getForms().get(0); HtmlSelect select = form.getSelectByName(mySelect); page = (HtmlPage) select.setSelectedAttribute(0, true); assertTrue(page.getEnclosingWindow().getThreadManager().joinAll(5 * 1000)); System.out.println(page.asXml()); I attached the entire source code of the test. I used wicket 1.2.2 and htmlunit 1.9 with java 1.5 on linux. Where could be the problem (wicket, htmlunit, my code)? Thanks, Decebal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] timeout event
Alternatively, you could provide your own IHttpSessionStore. If you extend from HttpSessionStore or AbstractHttpSessionStore, you'll get a callback on onUnbind. You can't depend on the httpsession at that time, as it is being cleaned up, maybe already half way, but if you keep references to the Wicket session objects (add in onBind), you can still use that in onUnbind. Eelco On 10/16/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: well i am working on a tiny wicket ajax chat component and i need a way for the other forum members to know when a participant of the chat forum leaves either by logging off (easy) or by leaving his web page idle until his session times out , which is where i am not sure where to start but let me go over eelcos reference thanks On 10/15/06, Johan Compagner [EMAIL PROTECTED] wrote: just before is not possible (as far as i know) it is always after.. you can't touch the session then anymore (by using a httpsession listener) so what do you want to do? johan On 10/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: please in a situation where my application needs to trigger an event just before a session timeout, what can i do. thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Blog: blog.dabarobjects.com Community: www.cowblock.net - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket starts incubation at Apache
Pierre-Yves Saumont wrote: Until now, it has been impossible for me to do a clean checkout from Apache. The connexion is closed by the server well before the checkout is complete. :-( Here is the error I get : Error: REPORT request failed on '/repos/asf/!svn/vcc/default' Error: REPORT of '/repos/asf/!svn/vcc/default': Could not read chunk size: A connection has been closed by the distant host. (https://svn.apache.org) Have you tried it via http, rather than https? Upayavira - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] htmlunit (or jwebunit), wicket and ajax
I haven't used RC yet. I just know and have experienced that a manual start of the tests works perfectly together with ajax testing. Martijn On 10/16/06, Decebal Suiu [EMAIL PROTECTED] wrote: Ok, Selenium Remote Control with junit works in this case? Any example, advice or success story? Thanks, Decebal --- Martijn Dashorst [EMAIL PROTECTED] wrote: No, The problem is that dom and javascript are not completely implemented in both frameworks. For functional tests I advise to use Selenium instead. Martijn On 10/16/06, Decebal Suiu [EMAIL PROTECTED] wrote: Has anybody used htmlunit (or jwebunit) with success to create a functional test for a wicket application that contains ajax code? In a few words: I have a html page with a select element inside. When I select an option from this, an ajax request is made on the server and an input text appears on the page. My question is: How can I retrieve the input text in the unit test using htmlunit/jwebunit? I have here a very simple unit test that doesn't work (I cann't retrieve the input text). WebClient webClient = new WebClient(); webClient.setRedirectEnabled(true); webClient.setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage(baseUrl); Htmlform form = (HtmlForm) page.getForms().get(0); HtmlSelect select = form.getSelectByName(mySelect); page = (HtmlPage) select.setSelectedAttribute(0, true); assertTrue(page.getEnclosingWindow().getThreadManager().joinAll(5 * 1000)); System.out.println(page.asXml()); I attached the entire source code of the test. I used wicket 1.2.2 and htmlunit 1.9 with java 1.5 on linux. Where could be the problem (wicket, htmlunit, my code)? Thanks, Decebal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] htmlunit (or jwebunit), wicket and ajax
Thanks Martijn, Decebal --- Martijn Dashorst [EMAIL PROTECTED] wrote: I haven't used RC yet. I just know and have experienced that a manual start of the tests works perfectly together with ajax testing. Martijn On 10/16/06, Decebal Suiu [EMAIL PROTECTED] wrote: Ok, Selenium Remote Control with junit works in this case? Any example, advice or success story? Thanks, Decebal --- Martijn Dashorst [EMAIL PROTECTED] wrote: No, The problem is that dom and javascript are not completely implemented in both frameworks. For functional tests I advise to use Selenium instead. Martijn On 10/16/06, Decebal Suiu [EMAIL PROTECTED] wrote: Has anybody used htmlunit (or jwebunit) with success to create a functional test for a wicket application that contains ajax code? In a few words: I have a html page with a select element inside. When I select an option from this, an ajax request is made on the server and an input text appears on the page. My question is: How can I retrieve the input text in the unit test using htmlunit/jwebunit? I have here a very simple unit test that doesn't work (I cann't retrieve the input text). WebClient webClient = new WebClient(); webClient.setRedirectEnabled(true); webClient.setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage(baseUrl); Htmlform form = (HtmlForm) page.getForms().get(0); HtmlSelect select = form.getSelectByName(mySelect); page = (HtmlPage) select.setSelectedAttribute(0, true); assertTrue(page.getEnclosingWindow().getThreadManager().joinAll(5 * 1000)); System.out.println(page.asXml()); I attached the entire source code of the test. I used wicket 1.2.2 and htmlunit 1.9 with java 1.5 on linux. Where could be the problem (wicket, htmlunit, my code)? Thanks, Decebal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - Using Tomcat but need to do more? Need to support web
Re: [Wicket-user] Wicket starts incubation at Apache
It works much better with http ;-) Gwyn Evans a écrit : As Upayavira says, try with http see if that makes a difference? If not, I'm not sure - What client is that? Maybe try from a command-line client, if not already? I checked it with svn co http://svn.apache.org/repos/asf/incubator/wicket/trunk; and had no problems (although http://svn.apache.org/repos/asf/incubator/wicket/trunk/wicket-parent might be a smaller test!) /Gwyn On 16/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Until now, it has been impossible for me to do a clean checkout from Apache. The connexion is closed by the server well before the checkout is complete. :-( Here is the error I get : Error: REPORT request failed on '/repos/asf/!svn/vcc/default' Error: REPORT of '/repos/asf/!svn/vcc/default': Could not read chunk size: A connection has been closed by the distant host. (https://svn.apache.org) Pierre-Yves Gwyn Evans a écrit : On 16/10/06, Anders Peterson [EMAIL PROTECTED] wrote: Why? Discussed on the mailing list (e.g. http://www.nabble.com/apache-wicket--tf2012023.html#a5529288) but http://wiki.apache.org/incubator/WicketProposal covers what we felt were the main reasons. /Gwyn Martijn Dashorst wrote: The Wicket team is proud to announce that we are starting the process of joining the Apache Software Foundation. When projects first move to Apache, they are housed at the Apache Incubator. The Incubator helps incoming projects migrate to the vibrant Apache community. One of the primary goals of the incubator is to ensure that the joining community is open, diverse and effective meritocracy. During Wicket's incubation we will resolve any issues regarding license (in)compatibilities that might be present in our code. For more information on the incubation process, please read the documents found on the incubator website. To facilitate our transition we have moved parts of our development infrastructure to the Apache Incubator: o the subversion repository is now hosted at https://svn.apache.org/repos/asf/incubator/wicket o the development mailing list is now provided by wicket-dev at incubator.apache.org o the commit mailing list is now wicket-commits at incubator.apache.org o our bug tracking system is now hosted at http://issues.apache.org/jira/browse/WICKET Please join our incubating community at Apache by subscribing to the Wicket development list. Send a message to: wicket-dev-subscribe at incubator.apache.org and follow the instructions. If you want to recieve commit messages from Wicket to track our development, please send a message to wicket-commits-subscribe at incubator.apache.org and follow the instructions. When you need to file a bug report, a patch or a request for enhancement (RFE), then please do so at our Apache JIRA installation: http://issues.apache.org/jira/browse/WICKET We are in the process of importing the contents of the sourceforge trackers into our JIRA project space. This will loose some information in the process, however we strive to keep as much information as possible. As always, have fun and thanks for your support using Wicket! - the Wicket team ps. apologies for the cross posting -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket starts incubation at Apache
Pierre-Yves Saumont wrote: It works much better with http ;-) Great. https (while it may sometimes work) is really only intended for use when you are committing. Regards, Upayavira - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] timeout event
thank you eelco. that is more like it On 10/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Alternatively, you could provide your own IHttpSessionStore. If you extend from HttpSessionStore or AbstractHttpSessionStore, you'll get a callback on onUnbind. You can't depend on the httpsession at that time, as it is being cleaned up, maybe already half way, but if you keep references to the Wicket session objects (add in onBind), you can still use that in onUnbind. Eelco On 10/16/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: well i am working on a tiny wicket ajax chat component and i need a way for the other forum members to know when a participant of the chat forum leaves either by logging off (easy) or by leaving his web page idle until his session times out , which is where i am not sure where to start but let me go over eelcos reference thanks On 10/15/06, Johan Compagner [EMAIL PROTECTED] wrote: just before is not possible (as far as i know) it is always after.. you can't touch the session then anymore (by using a httpsession listener) so what do you want to do? johan On 10/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: please in a situation where my application needs to trigger an event just before a session timeout, what can i do. thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Blog: blog.dabarobjects.com Community: www.cowblock.net - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Blog: blog.dabarobjects.com Community: www.cowblock.net - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] proof of concept app
Are there any reasons not to add an additional reference to the cart panel on the page, so that I could then do something simple like: ((MyPage)getPage()).getCartPanel() Does Wicket have any sort of assumptions about it only it maintaining references between components, such that the above would cause trouble? On 10/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I haven't worked with modal windows yet (though I like em!) but did you try to create one with a panel? That panel could just be a private class, and could reference theCartPanel or you could pass theCartPanel to it's constructor, and adding it to the ajax request target should work fine. The only thing I'm not sure whether it would give problems is whether the modal window layer is in the way of reaching the dom element for replacement properly. Maybe Matej or Igor can say more about that. Eelco On 10/15/06, Scott Swank [EMAIL PROTECTED] wrote: One weekend later and I'm working on this again. Here's my situation: page - browse panel - cart panel - modal window - - edit item form (inside the modal window) I have an ajax submit button in the EditItemForm. I need to call public void onSubmit(AjaxRequestTarget target, Form f) { target.addComponent(theCartPanel); ModalWindow.close(target); } My problem is: how do I get access to the cart panel from within the form in the modal window? Here's what I've come up with, and everything feels a bit ugly: 1. I can get the cart from the session and have the cart fetch the cart panel -- ugh, the cart (business object) shouldn't know about a UI widget. 2. I can pass the cart panel in as my model object 3. I could put the cart panel in the session (or my own ThreadLocal) 4. I could crawl my way back up findParent(ProductPanel.class).visitChildren(IVisitorThatHandlesTargetAddComponent) Any suggestions would be entirely welcome. Thanks, Scott On 10/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: the question is one of lifecycle. does your reportmodel need to live as long as the user's session? if not then you dont need to put it into session. a shopping cart usually spans the session - so it makes complete sense to put it there. -Igor On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Why? Keeping the cart within constructors are kinda more POJO i think. What I am working on now, we have a reportmodel and almost all our pages has a constructor that requires our reportmodel, so we dont need to be aware of session. I feel that the application becomes more simple that way, however we do not have a LOT of panels, we have some which uses abstractmodels that grabs their data from the reportmodel, when switching pages we pass the reportmodel through. This might be a different approach from what you need when building a store site, but it feels pretty a lot simpler than have something stored in session context. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Eelco Hillenius Sent: Mon 09-10-2006 20:14 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] proof of concept app If you're main domain is a store, and a cart is information you want to keep throughout, it does make sense to put it in a session, so that you don't have to pass it around your pages and panels all the time. Eelco On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Looks nice(just skimping the code through without running it though), however I can see that you have extended the session, do you really have a need to store the cart in session context? Why not just create it on PosPage? -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Scott Swank Sent: Mon 09-10-2006 18:30 To: wicket-user@lists.sourceforge.net Cc: Subject:[Wicket-user] proof of concept app I've been pushing to use Wicket as our new web UI framework. We currently have a custom template that resembles Velocity. The broad concensus is to go with JSF. While I'm convinced that JSF will work for us it always seems so cumbersome. I've convinced by boss to give Wicket a 2nd look, and so this weekend I threw together the attached. If anyone is inclined to give it a quick glance for best practices type considerations I'd certainly be appreciative. The only relevant files are the jetty config, web.xml the java/html. There are two apps that both sub-class an abstract app. The Concierge version is for retail sales while the C3 version is for our call center. The urls are below. Thank you, Scott --
Re: [Wicket-user] proof of concept app
Nope, that would be fine. Just be careful no to keep references to stale pages and stuff. Eelco On 10/16/06, Scott Swank [EMAIL PROTECTED] wrote: Are there any reasons not to add an additional reference to the cart panel on the page, so that I could then do something simple like: ((MyPage)getPage()).getCartPanel() Does Wicket have any sort of assumptions about it only it maintaining references between components, such that the above would cause trouble? On 10/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I haven't worked with modal windows yet (though I like em!) but did you try to create one with a panel? That panel could just be a private class, and could reference theCartPanel or you could pass theCartPanel to it's constructor, and adding it to the ajax request target should work fine. The only thing I'm not sure whether it would give problems is whether the modal window layer is in the way of reaching the dom element for replacement properly. Maybe Matej or Igor can say more about that. Eelco On 10/15/06, Scott Swank [EMAIL PROTECTED] wrote: One weekend later and I'm working on this again. Here's my situation: page - browse panel - cart panel - modal window - - edit item form (inside the modal window) I have an ajax submit button in the EditItemForm. I need to call public void onSubmit(AjaxRequestTarget target, Form f) { target.addComponent(theCartPanel); ModalWindow.close(target); } My problem is: how do I get access to the cart panel from within the form in the modal window? Here's what I've come up with, and everything feels a bit ugly: 1. I can get the cart from the session and have the cart fetch the cart panel -- ugh, the cart (business object) shouldn't know about a UI widget. 2. I can pass the cart panel in as my model object 3. I could put the cart panel in the session (or my own ThreadLocal) 4. I could crawl my way back up findParent(ProductPanel.class).visitChildren(IVisitorThatHandlesTargetAddComponent) Any suggestions would be entirely welcome. Thanks, Scott On 10/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: the question is one of lifecycle. does your reportmodel need to live as long as the user's session? if not then you dont need to put it into session. a shopping cart usually spans the session - so it makes complete sense to put it there. -Igor On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Why? Keeping the cart within constructors are kinda more POJO i think. What I am working on now, we have a reportmodel and almost all our pages has a constructor that requires our reportmodel, so we dont need to be aware of session. I feel that the application becomes more simple that way, however we do not have a LOT of panels, we have some which uses abstractmodels that grabs their data from the reportmodel, when switching pages we pass the reportmodel through. This might be a different approach from what you need when building a store site, but it feels pretty a lot simpler than have something stored in session context. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Eelco Hillenius Sent: Mon 09-10-2006 20:14 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] proof of concept app If you're main domain is a store, and a cart is information you want to keep throughout, it does make sense to put it in a session, so that you don't have to pass it around your pages and panels all the time. Eelco On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Looks nice(just skimping the code through without running it though), however I can see that you have extended the session, do you really have a need to store the cart in session context? Why not just create it on PosPage? -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Scott Swank Sent: Mon 09-10-2006 18:30 To: wicket-user@lists.sourceforge.net Cc: Subject:[Wicket-user] proof of concept app I've been pushing to use Wicket as our new web UI framework. We currently have a custom template that resembles Velocity. The broad concensus is to go with JSF. While I'm convinced that JSF will work for us it always seems so cumbersome. I've convinced by boss to give Wicket a 2nd look, and so this weekend I threw together the attached. If anyone is inclined to give it a quick glance for best practices type considerations I'd certainly be appreciative.
Re: [Wicket-user] proof of concept app
Gotcha. Much appreciated. On 10/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Nope, that would be fine. Just be careful no to keep references to stale pages and stuff. Eelco On 10/16/06, Scott Swank [EMAIL PROTECTED] wrote: Are there any reasons not to add an additional reference to the cart panel on the page, so that I could then do something simple like: ((MyPage)getPage()).getCartPanel() Does Wicket have any sort of assumptions about it only it maintaining references between components, such that the above would cause trouble? On 10/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I haven't worked with modal windows yet (though I like em!) but did you try to create one with a panel? That panel could just be a private class, and could reference theCartPanel or you could pass theCartPanel to it's constructor, and adding it to the ajax request target should work fine. The only thing I'm not sure whether it would give problems is whether the modal window layer is in the way of reaching the dom element for replacement properly. Maybe Matej or Igor can say more about that. Eelco On 10/15/06, Scott Swank [EMAIL PROTECTED] wrote: One weekend later and I'm working on this again. Here's my situation: page - browse panel - cart panel - modal window - - edit item form (inside the modal window) I have an ajax submit button in the EditItemForm. I need to call public void onSubmit(AjaxRequestTarget target, Form f) { target.addComponent(theCartPanel); ModalWindow.close(target); } My problem is: how do I get access to the cart panel from within the form in the modal window? Here's what I've come up with, and everything feels a bit ugly: 1. I can get the cart from the session and have the cart fetch the cart panel -- ugh, the cart (business object) shouldn't know about a UI widget. 2. I can pass the cart panel in as my model object 3. I could put the cart panel in the session (or my own ThreadLocal) 4. I could crawl my way back up findParent(ProductPanel.class).visitChildren(IVisitorThatHandlesTargetAddComponent) Any suggestions would be entirely welcome. Thanks, Scott On 10/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: the question is one of lifecycle. does your reportmodel need to live as long as the user's session? if not then you dont need to put it into session. a shopping cart usually spans the session - so it makes complete sense to put it there. -Igor On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Why? Keeping the cart within constructors are kinda more POJO i think. What I am working on now, we have a reportmodel and almost all our pages has a constructor that requires our reportmodel, so we dont need to be aware of session. I feel that the application becomes more simple that way, however we do not have a LOT of panels, we have some which uses abstractmodels that grabs their data from the reportmodel, when switching pages we pass the reportmodel through. This might be a different approach from what you need when building a store site, but it feels pretty a lot simpler than have something stored in session context. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Eelco Hillenius Sent: Mon 09-10-2006 20:14 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] proof of concept app If you're main domain is a store, and a cart is information you want to keep throughout, it does make sense to put it in a session, so that you don't have to pass it around your pages and panels all the time. Eelco On 10/9/06, Nino Wael [EMAIL PROTECTED] wrote: Looks nice(just skimping the code through without running it though), however I can see that you have extended the session, do you really have a need to store the cart in session context? Why not just create it on PosPage? -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Scott Swank Sent: Mon 09-10-2006 18:30 To: wicket-user@lists.sourceforge.net Cc: Subject:[Wicket-user] proof of concept app I've been pushing to use Wicket as our new web UI framework. We currently have a custom template that resembles Velocity. The broad concensus is to go with JSF. While I'm convinced that JSF will work for us it always seems so cumbersome. I've
[Wicket-user] Move to Apache: Namespace?
This question is currently not so very imnportant but, for XHTML users, will the xmlns:wicket=http://wicket.sourceforge.net/ wicket namespace change too? Stefan Lindner winmail.dat- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Move to Apache: Namespace?
I normally use xmlns:wicket=http://www.wicketframework.org and IMHO it will stay the same.FrankOn 10/16/06, Stefan Lindner [EMAIL PROTECTED] wrote: This question is currently not so very imnportant but, for XHTML users, will thexmlns:wicket=http://wicket.sourceforge.net/wicket namespace change too? Stefan Lindner-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to reload page from within ajax call
Hello all, I may be missing something basic, however I have a dirty flag within a page so that if the data has changed, on the next request the page is refreshed. The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine. I have tried the following: 1. setResponsePage() 2. RequestCycle rc = RequestCycle.get(); rc.setResponsePage(ClientMasterPage.class); Neither of which provide the desired result. Any suggestions are welcome. Thanks to all. -- View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6842823 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to reload page from within ajax call
what version of wicket are you using? i thought we added support for setResponsePage() from an ajax call in 1.2.2, but maybe im wrong and it will be in 1.2.3-IgorOn 10/16/06, De Soca [EMAIL PROTECTED] wrote: Hello all,I may be missing something basic, however I have a dirty flag within a pageso that if the data has changed, on the next request the page is refreshed.The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine.I have tried the following:1. setResponsePage()2. RequestCycle rc = RequestCycle.get();rc.setResponsePage(ClientMasterPage.class);Neither of which provide the desired result. Any suggestions are welcome.Thanks to all.--View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6842823 Sent from the Wicket - User mailing list archive at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to reload page from within ajax call
We did add support for it in 1.2.2. Is that the version you use, De Soca?FrankOn 10/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote:what version of wicket are you using? i thought we added support for setResponsePage() from an ajax call in 1.2.2, but maybe im wrong and it will be in 1.2.3-IgorOn 10/16/06, De Soca [EMAIL PROTECTED] wrote: Hello all,I may be missing something basic, however I have a dirty flag within a pageso that if the data has changed, on the next request the page is refreshed.The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine.I have tried the following:1. setResponsePage()2. RequestCycle rc = RequestCycle.get();rc.setResponsePage(ClientMasterPage.class);Neither of which provide the desired result. Any suggestions are welcome.Thanks to all.--View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6842823 Sent from the Wicket - User mailing list archive at Nabble.com.- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Move to Apache: Namespace?
Frank Bille wrote: I normally use xmlns:wicket=http://www.wicketframework.org; and IMHO it will stay the same. Frank On 10/16/06, * Stefan Lindner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This question is currently not so very imnportant but, for XHTML users, will the xmlns:wicket=http://wicket.sourceforge.net/ wicket namespace change too? If it does, it will change with a major version - 2.0 or 3.0, not a minor version, I would say. Regards, Upayavira - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
I'm using Wicket 2.0The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX. When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called:The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ).The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java).The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any _javascript_ that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax.If this is a bug I can add it to the JIRA.-- Caleb Land( [EMAIL PROTECTED] ) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: Adding a component via ajax that contributes javascript (like AutoCompleteTextField) doesn't work correctly in Firefox
For some reason if the _javascript_ is rendered in the component's onRender(MarkupStream) method (as opposed to rendering the _javascript_ through a behavior) the _javascript_ is executed correctly. This is strange because when I look at the ajax debug window and compare the ajax responses of the two methods there isn't anything different other than rendering in a behavior causes the script to be rendered in a header-contribution as well as being rendered alongside the component. I think this is caused by the issue I mention in my latest email IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.If I prevent Wicket from calling IBehavior#rendered() (as mentioned in the above referenced mail) twice on a component during an AJAX request by commenting out the call to component.renderedBehaviors(); (AjaxRequestTarget.java line 524) then the _javascript_ is executed correctly in firefox, and that _javascript_ is not added as a header-contribution in the ajax response.I don't understand why having the _javascript_ in a header-contribution as well as a component in the response would cause it not to execute correctly.On 10/15/06, Caleb Land [EMAIL PROTECTED] wrote:Okay. I'm making this up as I go along, so this could be the worst idea ever, but what about scanning a component's response for script tag, putting the contents in the AjaxRequestTarget as _javascript_s, and removing the script tag from the normal component output? From my reading of the source code, the evaluation of those scripts is controlled by the wicket ajax system (since a call to eval() is made when processing them). I'm a Wicket/Web development newbie so I can't see far enough ahead to see potential problems with a solution like this. On 10/15/06, Matej Knopp [EMAIL PROTECTED] wrote: Well, I'll try to look at it later today (or tomorrow). The problem isthat firefox executes the script automatically, while in otherbrowsers we need to call the scripts in the fragment manually. So I can't affect the order in which the scripts are bing called.I'll see what I can do about it.-MatejCaleb Land wrote: I've created the same testcase using wicket 1.2.2 and it works correctly in Firefox: http://www.granfalloon.com/~caleb/wicket-quickstart-1.2.2.zip http://www.granfalloon.com/%7Ecaleb/wicket-quickstart-1.2.2.zip I'm looking into the cause of it... On 10/15/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using the 2.0 trunk.I think he was referring to the header contribution working when added via ajax.That does appear to work (the correct script reference is made to the autocomplete _javascript_ library), however the code that actually calls the library to create the field in the browser is being called before the field is placed on the page in Firefox (it works correctly in the other browsers I tried). On 10/15/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This is the same problem I reported a few days ago for Wicket 1.2.2. Igor wrote that it was already solved in th 1.x trunk. So maybe this is also the case for the 2.x trunk. Regards,Erik. Caleb Land schreef: When I add a component via ajax that contributes _javascript_ to be executed (like the AutoCompleteTextField from wicket-extensions) the _javascript_ is executed before the component elements are added to the page in Firefox ( 1.5.0.7 http://1.5.0.7 http://1.5.0.7).The same code works correctly in Safari, Opera, and IE7 (I haven't tests 6.x). In the case of the AutoCompleteTextField (which adds _javascript_ through the AbstractAutoCompleteBehavior), the _javascript_: new Wicket.Ajax.AutoComplete('id ', 'callbackUrl'); gets executed before the control is added to the page, so an element with the specified id cannot be found and the autocomplete functionality isn't added to the control. Here is a quickstart application that demonstrates the problem: http://www.granfalloon.com/~caleb/wicket-quickstart.zip http://www.granfalloon.com/%7Ecaleb/wicket-quickstart.zip http://www.granfalloon.com/%7Ecaleb/wicket-quickstart.zip http://www.granfalloon.com/%7Ecaleb/wicket-quickstart.zip if I alter AbstractAutoCompleteBehavior to execute the _javascript_ in a setTimeout() then everything work correctly in Firefox. -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]) -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
On 10/16/06, Caleb Land [EMAIL PROTECTED] wrote: I'm using Wicket 2.0The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX. When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called:The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ).The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java). That should be lines 513 and 524 of AjaxRequestTarget.java The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any _javascript_ that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax.If this is a bug I can add it to the JIRA.-- Caleb Land( [EMAIL PROTECTED] ) -- Caleb Land([EMAIL PROTECTED]) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
yes its a bug, please file it-igorOn 10/16/06, Caleb Land [EMAIL PROTECTED] wrote: On 10/16/06, Caleb Land [EMAIL PROTECTED] wrote: I'm using Wicket 2.0The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX. When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called:The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ).The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java). That should be lines 513 and 524 of AjaxRequestTarget.java The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any _javascript_ that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax.If this is a bug I can add it to the JIRA.-- Caleb Land( [EMAIL PROTECTED] ) -- Caleb Land( [EMAIL PROTECTED]) -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to reload page from within ajax call
Sorry, I am using version 1.2.2 igor.vaynberg wrote: what version of wicket are you using? i thought we added support for setResponsePage() from an ajax call in 1.2.2, but maybe im wrong and it will be in 1.2.3 -Igor On 10/16/06, De Soca [EMAIL PROTECTED] wrote: Hello all, I may be missing something basic, however I have a dirty flag within a page so that if the data has changed, on the next request the page is refreshed. The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine. I have tried the following: 1. setResponsePage() 2. RequestCycle rc = RequestCycle.get(); rc.setResponsePage(ClientMasterPage.class); Neither of which provide the desired result. Any suggestions are welcome. Thanks to all. -- View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6842823 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6846807 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-contrib-data-ejb3
Hi, There exists a module called wicket-contrib-data-hibernate-3.0. Are there plans for releasing wicket-contrib-data-ejb3 in the near future? I know Cheeser was working on one but I don't know how far along it is. Thanks, Gili signature.asc Description: OpenPGP digital signature - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to reload page from within ajax call
When approx. is 1.2.3 due out? Frank Bille wrote: We did add support for it in 1.2.2. Is that the version you use, De Soca? Frank On 10/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: what version of wicket are you using? i thought we added support for setResponsePage() from an ajax call in 1.2.2, but maybe im wrong and it will be in 1.2.3 -Igor On 10/16/06, De Soca [EMAIL PROTECTED] wrote: Hello all, I may be missing something basic, however I have a dirty flag within a page so that if the data has changed, on the next request the page is refreshed. The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine. I have tried the following: 1. setResponsePage() 2. RequestCycle rc = RequestCycle.get(); rc.setResponsePage(ClientMasterPage.class); Neither of which provide the desired result. Any suggestions are welcome. Thanks to all. -- View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6842823 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6846996 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to reload page from within ajax call
soon :)-IgorOn 10/16/06, De Soca [EMAIL PROTECTED] wrote: When approx. is 1.2.3 due out?Frank Bille wrote: We did add support for it in 1.2.2. Is that the version you use, De Soca? Frank On 10/16/06, Igor Vaynberg [EMAIL PROTECTED] wrote: what version of wicket are you using? i thought we added support for setResponsePage() from an ajax call in 1.2.2, but maybe im wrong and it will be in 1.2.3 -Igor On 10/16/06, De Soca [EMAIL PROTECTED] wrote: Hello all, I may be missing something basic, however I have a dirty flag within a page so that if the data has changed, on the next request the page is refreshed. The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine. I have tried the following: 1. setResponsePage() 2. RequestCycle rc = RequestCycle.get(); rc.setResponsePage(ClientMasterPage.class); Neither of which provide the desired result. Any suggestions are welcome. Thanks to all. -- View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6842823 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6846996 Sent from the Wicket - User mailing list archive at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-stuff commit rights
Hi Martijn, I wanted to commit some updated to the wicket-contrib-auth-class-roles module which I am the author of but SVN won't accept my sourceforge username/password. Is it possible my commit rights went away again? Please verify what the problem is and let me know when I can commit the changes. The username is cowwoc Thanks, Gili signature.asc Description: OpenPGP digital signature - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-stuff commit rights
Sorry for mistakenly posting this to the entire list :( Serves me right for clicking Reply all :) On a sidenote, this turned out to be due to sf.net weirdness. I needed to explicitly logout, change my password and log back in to my sf.net account and that seemed to resolve it. Gili cowwoc wrote: Hi Martijn, I wanted to commit some updated to the wicket-contrib-auth-class-roles module which I am the author of but SVN won't accept my sourceforge username/password. Is it possible my commit rights went away again? Please verify what the problem is and let me know when I can commit the changes. The username is cowwoc Thanks, Gili signature.asc Description: OpenPGP digital signature - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-stuff commit rights
Due to a security breach a couple of months ago, sf.net had to reset all passwords. Probably this is what caused your problems. Martijn On 10/17/06, cowwoc [EMAIL PROTECTED] wrote: Sorry for mistakenly posting this to the entire list :( Serves me right for clicking Reply all :) On a sidenote, this turned out to be due to sf.net weirdness. I needed to explicitly logout, change my password and log back in to my sf.net account and that seemed to resolve it. Gili cowwoc wrote: Hi Martijn, I wanted to commit some updated to the wicket-contrib-auth-class-roles module which I am the author of but SVN won't accept my sourceforge username/password. Is it possible my commit rights went away again? Please verify what the problem is and let me know when I can commit the changes. The username is cowwoc Thanks, Gili - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] shades ibiblio
Man, getting my maven project up on ibiblio is like applying for a mortgage or something! Well, hopefully it will be uploaded soon by the great gatekeepers. Anyway, as soon as it is on ibiblio, I can checkin the phonebook with shades support. I don't want to check it in before shades is on ibiblio, because I want shades to be seemlessly integrated with the phonebook pom. Can't wait to get some feedback! -geoff - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user