Re: Opening a Modal window on page load in Wicket 6
Hi, Thanks for the info. it did fix my issue. Regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Opening-a-Modal-window-on-page-load-in-Wicket-6-tp4666083p4666111.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: ListenerInvocationNotAllowedException and EmptyRequestHandler
I also get the same error: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: Behavior rejected interface invocation. Component: [NumberTextField [Component id = qty]] Behavior: id.co.bippo.inventory.web.VariantQtyEditor$2$2$1@530459be Listener: [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237) ~[RequestListenerInterface.class:6.15.0] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250) ~[ListenerInterfaceRequestHandler.class:6.15.0] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236) ~[ListenerInterfaceRequestHandler.class:6.15.0] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862) ~[RequestCycle$HandlerExecutor.class:6.15.0] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) ~[RequestHandlerStack.class:6.15.0] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) [RequestCycle.class:6.15.0] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) [RequestCycle.class:6.15.0] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) [RequestCycle.class:6.15.0] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) [WicketFilter.class:6.15.0] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) [WicketFilter.class:6.15.0] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) [WicketFilter.class:6.15.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.5] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.5] at org.soluvas.web.site.servlet.ShiroPrincipalsServletFilter.doFilter(ShiroPrincipalsServletFilter.java:59) [classes/:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.5] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.5] at org.soluvas.web.site.servlet.MoreMdcServletFilter.doFilter(MoreMdcServletFilter.java:62) [classes/:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.5] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.5] at ch.qos.logback.classic.helpers.MDCInsertingServletFilter.doFilter(MDCInsertingServletFilter.java:51) [MDCInsertingServletFilter.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.5] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.5] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) [AbstractShiroFilter.class:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) [AbstractShiroFilter$1.class:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [SubjectCallable.class:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [SubjectCallable.class:1.2.3] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) [DelegatingSubject.class:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) [AbstractShiroFilter.class:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [OncePerRequestFilter.class:1.2.3] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) [DelegatingFilterProxy.class:3.2.9.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) [DelegatingFilterProxy.class:3.2.9.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.5] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.5] at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:97) [AbstractInstrumentedFilter.class:3.0.2] at
Dynamically changing column visibility on DataTable during ajax refresh
Hi all, Is there a way to change the visibility of one or more columns of a DataTable during an ajax refresh? The only way I've found so far is to create a new list of columns and replace the DataTable but this is a bit cumbersome compared to simply writing ajaxRequestTarget.add(dataTable); Marios
Re: ListenerInvocationNotAllowedException and EmptyRequestHandler
It turns out it happens because I was using a custom AjaxChannel with name autodisable. Changing the AjaxChannel name to 0 solves the problem. BTW, Can I request AjaxChannel.DEFAULT public static constant with a value of 0 ? I don't feel comfortable typing 0 there, I much prefer a constant. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-and-EmptyRequestHandler-tp4663618p4666114.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: Dynamically changing column visibility on DataTable during ajax refresh
Hi, you can alter the list of columns you have passed to the DataTable constructor: new DataTable(id, columns, ...); onConfigure() { columns.clear(); columns.addAll(...); } onClick() { target.add(dataTable); } Regards Sven On 06/04/2014 12:20 PM, mscoon wrote: Hi all, Is there a way to change the visibility of one or more columns of a DataTable during an ajax refresh? The only way I've found so far is to create a new list of columns and replace the DataTable but this is a bit cumbersome compared to simply writing ajaxRequestTarget.add(dataTable); Marios - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamically changing column visibility on DataTable during ajax refresh
Thanks Sven. I was looking into implementing a isColumnVisible(int columnIndex) method, and your suggestion makes this quite easy. On Wed, Jun 4, 2014 at 1:53 PM, Sven Meier s...@meiers.net wrote: Hi, you can alter the list of columns you have passed to the DataTable constructor: new DataTable(id, columns, ...); onConfigure() { columns.clear(); columns.addAll(...); } onClick() { target.add(dataTable); } Regards Sven On 06/04/2014 12:20 PM, mscoon wrote: Hi all, Is there a way to change the visibility of one or more columns of a DataTable during an ajax refresh? The only way I've found so far is to create a new list of columns and replace the DataTable but this is a bit cumbersome compared to simply writing ajaxRequestTarget.add(dataTable); Marios - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Unit testing with Spring injected Application
Hi Nick, I know you have posted this solution a long time ago but I happen to be having the very same exception: IllegalStateException: Application name can only be set once. I'm using wicket 6, spring 4 (and hibernate). And I am trying to do an integration, end-to-end test. This is what my test looks like: I tried implementing your suggested solution but I'm afraid I'm stuck in a number of places: Where do you get the *applicationContext value from? If I add to the above class, it will throw a null pointer exception when running setUp. I tried a number of workarounds but none of them seem to work. I just would like to know how you initialized autowireCapableBeanFactory from applicationContext, if the test environment is set up by Spring. If I move setUpLoginEnvironment to inside userSuccessfullyLogsIn(), then I don't have the problem. I just wanted to divide the test up for readability purpose. Thanks in advance, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unit-testing-with-Spring-injected-Application-tp4653110p4666117.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: ComponentFeedbackPanel near radio group not working
DOH! I should have responded earlier. This turned out to be a cut paste error. A different part of the code was doing something similar, the code was cut pasted, but the ID was unchanged, and so a different ComponentFeedbackPanel was ALSO bound to that control, and, I presume, was taking the errors away from the one that was supposed to get them. Brian Mulholland For every complex problem, there is an answer that is clear, simple and wrong. --H.L. Mencken Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly, and applying the wrong remedies. --Groucho Marx On Tue, Jun 3, 2014 at 10:26 PM, Paul Bors [via Apache Wicket] ml-node+s1842946n4666109...@n4.nabble.com wrote: Do you use any custom feedback filters? Have a great day, Paul Bors On May 31, 2014, at 9:29 AM, Entropy [hidden email] wrote: On the group. It's the required rule. You can see group is set to required. And group is bound to the component feedback panel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentFeedbackPanel-near-radio-group-not-working-tp4666077p4666079.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] ~ Thank you, p...@bors.ws If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/ComponentFeedbackPanel-near-radio-group-not-working-tp4666077p4666109.html To unsubscribe from ComponentFeedbackPanel near radio group not working, click here. NAML -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentFeedbackPanel-near-radio-group-not-working-tp4666077p4666118.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
Error page stack trace
We set our error page via setInternalErrorPage on IApplicationSettings in 1.6. I'd like to bury the stack trace in a comment in the rendered page in our staging and dev environments to save time. But I have no idea how to get the originating trace in the error page. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-page-stack-trace-tp4666119.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: Error page stack trace
Why? You don't have access to your own log file? On Wed, Jun 4, 2014 at 10:43 AM, Entropy blmulholl...@gmail.com wrote: We set our error page via setInternalErrorPage on IApplicationSettings in 1.6. I'd like to bury the stack trace in a comment in the rendered page in our staging and dev environments to save time. But I have no idea how to get the originating trace in the error page. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-page-stack-trace-tp4666119.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: Error page stack trace
Hi, easiest solution is to use a custom requestCycleListener to store the exception in a thread-local. You can access this variable from your custom internalErrorPage. Hope this helps Sven On 06/04/2014 04:43 PM, Entropy wrote: We set our error page via setInternalErrorPage on IApplicationSettings in 1.6. I'd like to bury the stack trace in a comment in the rendered page in our staging and dev environments to save time. But I have no idea how to get the originating trace in the error page. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-page-stack-trace-tp4666119.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
Re: Error page stack trace
Btw, this is what you want: http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/request/cycle/AbstractRequestCycleListener.html#onException%28org.apache.wicket.request.cycle.RequestCycle,%20java.lang.Exception%29 Add your own IRequestCycleListener (AbstractRequestCycleListener) with org.apache.wicket.Application.getRequestCycleListeners().add() and implement its #onException(RequestCycle, Exception) then drop that in your HTML comment. On Wed, Jun 4, 2014 at 11:31 AM, Paul Bors p...@bors.ws wrote: Why? You don't have access to your own log file? On Wed, Jun 4, 2014 at 10:43 AM, Entropy blmulholl...@gmail.com wrote: We set our error page via setInternalErrorPage on IApplicationSettings in 1.6. I'd like to bury the stack trace in a comment in the rendered page in our staging and dev environments to save time. But I have no idea how to get the originating trace in the error page. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-page-stack-trace-tp4666119.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: Error page stack trace
On Wed, Jun 4, 2014 at 5:34 PM, Sven Meier s...@meiers.net wrote: Hi, easiest solution is to use a custom requestCycleListener to store the exception in a thread-local. You can access this variable from your custom internalErrorPage. Prefer RequestCycle's metadata instead. Hope this helps Sven On 06/04/2014 04:43 PM, Entropy wrote: We set our error page via setInternalErrorPage on IApplicationSettings in 1.6. I'd like to bury the stack trace in a comment in the rendered page in our staging and dev environments to save time. But I have no idea how to get the originating trace in the error page. -- View this message in context: http://apache-wicket.1842946. n4.nabble.com/Error-page-stack-trace-tp4666119.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
Re: ListenerInvocationNotAllowedException and EmptyRequestHandler
See https://issues.apache.org/jira/browse/WICKET-5603 I think the issue will be solved with Andrea's last proposal. On Wed, Jun 4, 2014 at 12:41 PM, Hendy Irawan he...@soluvas.com wrote: It turns out it happens because I was using a custom AjaxChannel with name autodisable. Changing the AjaxChannel name to 0 solves the problem. BTW, Can I request AjaxChannel.DEFAULT public static constant with a value of 0 ? I don't feel comfortable typing 0 there, I much prefer a constant. 0 is a funny name, isn't it ? But I'm afraid to change it because it will fail silently in users' apps. Sure you can ask - in JIRA! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-and-EmptyRequestHandler-tp4663618p4666114.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: Error page stack trace
The meta data facility looks intriguing but is a bit confusing. How is this supposed to work? I was expecting something like a map, but the key has to be this abstract object that takes an arrya of entry objects? And each entry object demands reference back to it's key? This is a confusing object, and the examples I see online haven't been very illuminating. How would I store and retrieve the exception from this collection by a simple string constant? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-page-stack-trace-tp4666119p4666127.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: Error page stack trace
See declare a key: https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java#L40 set a value: https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java#L97 get a value: https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java#L120 Martin Grigorov Wicket Training and Consulting On Wed, Jun 4, 2014 at 8:47 PM, Entropy blmulholl...@gmail.com wrote: The meta data facility looks intriguing but is a bit confusing. How is this supposed to work? I was expecting something like a map, but the key has to be this abstract object that takes an arrya of entry objects? And each entry object demands reference back to it's key? This is a confusing object, and the examples I see online haven't been very illuminating. How would I store and retrieve the exception from this collection by a simple string constant? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-page-stack-trace-tp4666119p4666127.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: Error page stack trace
Nevermind, I figured out from other examples that they tend to share the key in a static constant so that it becomes the object identity that allows you to access the meta data object. I wonder if that is really the intended use, but intended or not, it works. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-page-stack-trace-tp4666119p4666129.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
Support for optgroup ?
Is there any support for optgroup's in Wicket? I can only find some examples using ListView's and other hacky solutions so I'm guessing there isn't :) Thanks ! gr Thies
Re: Support for optgroup ?
Look at: http://mail-archives.apache.org/mod_mbox/wicket-users/200912.mbox/%3c303141550912040641r1e00841dudaacfefda9497...@mail.gmail.com%3E 2014-06-05 1:41 GMT+03:00 Thies Edeling tedel...@gmail.com: Is there any support for optgroup's in Wicket? I can only find some examples using ListView's and other hacky solutions so I'm guessing there isn't :) Thanks ! gr Thies