RE: Error building wicket-6.19.0 from src

2015-02-18 Thread Chris Colman
No worries! -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Wednesday, 18 February 2015 6:31 PM To: users@wicket.apache.org Subject: Re: Error building wicket-6.19.0 from src Thanks! I've changed it to '/'. Works fine here (as expected). Martin

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Sven Meier
Hi, this is rather a JavaScript issue: http://stackoverflow.com/questions/13729837/jquery-stop-blur-event-when-clicking-submit-button Regards Sven On 18.02.2015 11:35, Francois Meillet wrote: Hi All, 1) I have a Form with a Textfield which has a AjaxFormComponentUpdatingBehavior (blur)

form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Francois Meillet
Hi All, 1) I have a Form with a Textfield which has a AjaxFormComponentUpdatingBehavior (blur) When the entire form is submitted (via an AjaxButton) the ajaxFormComponentUpdatingBehavior.onEvent() is called then the formComponent.validate() is called and then when the form.validate() is

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Francois Meillet
OnDomReadyHeaderItem.forScript('Thanks Sven') I also added OnEventHeaderItem.forScript(window, onunload, mousedownHappened = true) to the button. Everything work nicely except when an onunload event is fired and the textfield is empty. In this case the

Re: ListenerInvocationNotAllowedException and InlineFrames

2015-02-18 Thread Wayne W
Wicket seems to think its not enabled isEnabledInHierarchy() returns false randomly On Wed, Feb 18, 2015 at 4:48 PM, Wayne W waynemailingli...@gmail.com wrote: Hi, we're still stuck on this. I can reproduce it - it seems a bit random but I suspect it to do when the browser makes the

Re: ListenerInvocationNotAllowedException and InlineFrames

2015-02-18 Thread Tobias Soloschenko
Hi, is there a point where you disable your components? Because this kind of exceptions occurs if you try to invoke an onclick on a disabled component. Maybe you enable your components in a thread if a service is read or something like this and in some cases the components are enabled

Re: ListenerInvocationNotAllowedException and InlineFrames

2015-02-18 Thread Tobias Soloschenko
Hi again, I had a look at the method isEnabledInHierarchy() in Component and it hasn't changed for about 2 years. Even the places the flags are used (RFLAG_ENABLED_IN_HIERARCHY_SET, RFLAG_ENABLED_IN_HIERARCHY_VALUE) haven't changed. kind regards Tobias Am 18.02.15 um 18:06 schrieb Wayne

Make wicketpath HTML5 compatible

2015-02-18 Thread Thorsten Schöning
Hi all, is there any easy way to influence the rendering of wicketpath in Wicket if isOutputComponentPath is enabled on a page or application level? I would like to change it to data-wicketpath or wicket:wicketpath or something like that to be able to validate my HTML if this attribute is

Re: Make wicketpath HTML5 compatible

2015-02-18 Thread Martin Grigorov
Hi, Yes, this is supported. But only in Wicket 7.x. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Feb 18, 2015 at 9:20 PM, Thorsten Schöning tschoen...@am-soft.de wrote: Hi all, is there any easy way to influence the rendering of wicketpath in Wicket

Re: How to manage StalePageException

