Passing parameters from java code to global ajax call listeners

2013-07-25 Thread Marios Skounakis
Hi all, I am subscribing to the global ajax call listeners to show and hide a veil during ajax calls. The veil is displayed during all ajax calls. I want a way for some components / ajax behaviors to opt our from the veil. What I'm doing now is adding an extra parameter to the ajaxAttributes and

RE: JUnit Tests failing after config change

2013-07-25 Thread Michael Chandler
Oh man. That's exactly it. Obviously, when I'm not running in the Tomcat environment, I'm missing a few things. Thanks for pointing that out Gabriel. I'm right back on track! Cheers! Mike -Original Message- From: Gabriel Landon [mailto:glan...@piti.pf] Sent: Thursday, July 25, 2013

Re: JUnit Tests failing after config change

2013-07-25 Thread Gabriel Landon
Mike, Maybe you could just add this in you pom.xml : javax.servlet servlet-api 2.5 test Regards, Gabriel. -- View this message in context: http://apache-wicket.18

Configuring a JRuby + Wicket environment

2013-07-25 Thread Michael Pence
Hi guys, So I am seriously committed to see if JRuby, Wicket and some elements of Rails (ActiveRecord, esp.) can be made to play nice together. I prefer Intellij, and use RubyMine, but I am also comfortable with Eclipse. The big question to get me started is, how to configure a project in an ID

JUnit Tests failing after config change

2013-07-25 Thread Michael Chandler
In order to support the use of the @SpringBean annotation, I've made some adjustments to my Wicket application that work beautifully right out of the gate. The documentation and assistance from this list helped get me up to speed and working quickly. HOWEVER, my JUnit tests are now failing whe

AW: html5-validation and Ajax Form Submit

2013-07-25 Thread Hans Lesmeister
Hi, I checked that code and I would be eager to use Parsley. Parsley supports the new html5-attributes for validation but does not make use of the native form.checkValidity()-function. For that reason Parsley needs you to set the novalidate-attribute on the form, which suppresses html5-validati

Re: Response header is not set by the resourcereference when changing the request handler

2013-07-25 Thread Martin Grigorov
On Thu, Jul 25, 2013 at 5:10 PM, rjjvandenberg wrote: > > > Yes, the headers should be set by ZippedDocumentsResourceReference, but > > this reference is not coming with Wicket distro, so you should debug it > > yourself. > > The same problem occurs when using PackageResourceReference. > PRR sets

Re: Response header is not set by the resourcereference when changing the request handler

2013-07-25 Thread rjjvandenberg
> Yes, the headers should be set by ZippedDocumentsResourceReference, but > this reference is not coming with Wicket distro, so you should debug it > yourself. The same problem occurs when using PackageResourceReference. -- View this message in context: http://apache-wicket.1842946.n4.nabble

Re: Response header is not set by the resourcereference when changing the request handler

2013-07-25 Thread Martin Grigorov
Hi, On Thu, Jul 25, 2013 at 4:35 PM, rjjvandenberg wrote: > I want the user to download a generated file, depending on the form > content, > with a submit button. > > This is how I add the button to the form: > > Button downloadInvoicesButton = new Button("download") { > @Override >

Response header is not set by the resourcereference when changing the request handler

2013-07-25 Thread rjjvandenberg
I want the user to download a generated file, depending on the form content, with a submit button. This is how I add the button to the form: Button downloadInvoicesButton = new Button("download") { @Override public void onSubmit() { getRequestCycle().replaceAllRequ

Re: html5-validation and Ajax Form Submit

2013-07-25 Thread Martin Grigorov
Hi Hans, I'm not sure whether you checked the demo code. See https://github.com/martin-g/blogs/blob/master/wicket-parsley-validation/src/main/java/com/mycompany/HomePage.java#L71 Maybe you need to do something similar. On Thu, Jul 25, 2013 at 4:04 PM, Hans Lesmeister 2 < hans.lesmeis...@lessy-so

Re: Error serializing object class com.pixonic.pixapi.web.PixdeskSession

2013-07-25 Thread Martin Grigorov
Hi, I think there are two issues here: 1) somewhere in your code you call session.setMetaData(someKey, exception) // here exception is ListenerInvocationNotAllowedException find this code and re-think it 2) you keep a hard reference to your Session from a page Wicket serializes the stateful page

Re: html5-validation and Ajax Form Submit

2013-07-25 Thread Hans Lesmeister 2
Hi Martin, thank you for the feedback. What I really mean is the nativ html5-validation. If an input-field has the "required"-attribute set and the user leaves the field blank, then the browser places an outline around the field and on submit a little balloon appears with a text like "Please fill

Error serializing object class com.pixonic.pixapi.web.PixdeskSession

2013-07-25 Thread Lipatov Alexander
Hi to all! I use wicket 6.9.1 and I have errors like that: I can reproduce it in my project (we use wicket ajax) but I can't understand what the cause of error. I have no idea how that strange object can be stored in session. We have no usages of "RequestListenerInterface" in our projects. Any

SOLVED / Re: How to make an own panel work like an e.g. TextField / joining the model hierarchy of page/form

2013-07-25 Thread Patrick Davids
Hi Martin, thanx, its working, now. I had some additional convenience constructors in my panel with empty model object inits, because some days ago I always ran into "try to set on empty model object exceptions". I kept them and I think they forced side-effects. Just having one, only with an i

Re: NumberFormatException from Requests with invalid URIs

2013-07-25 Thread Martin Funk
done https://issues.apache.org/jira/browse/WICKET-5287 2013/7/25 Sven Meier > ServletWebRequest#**getContextRelativeUrl() passes "foo://:/" to > Url#parse() and that one fails. > > Please create a Jira issue. > > Sven > > > On 07/24/2013 05:06 PM, Martin Funk wrote: > >> Hi Sven, >> >> we still

Re: NumberFormatException from Requests with invalid URIs

2013-07-25 Thread Sven Meier
ServletWebRequest#getContextRelativeUrl() passes "foo://:/" to Url#parse() and that one fails. Please create a Jira issue. Sven On 07/24/2013 05:06 PM, Martin Funk wrote: Hi Sven, we still can reproduce this on any version. Maybe this git diff gives a clearer picture: diff --git a/wicket-c

Re: html5-validation and Ajax Form Submit

2013-07-25 Thread Martin Grigorov
Hi, I'm not sure what problem you face but you can take a look at http://wicketinaction.com/2013/04/server-and-client-side-validation/ (may be broken for few more days until Martijn fix Wordpress). Its code is https://github.com/martin-g/blogs/tree/master/wicket-parsley-validation. And the improve

Re: Wicket Atmosphere - Encoding and MultiTab issues

2013-07-25 Thread Martin Grigorov
On Wed, Jul 24, 2013 at 11:39 PM, fliptaboada wrote: > Ticket filed :) > https://issues.apache.org/jira/browse/WICKET-5285 > > > The browsers have a limit of max opened connections to a domain. > > For Firefox and Chrome it is 6 connections. > > For IE 7/8 (not sure about the newer versions) it i

html5-validation and Ajax Form Submit

2013-07-25 Thread Hans Lesmeister 2
Hi everybody, with HTML5 we now have this nice browser built in validation showing a bubble and a colored outline if a validation on a field does not pass. However if I add an AjaxSubmitLink to the form, then the html5-validation is no longer working. I have tried all kind of tricky things with p