Re: Best practice sought: Register client change at server

2014-07-10 Thread Ernesto Reinaldo Barreiro
Maybe this can be of some help https://github.com/reiern70/antilia-bits/tree/master/client-sign-out-parent On Fri, Jul 11, 2014 at 2:47 AM, Joachim Schrod wrote: > Hi, > > In a Wicket application I have JQuery code that triggers after a > certain time of user inactivity. I need to tell server-

Best practice sought: Register client change at server

2014-07-10 Thread Joachim Schrod
Hi, In a Wicket application I have JQuery code that triggers after a certain time of user inactivity. I need to tell server-side about that inactivity. No problem, I thought, just issue an AJAX request. Well, looking around I found several possibilities to do that as a side effect, but no compone

Re: best model for editing a list of items in a table?

2014-07-10 Thread Garret Wilson
Ah, never mind. I found the problem. The code below will work, except for the "Delete" action I was using an Ajax button (with confirmation). I needed to add the following after deletion so that it will get refreshed after the Ajax processing: target.addComponent(MyPage.this); Best, Garret

best model for editing a list of items in a table?

2014-07-10 Thread Garret Wilson
I have my own WidgetManager interface, and I want to edit a list of widgets in a table. I create an IDataProvider: final IDataProvider widgetProvider = new ListDataProvider() { @Override protected List getData() { return widgetManager.getWidgets()); } }; Then I populate

equals() method for LoadableDetachableModels

2014-07-10 Thread Boris Goldowsky
I’ve started using CheckingObjectOutputStream to test for models of database objects that are not properly detached, and find it very useful. However I just diagnosed (after many hours of frustration) that it can also cause problems rather than solve them. CheckingObjectOutputStream causes the

Re: base pages without kludge initialization

2014-07-10 Thread Garret Wilson
On 7/10/2014 3:43 AM, Martin Grigorov wrote: I think org.apache.wicket.Page#Page(org.apache.wicket.request.mapper.parameter.PageParameters, org.apache.wicket.model.IModel) is private to make it explicit that a page with PageParameters is bookmarkable and possibly stateless, and a Page with IMod

Re: need not-submitting button

2014-07-10 Thread Garret Wilson
On 7/9/2014 11:11 PM, Martin Grigorov wrote: There are three types of HTML buttons: submit, reset and button. You need the third one: Like Link. Ah, yes---I was a little HTML-rusty and the "button" type slipped my mind. Unfortunately, using type="button" my Button.onClick() method still does

Re: Bad zh_CN file in wicket-extensions-jar

2014-07-10 Thread Maxim Solodovnik
Thanks a lot Martin! On 10 July 2014 20:58, Martin Grigorov wrote: > Thanks! > https://issues.apache.org/jira/browse/WICKET-5637 > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > > On Thu, Jul 10, 2014 at 4:19 PM, Maxim Solodovnik > wrote: > > > Hello, >

Re: Bad zh_CN file in wicket-extensions-jar

2014-07-10 Thread Martin Grigorov
Thanks! https://issues.apache.org/jira/browse/WICKET-5637 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 10, 2014 at 4:19 PM, Maxim Solodovnik wrote: > Hello, > > We have received following error report: > > INFO 07-09 21:43:29.953 o.a.w.r.Properties

Bad zh_CN file in wicket-extensions-jar

2014-07-10 Thread Maxim Solodovnik
Hello, We have received following error report: INFO 07-09 21:43:29.953 o.a.w.r.PropertiesFactory:209 [http-nio-0.0.0.0-5080-exec-1] - Loading properties files from jar:file:/C:/om/apache-openmeetings-3.0.2/webapps/openmeetings/WEB-INF/lib/wicket-extensions-jar-6.14.0.jar!/org/apache/wicket/exte

Re: base pages without kludge initialization

2014-07-10 Thread Martin Grigorov
Hi, On Thu, Jul 10, 2014 at 12:54 AM, Garret Wilson wrote: > Everyone, > > Let's say I want to make a base page, extending WebPage. I want to make it > flexible so that subpages may initialize either using a model or page > parameters. So I try to do this: > > protected BasePage() > { >

Re: Not able to get Wicket Session even though WicketSessionFilter has been added

2014-07-10 Thread rsi610
My Wicket version is 1.3.5 The doFiler is as follows : public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpServletRequest = ((HttpServletRequest)request);