2015-02-18 Thread Martin Grigorov
Hi, if (e instanceof IWicketInternalException) {return null;} ... Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Feb 18, 2015 at 6:10 PM, dpmihai dpmi...@yahoo.com wrote: Can someone confirm if this: if (e instanceof StalePageException) {

Wicket Bootstrap 0.9.7 0.10.0 are released

2015-02-18 Thread Martin Grigorov
Hi, Wicket Bootstrap 0.9.8 (built against Wicket 6.19.0) and 0.10.0 (against Wicket 7.0.0-M5) have been released and soon will be available at Maven Central. New features: - component for http://eonasdan.github.io/bootstrap-datetimepicker/ - component for

CVE-2014-7808

2015-02-18 Thread Martin Grigorov
Severity: Important Vendor: The Apache Software Foundation Versions Affected: Apache Wicket 1.5.12, 6.18.0 and 7.0.0-M4 Description: With Wicket's default security settings the usage of CryptoMapper to encrypt/obfuscate pages' urls is not strong enough. It is possible to predict the encrypted

Re: org.apache.wicket.io.util.Connections.getLastModified(URL url)

2015-02-18 Thread Stijn Niclaes
Created https://issues.apache.org/jira/browse/WICKET-5838 Kind regards, Stijn Niclaes On Wed, Feb 18, 2015 at 2:24 PM, Martin Grigorov mgrigo...@apache.org wrote: Please create a ticket in JIRA. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Feb

ListenerInvocationNotAllowedException woes

2015-02-18 Thread ChambreNoire
Hi there, Since our recent migration to 6.18 we've been getting a fair number of ListenerInvocationNotAllowedExceptions when users click on links. This redirects them to page which states that the access is denied. Here's a typical trace :

Re: How to manage StalePageException

2015-02-18 Thread dpmihai
Can someone confirm if this: if (e instanceof StalePageException) { return super.onException(cycle, e); } is the right way to let StalePageException be handled by wicket? Is there a problem if the page has PageParameters? -- View this message in context:

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
i used this: @Override public void renderHead(IHeaderResponse response) { // add jQuery library response.render(CssHeaderItem.forUrl(//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css)); response.render(JavaScriptHeaderItem.forUrl(//code.jquery.com/jquery-1.10.2.js));

Re: org.apache.wicket.io.util.Connections.getLastModified(URL url)

2015-02-18 Thread Stijn Niclaes
As I understand it, getCacheKey() returning null results in no cache(at all), this is what we did before and probably what I will revert back to. But it's not really what I want: Ops complained about network traffic(no cache means every request fetches one of the basepages) and we got our drupal

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
Hi Martin, Did the changes as you had said. getting the following error: TypeError: $(...).accordion is not a function $('#accordion').accordion(); @Override public void renderHead(IHeaderResponse response) { // add jQuery library

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread Sebastien
That's means that jQuery itself is not available when you need it (ie: $('#accordion')) Still using firebug, check whether libraries are well added to the page (ie you don't have a 404 instead of the file content) Furthermore it is not a good practice to include jquery.js by yourself using this

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread Martin Grigorov
On Wed, Feb 18, 2015 at 4:00 PM, avchavan avinash.cha...@yahoo.co.in wrote: Hi Martin, Did the changes as you had said. getting the following error: TypeError: $(...).accordion is not a function Good. jQuery is loaded. $('#accordion').accordion(); Now jQuery-UI seems to be not loaded

How to manage StalePageException

2015-02-18 Thread dpmihai
Hi. I have a WebPage which gives me a StalePageException when more requests are made to it at the same time by same user's page, every one with a different PageParameters object. I also have an AbstractRequestCycleListener with an onException method in my application. I read about

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread Sebastien
Hi, This is because #accordion is part of jQuery UI, not jQuery (the underlying javascript library) You need to render jQuery UI resource references (js css), make the jquery-ui.js resource reference extends JQueryPluginResourceReference so you don't have to explicitly add the dependency to

Re: org.apache.wicket.io.util.Connections.getLastModified(URL url)

2015-02-18 Thread Martin Grigorov
Please create a ticket in JIRA. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Feb 18, 2015 at 3:21 PM, Stijn Niclaes stijn.nicl...@gmail.com wrote: As I understand it, getCacheKey() returning null results in no cache(at all), this is what we did before

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
Used firebug. I get the following error: ReferenceError: $ is not defined @Override public void renderHead(IHeaderResponse response) { // add jQuery library response.render(CssHeaderItem.forUrl(https://code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css;));

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread Sebastien
Hi, You need to ensure the libraries are well added to the page, using firebug or equivalent. Maybe so you have an Url issue. (I suppose it should begins with http:// for begin non relative) Best regards, Sebastien. On Wed, Feb 18, 2015 at 2:08 PM, avchavan avinash.cha...@yahoo.co.in wrote:

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Sven Meier
I didn't try it, but this would be the rough equivalent of http://stackoverflow.com/a/13729993/1041336 in Wicket: textField.add(new AjaxFormComponentUpdatingBehavior(blur) { updateAjaxAttributes(ara) { ara.getAjaxCallListeners().add(new AjaxCallListener() { getPrecondition() {

Jquery methods issue with wicket 6.13

2015-02-18 Thread avchavan
My Java code: @Override public void renderHead(IHeaderResponse response) { // add jQuery library response.render(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference())); // set focus to the username on load - check

Re: Jquery methods issue with wicket 6.13

2015-02-18 Thread Martin Grigorov
On Wed, Feb 18, 2015 at 3:08 PM, avchavan avinash.cha...@yahoo.co.in wrote: i used this: @Override public void renderHead(IHeaderResponse response) { // add jQuery library response.render(CssHeaderItem.forUrl(//

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Francois Meillet
Thanks Sven, yes this is a javascript issue. I look for a nice way (a la Wicket) to disable the blur event when onunload and onclick are fired. François Meillet Le 18 févr. 2015 à 12:40, Sven Meier s...@meiers.net a écrit : Hi, this is rather a JavaScript issue:

Re: ListenerInvocationNotAllowedException and InlineFrames

2015-02-18 Thread Wayne W
Hi, we're still stuck on this. I can reproduce it - it seems a bit random but I suspect it to do when the browser makes the request. I can hit the same page and sometimes its good and sometimes this exception is thrown. There's definitely something wrong here.