Re: loosing custom wicket session
On Sat, Mar 3, 2012 at 5:08 AM, grazia grazia.russolass...@gmail.com wrote: I did bind the session as you suggested. IN addition, I noticed that I had not appropriately accounted for my custom RequestCyle. Thank you for your feedback, it was very useful. I add the code hoping to help anybody running into this problem. this.setRequestCycleProvider(new MyRequestCycleProvider()); private final class MyRequestCycleProvider implements IRequestCycleProvider { @Override public RequestCycle get(RequestCycleContext context) { if (context.getRequest() instanceof WebRequest){ return new MyRequestCycle( context ); } return this.get(context); stackoverflowexception ^^ } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4440588.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 - Accessing the Previously Requested Page
See the code of http://www.wicket-library.com/wicket-examples/mappers/ example. Create a quickstart app with the NullPointerException and attach it to a ticket. On Sat, Mar 3, 2012 at 9:06 AM, Douglas Ferguson the...@gmail.com wrote: I just read that the setRootRequestMapper should be after all the mounts. I tried it and it still down't work. setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), httpsConfig)); On Mar 3, 2012, at 12:12 AM, Douglas Ferguson wrote: After tracing through the code, I see that when mounting pages, those mappers will bypass the root mapper by wrapping it in a composite So then I tried this: mount(new HttpsMapper(new MountedMapper(PAGE_MOUNT_MAP.get(page), page, new UrlPathPageParametersEncoder()), httpsConfig)); Now my pages are redirecting as I would expect, however, I get a null pointer: java.lang.NullPointerException at org.apache.wicket.protocol.https.HttpsMapper.mapHandler(HttpsMapper.java:129) at org.apache.wicket.request.mapper.CompoundRequestMapper.mapHandler(CompoundRequestMapper.java:157) On Mar 2, 2012, at 11:00 AM, Douglas Ferguson wrote: Thanks. I just found that and was about to report back. ;) One thing I just noticed is that my @RequireHttps annotation doesn't appear to be working. Do I need to configure that app to work with that? Douglas On Mar 2, 2012, at 10:20 AM, Igor Vaynberg wrote: write your own irequestcyclelistener, implement onrequesthandlerresolved() and in that method check if the handler is a IPageRequestHandler and stash the page anywhere you want, like in the request cycle's metadata. -igor On Fri, Mar 2, 2012 at 8:08 AM, Douglas Ferguson the...@gmail.com wrote: This doesn't work. Seems like cycle.getActiveRequestHandler() always returns null when in the endRequest call back. Thoughts? Douglas On Mar 2, 2012, at 8:13 AM, Douglas Ferguson wrote: I want to save off the previous page at then end of each request. Can be handy for things like oauth (making sure we return to the correct spot in the app). In 1.4 I could just pull the page class and parameters off the RequestCycle. Not I have to check to see if the active handler is IPageRequestHandler. Is this safe? What scenarios exist where the RequestHandler will not be an IPageClassRequestHandler? This is the only thing I could come up with. public void onEndRequest(RequestCycle cycle) { if(cycle.getActiveRequestHandler() instanceof IPageClassRequestHandler){ previousPageClass = ((IPageClassRequestHandler)cycle.getActiveRequestHandler()).getPageClass() }else{ log.error(cycle is not an IpageClassRequesthandler +cycle); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket authentication: how to store user?
Hi, Save the logged in user id in the Session. MySession.java: private long userId; public User getUser() { return userService.getUserById(userId); } AnyPage.java: user = MySession.get().getUser(); On Fri, Mar 2, 2012 at 9:38 PM, Paolo irresistible...@gmail.com wrote: I use this code as base: http://wicketstuff.org/wicket14/authentication/ I added registration and user/password sign-in and checking with database, instead of simple wicket as user and password. All works ok, but now I need in AdminPage to known which user is logged in. How can I implement it? Is there some Wicket implementation? Do I need to store user in Session or with cookies or in PageParameters? Is it secure? Thank you. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Component not found after AjaxSelfUpdatingTimerBehavior
Hi, I have two Tabs in the same browser where the same application is running. The scope is different but the session is the same. When I make a call to my application at Page1 in Tab1 and get the results In Page2, everything is fine. The problem occurs when I make parallel calls in the two Tabs and get the results. The links in the two tabs throw an Unexpected RuntimeException when I click on them. Error: Last cause: Could not find component 'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link' on page 'class org.mycomp.client.website.MyResults Stacktrace: Root cause: org.apache.wicket.request.handler.ComponentNotFoundException: Could not find component 'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link' on page 'class org.mycomp.client.website.MyResults at org.apache.wicket.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:181) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:92) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:239) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) The error just occurs, when I use the application in both tabs. The page ID of the pages in the two tabs is different and works fine, only the links are not working correctly. Thanks, Andre -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket authentication: how to store user?
Alle sabato 03 marzo 2012, Martin Grigorov ha scritto: Hi, Save the logged in user id in the Session. MySession.java: private long userId; public User getUser() { return userService.getUserById(userId); } AnyPage.java: user = MySession.get().getUser(); Thank you, for support and explanation code, very useful because I am a newbie. Just one another answer: Is it secure? Can someone alter session data and change user data, so an hacher could log with own account but operate with other accounts? Do I need some random code like this hdfds6yh6yhgtruifh4hf4frh9ruehfe to store temporanealy in session and database and associate it to a specific user? I added registration and user/password sign-in and checking with database, instead of simple wicket as user and password. All works ok, but now I need in AdminPage to known which user is logged in. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 - Accessing the Previously Requested Page
I think something else was interfering because it is working now. If you put the setRootRequstMapper after all the other mounts it works. It's a shame it has to be order dependent. The null pointer happens when you do this: mount(new HttpsMapper(new MountedMapper(myPage, page, new UrlPathPageParametersEncoder()), httpsConfig)); Then hit localhost/myPage in a browser. I've been burning the candle at both ends. Gonna get some rest. I'll post a quick start in a couple days. Cheers. Douglas On Mar 3, 2012, at 2:37 AM, Martin Grigorov wrote: See the code of http://www.wicket-library.com/wicket-examples/mappers/ example. Create a quickstart app with the NullPointerException and attach it to a ticket. On Sat, Mar 3, 2012 at 9:06 AM, Douglas Ferguson the...@gmail.com wrote: I just read that the setRootRequestMapper should be after all the mounts. I tried it and it still down't work. setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), httpsConfig)); On Mar 3, 2012, at 12:12 AM, Douglas Ferguson wrote: After tracing through the code, I see that when mounting pages, those mappers will bypass the root mapper by wrapping it in a composite So then I tried this: mount(new HttpsMapper(new MountedMapper(PAGE_MOUNT_MAP.get(page), page, new UrlPathPageParametersEncoder()), httpsConfig)); Now my pages are redirecting as I would expect, however, I get a null pointer: java.lang.NullPointerException at org.apache.wicket.protocol.https.HttpsMapper.mapHandler(HttpsMapper.java:129) at org.apache.wicket.request.mapper.CompoundRequestMapper.mapHandler(CompoundRequestMapper.java:157) On Mar 2, 2012, at 11:00 AM, Douglas Ferguson wrote: Thanks. I just found that and was about to report back. ;) One thing I just noticed is that my @RequireHttps annotation doesn't appear to be working. Do I need to configure that app to work with that? Douglas On Mar 2, 2012, at 10:20 AM, Igor Vaynberg wrote: write your own irequestcyclelistener, implement onrequesthandlerresolved() and in that method check if the handler is a IPageRequestHandler and stash the page anywhere you want, like in the request cycle's metadata. -igor On Fri, Mar 2, 2012 at 8:08 AM, Douglas Ferguson the...@gmail.com wrote: This doesn't work. Seems like cycle.getActiveRequestHandler() always returns null when in the endRequest call back. Thoughts? Douglas On Mar 2, 2012, at 8:13 AM, Douglas Ferguson wrote: I want to save off the previous page at then end of each request. Can be handy for things like oauth (making sure we return to the correct spot in the app). In 1.4 I could just pull the page class and parameters off the RequestCycle. Not I have to check to see if the active handler is IPageRequestHandler. Is this safe? What scenarios exist where the RequestHandler will not be an IPageClassRequestHandler? This is the only thing I could come up with. public void onEndRequest(RequestCycle cycle) { if(cycle.getActiveRequestHandler() instanceof IPageClassRequestHandler){ previousPageClass = ((IPageClassRequestHandler)cycle.getActiveRequestHandler()).getPageClass() }else{ log.error(cycle is not an IpageClassRequesthandler +cycle); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: redirecting in IRequestCyleListener.onException
Yeah Martin Grigorov recomended that I do just that: WebPage exceptionPage = new NotifyUserOfException(ex); IPageProvider provider = new PageProvider(page); return new RenderPageRequestHandler(provider /*, RenderPageRequestHandler.RedirectPolicy.XYZ */ ); But I finding that it throws away the page that I pass in and just uses the class object. I discovered this because I don't have a default constructor so it blows up on newInstance(). Douglas On Mar 3, 2012, at 1:36 AM, vineet semwal wrote: i think scheduling is wrong in this usecase ,actually just overriding onexception and returning your handler like you did before should have worked but wait for some one else to respond if its not working On Sat, Mar 3, 2012 at 12:47 PM, Douglas Ferguson the...@gmail.com wrote: I tried overriding onExceptionRequestHandlerResolved but I can't get this to work. I'm still not getting my error page to load on errors. Douglas On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: I mean too many redirects On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: Causes an infinite loop. Douglas On Mar 3, 2012, at 12:20 AM, vineet semwal wrote: i think you need to return the handler which you have scheduled On Sat, Mar 3, 2012 at 11:30 AM, Douglas Ferguson the...@gmail.com wrote: onException() wants be to run a redirectHandler. do I just return null? On Mar 2, 2012, at 11:44 PM, vineet semwal wrote: you need to do requestcycle.scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT)); On Sat, Mar 3, 2012 at 10:53 AM, Douglas Ferguson the...@gmail.com wrote: In migrating to wicket 1.5 from 1.4 I used this to redirect to my error page when an exception is thrown. But when I do this it is trying to instantiate a new copy of the page rather than using the one I pass in. IPageProvider provider = new PageProvider(new ClientErrorPage(ex)); return new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT); -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Button requires clicking multiple times in IE 8
Hi, I am using Apache wicket 1.4 for my application and this application has been live from past 1 year. And earlier we never had browser compatibility issues with IE 6, IE7. But recently i have and users have started complaining about multiple time clicking of BreadCrumbPanelLinks, InidicatingAjaxbuttons in the application to get the response. I had done some research but haven't really got solution to this problem. Any help would be appreciable. Thanks, Aza -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-requires-clicking-multiple-times-in-IE-8-tp4439183p4439183.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: redirecting in IRequestCyleListener.onException
you should also do page.setStatelessHint(false) Page page=new ClientErrorPage(ex); IPageProvider provider = new PageProvider(page); page.setStatelessHint(false); return new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT); On Sat, Mar 3, 2012 at 8:23 PM, Douglas Ferguson the...@gmail.com wrote: Yeah Martin Grigorov recomended that I do just that: WebPage exceptionPage = new NotifyUserOfException(ex); IPageProvider provider = new PageProvider(page); return new RenderPageRequestHandler(provider /*, RenderPageRequestHandler.RedirectPolicy.XYZ */ ); But I finding that it throws away the page that I pass in and just uses the class object. I discovered this because I don't have a default constructor so it blows up on newInstance(). Douglas On Mar 3, 2012, at 1:36 AM, vineet semwal wrote: i think scheduling is wrong in this usecase ,actually just overriding onexception and returning your handler like you did before should have worked but wait for some one else to respond if its not working On Sat, Mar 3, 2012 at 12:47 PM, Douglas Ferguson the...@gmail.com wrote: I tried overriding onExceptionRequestHandlerResolved but I can't get this to work. I'm still not getting my error page to load on errors. Douglas On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: I mean too many redirects On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: Causes an infinite loop. Douglas On Mar 3, 2012, at 12:20 AM, vineet semwal wrote: i think you need to return the handler which you have scheduled On Sat, Mar 3, 2012 at 11:30 AM, Douglas Ferguson the...@gmail.com wrote: onException() wants be to run a redirectHandler. do I just return null? On Mar 2, 2012, at 11:44 PM, vineet semwal wrote: you need to do requestcycle.scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT)); On Sat, Mar 3, 2012 at 10:53 AM, Douglas Ferguson the...@gmail.com wrote: In migrating to wicket 1.5 from 1.4 I used this to redirect to my error page when an exception is thrown. But when I do this it is trying to instantiate a new copy of the page rather than using the one I pass in. IPageProvider provider = new PageProvider(new ClientErrorPage(ex)); return new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT); -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: redirecting in IRequestCyleListener.onException
I decided to just put the exception in the session and just grab it from there. Douglas On Mar 3, 2012, at 10:26 AM, vineet semwal wrote: you should also do page.setStatelessHint(false) Page page=new ClientErrorPage(ex); IPageProvider provider = new PageProvider(page); page.setStatelessHint(false); return new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT); On Sat, Mar 3, 2012 at 8:23 PM, Douglas Ferguson the...@gmail.com wrote: Yeah Martin Grigorov recomended that I do just that: WebPage exceptionPage = new NotifyUserOfException(ex); IPageProvider provider = new PageProvider(page); return new RenderPageRequestHandler(provider /*, RenderPageRequestHandler.RedirectPolicy.XYZ */ ); But I finding that it throws away the page that I pass in and just uses the class object. I discovered this because I don't have a default constructor so it blows up on newInstance(). Douglas On Mar 3, 2012, at 1:36 AM, vineet semwal wrote: i think scheduling is wrong in this usecase ,actually just overriding onexception and returning your handler like you did before should have worked but wait for some one else to respond if its not working On Sat, Mar 3, 2012 at 12:47 PM, Douglas Ferguson the...@gmail.com wrote: I tried overriding onExceptionRequestHandlerResolved but I can't get this to work. I'm still not getting my error page to load on errors. Douglas On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: I mean too many redirects On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: Causes an infinite loop. Douglas On Mar 3, 2012, at 12:20 AM, vineet semwal wrote: i think you need to return the handler which you have scheduled On Sat, Mar 3, 2012 at 11:30 AM, Douglas Ferguson the...@gmail.com wrote: onException() wants be to run a redirectHandler. do I just return null? On Mar 2, 2012, at 11:44 PM, vineet semwal wrote: you need to do requestcycle.scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT)); On Sat, Mar 3, 2012 at 10:53 AM, Douglas Ferguson the...@gmail.com wrote: In migrating to wicket 1.5 from 1.4 I used this to redirect to my error page when an exception is thrown. But when I do this it is trying to instantiate a new copy of the page rather than using the one I pass in. IPageProvider provider = new PageProvider(new ClientErrorPage(ex)); return new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT); -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Component not found after AjaxSelfUpdatingTimerBehavior
Hi, I have two Tabs in the same browser where the same application is running. The scope is different but the session is the same. When I make a call to my application at Page1 in Tab1 and get the results In Page2, everything is fine. The problem occurs when I make parallel calls in the two Tabs and get the results. The links in the two tabs throw an Unexpected RuntimeException when I click on them. Error: Last cause: Could not find component 'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link' on page 'class org.mycomp.client.website.MyResults Stacktrace: Root cause: org.apache.wicket.request.handler.ComponentNotFoundException: Could not find component 'resultsContent:filter:filter_keywords:filter_box:filter_entries_list:filter_entries:17:filter_entries_link' on page 'class org.mycomp.client.website.MyResults at org.apache.wicket.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:181) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:92) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:239) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) The error just occurs, when I use the application in both tabs. The page ID of the pages in the two tabs is different and works fine, only the links are not working correctly. Thanks, Andre -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
reload model on render
Hi I have a content area in which I am displaying say PanelA. In PanelA I have a link to navigate to PanelB. When I click that I replace the content area with PanelB. When I construct PanelB i pass the instance PanelA via PanelA.this so that PanelB can show a link to go back to PanelA. When the go back link in panelB is clicked I do a replace content area with the object (instance of panelA) I recieved in the construtor. This works perfectly fine and the to n fro navigation is quick. It does not reload the whole stuff again. Done. But I need to reload some of the data changed in backend when coming from PanelB back to PanelA. Right now the PanelA shows the old data it does not re-load. I tried using the LoadableDetachableModel but that does not get triggered. Any clue please.. -naz -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/reload-model-on-render-tp4442813p4442813.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
WicketTester Spring
I'm trying to use wicket tester to test an app that is running with spring. I'm getting this error: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? I thought perhaps I would be able to use SpringJunit4ClassRunning, but that didn't work. Any tips? @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { classpath:spring/mockApplicationContext.xml})
Re: WicketTester Spring
And the app should know the context in which way? No no you have to set the app to wicket tester instance. code tester = new WicketTester(new MyApp()); /code Cheers Per Am 04.03.2012 06:17, schrieb Douglas Ferguson: I'm trying to use wicket tester to test an app that is running with spring. I'm getting this error: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? I thought perhaps I would be able to use SpringJunit4ClassRunning, but that didn't work. Any tips? @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { classpath:spring/mockApplicationContext.xml}) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: reload model on render
Any code please, Per Am 04.03.2012 03:16, schrieb nazeem: Hi I have a content area in which I am displaying say PanelA. In PanelA I have a link to navigate to PanelB. When I click that I replace the content area with PanelB. When I construct PanelB i pass the instance PanelA via PanelA.this so that PanelB can show a link to go back to PanelA. When the go back link in panelB is clicked I do a replace content area with the object (instance of panelA) I recieved in the construtor. This works perfectly fine and the to n fro navigation is quick. It does not reload the whole stuff again. Done. But I need to reload some of the data changed in backend when coming from PanelB back to PanelA. Right now the PanelA shows the old data it does not re-load. I tried using the LoadableDetachableModel but that does not get triggered. Any clue please.. -naz -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/reload-model-on-render-tp4442813p4442813.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org