Handling page refresh or redirect when the server reboots

2014-09-10 Thread msalman
So we have this feature of online server upgrade in which the user can start an upgrade on the server while still logged into the (wicket) web app. This starts some scripts in the bacground which bring the jboss server down, upgrade the db, upgrade the ear file, etc., and then restart the jboss s

Re: Problem getting data from a 'CharSequenceResource'

2014-09-10 Thread manumoreno
Martin Grigorov-4 wrote >> Do you think is feasible use two events in the same >> component ?, for example,. an 'event: {onfocus}' from Knockout and the >> AjaxFallbacklink? >> > > It is OK (if you know what you are doing!). Thx a lot, everything worked fine with two different events. -- V

Re: Custom http error pages

2014-09-10 Thread Alberto Brosich
On Wed, 2014-09-10 at 11:21 +0300, Martin Grigorov wrote: > Hi, > > Instead of throwing AbortWithHttpErrorCodeException you can just use > RestartResponseException/setResponsePage(). > But using the standard way (web.xml) should be fine too. I think the > message set by #setError(code, message) is

Re: respond with 404 page while keeping original URL

2014-09-10 Thread Martin Grigorov
Just throw AbortWithHttpErrorCodeException. The url will remain the same. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 10, 2014 at 3:43 PM, Thibault Kruse wrote: > Hi, > > we have a page for some resource mounted at /resource/ > When users enter an i

respond with 404 page while keeping original URL

2014-09-10 Thread Thibault Kruse
Hi, we have a page for some resource mounted at /resource/ When users enter an invalid ID, we want to render a 404 page. However, we would like the resulting page not have the original url with the invalid id (but http status 404). Is there any obvious easy way to achieve this? Because it seems t

Re: Global Ajax Event Handler

2014-09-10 Thread Tobias Soloschenko
Oh NO This completely solved my problem Now all is working like expected... Now I'm able to render a Javascript-Callback-Function with a custom EL-Function within a JSP and if I use this Javascript-Function in a link for example I can update component on the current page. Example: In

Re: Problem getting data from a 'CharSequenceResource'

2014-09-10 Thread Martin Grigorov
On Wed, Sep 10, 2014 at 9:40 AM, manumoreno wrote: > Martin Grigorov-4 wrote > > Hi, > > > > The > > > element has two JavaScript event listeners for 'click' event - one > > by Wicket's AjaxFallbackLink and another by (Knockout.js ?!) data-bind > > attribute. > > The order of their execution is

Re: Global Ajax Event Handler

2014-09-10 Thread Martin Grigorov
Tobias sent me a quickstart app. TestPage is stateless and thus never stored in the storages. Just add setStatelessHint(false) to its constructor and the problem disappears. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 10:10 PM, Tobias Sol

Re: AuthenticatedWebSession.authenticate() not being called

2014-09-10 Thread Lucio Crusca
While debugging the problem I first moved to Wicket 6.17 and then set a breakpoint in SignInPanel.java (Wicket sources) at line 310, which is the first line of the onSubmit() method of the SignInForm Wicket class. That breakpoint does not get hit: Wicket, in response to the HTTP request generated

Re: How to add checkboxes with AJAX?

2014-09-10 Thread Martin Grigorov
Check http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 10, 2014 at 12:41 PM, brushmate wrote: > This is what it should look like: > > < > http://apache-wicket.18429

Re: How to add checkboxes with AJAX?

2014-09-10 Thread brushmate
This is what it should look like: -- View

How to add checkboxes with AJAX?

2014-09-10 Thread brushmate
Hi, I am trying to write a FormComponentPanel that displays a list of checkboxes, a textfield and a button. It shall return the selected values. I want to use the textfield and the button to add new checkboxes dynamically using AJAX. I used a CheckGroup together with a ListView to render the chec

Re: CouldNotLockPageException while trying 'inspect' option of Debug bar

2014-09-10 Thread Rakesh A
Forgot to mention, an anonymous class implementation was done for the AjaxEventBehavior, and the #onEvent(..) method access' Page properties in it. Regards, Rakesh.A -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CouldNotLockPageException-while-trying-inspect-option-

Re: CouldNotLockPageException while trying 'inspect' option of Debug bar

2014-09-10 Thread Rakesh A
Hi, After some debugging & investigation, It turned out to be a 'AjaxEventBehavior' for 'load' event [page onload event], which was added to page was causing this lock, removing this behavior solved the page locking issue. Thanks, Rakesh.A -- View this message in context: http://apache-wicket.1

Re: Custom http error pages

2014-09-10 Thread Martin Grigorov
Hi, Instead of throwing AbortWithHttpErrorCodeException you can just use RestartResponseException/setResponsePage(). But using the standard way (web.xml) should be fine too. I think the message set by #setError(code, message) is stored as request attribute. Martin Grigorov Wicket Training and Con

Custom http error pages

2014-09-10 Thread Alberto Brosich
Hi, I'm using the latest version of wicket. I'm trying to write custom pages for http errors. The standard way, using web.xml, is not useful for me because I would print custom messages too. I tried to write a RequestCycleListener extending AbstractRequestCycleListener class, but it seems that Ab

Re: AuthenticatedWebSession.authenticate() not being called

2014-09-10 Thread Lucio Crusca
> Hi all, > > in a webapp that worked until yesterday (and that has worked for the last > 2 years), the AuthenticatedWebSession.authenticate() method is not being > called anymore. I have MySession class that extends > AuthenticatedWebSession. The MySession constructor gets called correctly. > I us

Re: [ANNOUNCE] Apache Wicket 6.17.0 released

2014-09-10 Thread Guillaume Smet
On Tue, Sep 9, 2014 at 9:08 AM, Guillaume Smet wrote: > I reported it to Sonatype: > https://getsatisfaction.com/sonatype/topics/wicket-6-17-0-in-central-but-not-on-search-maven-org Joel fixed it. -- Guillaume - To unsubscribe

Re: Wicket logs

2014-09-10 Thread Martin Grigorov
Hi, The logging level is controlled by Log4j/Logback/... config files. Wicket's configuration mode doesn't affect the logging by any means. Edit your src/main/resources/(log4j.properties|logback.xml) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 10, 2

Re: Wicket logs

2014-09-10 Thread dharmendra pandey
Hi Martin, We are getting the below logs, Even our application server running in deployment mode still we are getting the below logs. Sep 8, 2014 7:17:25 AM org.apache.catalina.core.StandardWrapperValve invoke INFO: 07:17:15.671 [http-nio-9001-exec-45] DEBUG o.a.w.p.h.servlet.ServletWebRequest