Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Chris
Thanks a lot! Am 12.02.2015 um 20:12 schrieb Rodrigo Ribeiro Miguele rodrigo.migu...@maps.com.br: Just make your class implement an interface then use it instead your class when injecting your bean. 2015-02-12 16:17 GMT-02:00 Chris chris...@gmx.at: Hi, when injecting a bean via

Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Andrea Del Bene
Hi, it looks like more a Spring problem rather than a Wicket one. What's your full stacktrace? Hi, when injecting a bean via @SpringBean annotation into a Wicket page, this bean must provide a default constructor, otherwise I am receiving the error: java.lang.IllegalArgumentException:

Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Rodrigo Ribeiro Miguele
Just make your class implement an interface then use it instead your class when injecting your bean. 2015-02-12 16:17 GMT-02:00 Chris chris...@gmx.at: Hi, when injecting a bean via @SpringBean annotation into a Wicket page, this bean must provide a default constructor, otherwise I am

@SpringBean annotation, no-arg constructor

2015-02-12 Thread Chris
Hi, when injecting a bean via @SpringBean annotation into a Wicket page, this bean must provide a default constructor, otherwise I am receiving the error: java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given Is there a solution to inject beans

Error building wicket-6.19.0 from src

2015-02-12 Thread Chris Colman
I get the following error when I try to compile the 6.19.0 source code: [ERROR] 7014: org.apache.wicket.feedback.FeedbackCollector: Method 'public java.util.List collect()' is now final [ERROR] 7014: org.apache.wicket.feedback.FeedbackCollector: Method 'public java.util.List

Re: Ajax submit form with FileUploadField

2015-02-12 Thread Martin Grigorov
Hi, Yes, it does. When there is a file input in the form Wicket needs to use an IFrame to be able to send the binary data because XmlHttpRequest v1 (IE 8/9/10 I think) doesn't support sending binary. The related code is at

Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Rodrigo Ribeiro Miguele
The problem occurs when the injector will try to create a serializable proxy that will make reference to your bean. If your class does not have an empty constructor, your code-generation library (CGLIB, javassist, etc) cannot create a class that extends it to use in the generated proxy, throwing

Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Tobias Soloschenko
Hi, yes it is a Spring requirement that a bean must have a default constructor. Otherwise use a bean factory. kind regards Tobias Am 12.02.2015 um 21:13 schrieb Andrea Del Bene an.delb...@gmail.com: Hi, it looks like more a Spring problem rather than a Wicket one. What's your full

Re: Ajax submit form with FileUploadField

2015-02-12 Thread mscoon
Since no-one has responded, let me try to rephrase the question: is wicket doing something different when submitting a form via ajx without and with a FileUploadField? If yes, could you please give me some pointers in the code to look at? Thanks Marios On Tue, Feb 10, 2015 at 4:36 PM, mscoon

Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-1130 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Feb 12, 2015 at 11:44 PM, Rodrigo Ribeiro Miguele rodrigo.migu...@maps.com.br wrote: The problem occurs when the injector will try to create a serializable

Re: @SpringBean annotation, no-arg constructor

2015-02-12 Thread Tobias Soloschenko
Forgot to say if you use constructor-arg kind regards Tobias Am 12.02.2015 um 21:13 schrieb Andrea Del Bene an.delb...@gmail.com: Hi, it looks like more a Spring problem rather than a Wicket one. What's your full stacktrace? Hi, when injecting a bean via @SpringBean annotation

Re: Ajax submit form with FileUploadField

2015-02-12 Thread mscoon
Thank you for your answer. One more thing. Since I am trying to submit an inner form (which has been rendered as a div) and which does not contain a FileUploadField, why would wicket use an IFrame? Is the decision being made based on the outer form for all ajax submit links? On Thu, Feb 12, 2015

Re: Ajax submit form with FileUploadField

2015-02-12 Thread Martin Grigorov
with or without file field Wicket submits all fields and on the server side by using the submitter button decides which form to process On Feb 12, 2015 8:00 PM, mscoon msc...@gmail.com wrote: Thank you for your answer. One more thing. Since I am trying to submit an inner form (which has been

Re: Error building wicket-6.19.0 from src

2015-02-12 Thread Andrea Del Bene
Hi, how did you get the code ? did you download it or did you use the 6.19.0 branch? I've tested the source from distribution (http://www.apache.org/dyn/closer.cgi/wicket/6.19.0) and everything it's fine. These method are final since a long time... I get the following error when I try to

Re: Error building wicket-6.19.0 from src

2015-02-12 Thread Martin Grigorov
Hi, According to the SCM history [1] this class hasn't been changed since Nov 26 2012. 1. https://github.com/apache/wicket/commits/wicket-6.x/wicket-core/src/main/java/org/apache/wicket/feedback/FeedbackCollector.java Martin Grigorov Wicket Training and Consulting