Re: wicket-bootstrap NoSuchMethodError: Url.parse
Hi, Make sure you don't have another version of Wicket in the classpath. Since you use Maven you can check with: mvn dependency:tree The missing method is in Wicket 6.x: https://github.com/apache/wicket/blob/master/wicket-request/src/main/java/org/apache/wicket/request/Url.java?source=c#L203 On Tue, Oct 22, 2013 at 6:57 AM, meduolis meduol...@gmail.com wrote: Wicket is 6.11.0 Bootstrap: also tried this bootstrap version: The same exception with both of them. I install Bootstrap into application using those settings in init() method: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-NoSuchMethodError-Url-parse-tp4661909p4661912.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: unwanted DefaultPageManagerProvider
Hi Uwe, currently there's no way to change the PageManager once it's fetched in Application#internalGetPageManager(). Do you have a stacktrace for the code triggering Application.getPageManagerProvider().get() ? Besides devutils I don't see any call to this from Wicket. Regards Sven On 10/21/2013 06:16 PM, uwe schaefer wrote: On 10/21/2013 09:07 AM, Martin Grigorov wrote: Hi Martin, I hope the ticket will describe better what and the damage is done actually means. sorry if i was unclear. looks like i got lost in the details. the actual damage is: there is a Thread started and associated with a AsynchronousDataStore, which is not used and superseeded during init() with the HttpSession-based DataStore to be actually used. There is no obvious way to get a reference to that thread, so that it cannot be stopped on destruction of the application - thus redeployment gets problematic. cu uwe - 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
AW: set session-timeout
If I do this in my WicketApplication class, in the init() method I get java.lang.reflect.UndeclaredThrowableException. But if I add this to my base page it works. Is there any possibility to do this in the WicketApplication class? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com -Ursprüngliche Nachricht- Von: francois meillet [mailto:francois.meil...@gmail.com] Gesendet: Montag, 21. Oktober 2013 16:34 An: users@wicket.apache.org Betreff: Re: set session-timeout HttpSession httpSession = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest().getSession(); httpSession.setMaxInactiveInterval(timeOut); François On Mon, Oct 21, 2013 at 4:12 PM, Martin Grigorov mgrigo...@apache.orgwrote: http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/a pi/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int) On Mon, Oct 21, 2013 at 4:44 PM, christoph.ma...@t-systems.com wrote: Hello, in my application i have set the errorpage for expired pages like this: getApplicationSettings().setPageExpiredErrorPage(Timeout.class); Now I want to make the time until the application expires configurable. How can I do this? Can I set this in the WicketApplication.init()? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
jquery.ui.calendar.Calendar disable next button
Hello; Need your help again . I 'd like to disable the next buton when moving the calendar one step forward at my specified date let say 31 december. I there any *option * to do that ? Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-Calendar-disable-next-button-tp4661918.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: jquery.ui.calendar.Calendar disable next button
Hi, As far as I see, there is no such options. (I would had expected a 'minDate' options, but seems to not be the case...). The only way I see, is to add a javascript statement which will display/hide the button. Actually, these are not real buttons (but spans, so it is harder to disable these than showing/hiding). @Override public boolean isViewRenderEnabled() { return true; } @Override public void onViewRender(AjaxRequestTarget target, CalendarView view) { super.onViewRender(target, view); String statement = String.format(var date = $('%s').fullCalendar('getDate');, JQueryWidget.getSelector(this)); statement += var minDate = new Date(date.getFullYear(), date.getMonth(), 1, 0, 0, 0, 0);; statement += if (minDate new Date()) {; //TODO replace 'new Date()' by the wished date statement += $('.fc-button-prev').css('display', 'none');; statement += } else { ; statement += $('.fc-button-prev').css('display', 'inline-block');; statement += }; target.appendJavaScript(statement); } Hope this helps, Sebastien. On Tue, Oct 22, 2013 at 11:13 AM, Selom pierre.kou...@uhb.fr wrote: Hello; Need your help again . I 'd like to disable the next buton when moving the calendar one step forward at my specified date let say 31 december. I there any *option * to do that ? Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-Calendar-disable-next-button-tp4661918.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: AW: set session-timeout
On 10/22/13 10:34, christoph.ma...@t-systems.com wrote: If I do this in my WicketApplication class, in the init() method I get java.lang.reflect.UndeclaredThrowableException. But if I add this to my base page it works. Is there any possibility to do this in the WicketApplication class? You have to redefine WebApplication#newSession(). It can't be done in init(), as no session exists yet. And you must set the Session timeout for each new session anew. Without having tried it, code like @Override public Session newSession(Request request, Response response) { Session session = super.newSession(request, response); ((ServletWebRequest)request).getContainerRequest().getSession().setMaxInactiveInterval(TIMEOUT); return session; } should work. Maybe check that request is really a ServletWebRequest. (This is also a good place to set the locale.) HTH, Joachim -Ursprüngliche Nachricht- Von: francois meillet [mailto:francois.meil...@gmail.com] Gesendet: Montag, 21. Oktober 2013 16:34 An: users@wicket.apache.org Betreff: Re: set session-timeout HttpSession httpSession = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest().getSession(); httpSession.setMaxInactiveInterval(timeOut); François On Mon, Oct 21, 2013 at 4:12 PM, Martin Grigorov mgrigo...@apache.orgwrote: http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/a pi/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int) On Mon, Oct 21, 2013 at 4:44 PM, christoph.ma...@t-systems.com wrote: Hello, in my application i have set the errorpage for expired pages like this: getApplicationSettings().setPageExpiredErrorPage(Timeout.class); Now I want to make the time until the application expires configurable. How can I do this? Can I set this in the WicketApplication.init()? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jsch...@acm.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: set session-timeout
On Tue, Oct 22, 2013 at 4:27 PM, Joachim Schrod jsch...@acm.org wrote: On 10/22/13 10:34, christoph.ma...@t-systems.com wrote: If I do this in my WicketApplication class, in the init() method I get java.lang.reflect.UndeclaredThrowableException. But if I add this to my base page it works. Is there any possibility to do this in the WicketApplication class? You have to redefine WebApplication#newSession(). It can't be done in init(), as no session exists yet. And you must set the Session timeout for each new session anew. Without having tried it, code like @Override public Session newSession(Request request, Response response) { Session session = super.newSession(request, response); ((ServletWebRequest)request).getContainerRequest().getSession().setMaxInactiveInterval(TIMEOUT); ALARM! getSession() is the same as getSession(true). I.e. it will create a new http session for each and every http request, even for static resources. Wicket creates Wicket Session when Session.get() is used, but creates Http Session only when wicketSession.bind() is called. return session; } should work. Maybe check that request is really a ServletWebRequest. (This is also a good place to set the locale.) HTH, Joachim -Ursprüngliche Nachricht- Von: francois meillet [mailto:francois.meil...@gmail.com] Gesendet: Montag, 21. Oktober 2013 16:34 An: users@wicket.apache.org Betreff: Re: set session-timeout HttpSession httpSession = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest().getSession(); httpSession.setMaxInactiveInterval(timeOut); François On Mon, Oct 21, 2013 at 4:12 PM, Martin Grigorov mgrigo...@apache.org wrote: http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/a pi/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int) On Mon, Oct 21, 2013 at 4:44 PM, christoph.ma...@t-systems.com wrote: Hello, in my application i have set the errorpage for expired pages like this: getApplicationSettings().setPageExpiredErrorPage(Timeout.class); Now I want to make the time until the application expires configurable. How can I do this? Can I set this in the WicketApplication.init()? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jsch...@acm.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How Does Checkbox Know To Store To My Data Object
I think its an object in my Model? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879p4661925.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
AbstractColumn get row object
Hello, Maybe is newbie question but I couldn't figure out how to get the object of a row in a data table in a AbstractColumn. I want to add a edit button as last cell in the row. Here is my code: ListIColumnlt;Person createTableColumns() { ... columns.add( new EditColumn (...)) } May I get the row object when I create the column? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AbstractColumn-get-row-object-tp4661924.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: AbstractColumn get row object
Your column implementation gets a reference to the rowModel in #populateItem(). Sven On 10/22/2013 04:47 PM, cosmindumy wrote: Hello, Maybe is newbie question but I couldn't figure out how to get the object of a row in a data table in a AbstractColumn. I want to add a edit button as last cell in the row. Here is my code: ListIColumnlt;Person createTableColumns() { ... columns.add( new EditColumn (...)) } May I get the row object when I create the column? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AbstractColumn-get-row-object-tp4661924.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: AbstractColumn get row object
If you are using DataTable a a repeater, this thread might help for you: http://stackoverflow.com/questions/10796342/making-entire-row-of-a-wicket-datable-clickable http://stackoverflow.com/questions/10796342/making-entire-row-of-a-wicket-datable-clickable It lets you to make all row click-able. If you want to make single cell (column) click-able try to override newCellItem instead of newRowItem: http://wicket.apache.org/apidocs/1.5/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.html#newCellItem%28java.lang.String,%20int,%20org.apache.wicket.model.IModel%29 http://wicket.apache.org/apidocs/1.5/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.html#newCellItem%28java.lang.String,%20int,%20org.apache.wicket.model.IModel%29 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AbstractColumn-get-row-object-tp4661924p4661926.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: How Does Checkbox Know To Store To My Data Object
Try to add something like this onSubmit: System.out.println(It's up to date compiled code running here) and check console if you get this output :). I think you need to recompile your sources and application. Because this code snipped does nothing. I might be wrong, we all do mistakes :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879p4661927.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: AW: set session-timeout
On 10/22/13 15:32, Martin Grigorov wrote: On Tue, Oct 22, 2013 at 4:27 PM, Joachim Schrod jsch...@acm.org wrote: On 10/22/13 10:34, christoph.ma...@t-systems.com wrote: If I do this in my WicketApplication class, in the init() method I get java.lang.reflect.UndeclaredThrowableException. But if I add this to my base page it works. Is there any possibility to do this in the WicketApplication class? You have to redefine WebApplication#newSession(). It can't be done in init(), as no session exists yet. And you must set the Session timeout for each new session anew. Without having tried it, code like @Override public Session newSession(Request request, Response response) { Session session = super.newSession(request, response); ((ServletWebRequest)request).getContainerRequest().getSession().setMaxInactiveInterval(TIMEOUT); ALARM! getSession() is the same as getSession(true). I.e. it will create a new http session for each and every http request, even for static resources. Wicket creates Wicket Session when Session.get() is used, but creates Http Session only when wicketSession.bind() is called. Interesting to hear; I'd have thought that works. Tricky thing, that. As I wrote, I didn't try the code; I just copied the access to HttpSession from the posts below. But, since wicketSession.bind() is final, one cannot subclass Session and redefine it either, to set the timeout there. (Much too many methods of Wicket classes are final, without really good reason; I copy them to my applications making the methods non-final much too often. :-( ) Martin, what would you propose to be the hook that allows to establish a different session timeout application-wide within your Java application? I hadn't had yet that case, web.xml suffices by now, but it would be good to know for the future. Cheers, Joachim return session; } should work. Maybe check that request is really a ServletWebRequest. (This is also a good place to set the locale.) HTH, Joachim -Ursprüngliche Nachricht- Von: francois meillet [mailto:francois.meil...@gmail.com] Gesendet: Montag, 21. Oktober 2013 16:34 An: users@wicket.apache.org Betreff: Re: set session-timeout HttpSession httpSession = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest().getSession(); httpSession.setMaxInactiveInterval(timeOut); François On Mon, Oct 21, 2013 at 4:12 PM, Martin Grigorov mgrigo...@apache.org wrote: http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/a pi/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int) On Mon, Oct 21, 2013 at 4:44 PM, christoph.ma...@t-systems.com wrote: Hello, in my application i have set the errorpage for expired pages like this: getApplicationSettings().setPageExpiredErrorPage(Timeout.class); Now I want to make the time until the application expires configurable. How can I do this? Can I set this in the WicketApplication.init()? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jsch...@acm.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-bootstrap NoSuchMethodError: Url.parse
Hi, Martin, As we can see wicket-request.jar is different version then other wicket modules. So, I have downloaded wicket-request.jar of 6.11.0 version manually and replaced it in application AND IT WORKED :). So, I really do not know, why bootstrap download wrong version. Maybe I need to exclude wicket-request from bootstrap and add dependency of proper version myself? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-NoSuchMethodError-Url-parse-tp4661909p4661923.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: jquery.ui.calendar.Calendar disable next button [SOLVED]
I did not see the 2 methods onViewRender and isViewRenderEnabled but I saw *isViewDisplayEnabled *and *onViewDisplay *in the ICalendarListener. I override them with the your code above. wonderful . It works nicely ... Thank you again . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-Calendar-disable-next-button-tp4661918p4661920.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: AW: set session-timeout
On Wed, Oct 23, 2013 at 2:36 AM, Joachim Schrod jsch...@acm.org wrote: On 10/22/13 15:32, Martin Grigorov wrote: On Tue, Oct 22, 2013 at 4:27 PM, Joachim Schrod jsch...@acm.org wrote: On 10/22/13 10:34, christoph.ma...@t-systems.com wrote: If I do this in my WicketApplication class, in the init() method I get java.lang.reflect.UndeclaredThrowableException. But if I add this to my base page it works. Is there any possibility to do this in the WicketApplication class? You have to redefine WebApplication#newSession(). It can't be done in init(), as no session exists yet. And you must set the Session timeout for each new session anew. Without having tried it, code like @Override public Session newSession(Request request, Response response) { Session session = super.newSession(request, response); ((ServletWebRequest)request).getContainerRequest().getSession().setMaxInactiveInterval(TIMEOUT); ALARM! getSession() is the same as getSession(true). I.e. it will create a new http session for each and every http request, even for static resources. Wicket creates Wicket Session when Session.get() is used, but creates Http Session only when wicketSession.bind() is called. Interesting to hear; I'd have thought that works. Tricky thing, that. As I wrote, I didn't try the code; I just copied the access to HttpSession from the posts below. But, since wicketSession.bind() is final, one cannot subclass Session and redefine it either, to set the timeout there. (Much too many methods of Wicket classes are final, without really good reason; I copy them to my applications making the methods non-final much too often. :-( ) If you override bind() and do something wrong then the functionality will break completely. Martin, what would you propose to be the hook that allows to establish a different session timeout application-wide within your Java application? I hadn't had yet that case, web.xml suffices by now, but it would be good to know for the future. It is much better from framework point of view to give you a hook: org.apache.wicket.session.ISessionStore#getBindListeners().add(myListener) Cheers, Joachim return session; } should work. Maybe check that request is really a ServletWebRequest. (This is also a good place to set the locale.) HTH, Joachim -Ursprüngliche Nachricht- Von: francois meillet [mailto:francois.meil...@gmail.com] Gesendet: Montag, 21. Oktober 2013 16:34 An: users@wicket.apache.org Betreff: Re: set session-timeout HttpSession httpSession = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest().getSession(); httpSession.setMaxInactiveInterval(timeOut); François On Mon, Oct 21, 2013 at 4:12 PM, Martin Grigorov mgrigo...@apache.org wrote: http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/a pi/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int) On Mon, Oct 21, 2013 at 4:44 PM, christoph.ma...@t-systems.com wrote: Hello, in my application i have set the errorpage for expired pages like this: getApplicationSettings().setPageExpiredErrorPage(Timeout.class); Now I want to make the time until the application expires configurable. How can I do this? Can I set this in the WicketApplication.init()? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jsch...@acm.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org