Re: Is it possible to change MarkupStream ?

2013-06-25 Thread Martin Grigorov
Hi, Please paste the stack trace of the exception so we can see how you use these methods. A new MarkupStream is created for each rendering of a page. It is being closed at the end of the rendering. On Tue, Jun 25, 2013 at 2:03 AM, heikki tropic...@gmail.com wrote: hello, I'm using Wicket

Re: Wicket with Spring for IOC

2013-06-25 Thread Martin Grigorov
Hi, On Mon, Jun 24, 2013 at 11:08 PM, Michael Chandler michael.chand...@onassignment.com wrote: Joachim, This was a phenomenal write-up. Thank you so much for this extremely helpful guide. Much appreciated! Regards, Mike -Original Message- From: Joachim Schrod

Re: Is it possible to change MarkupStream ?

2013-06-25 Thread heikki
hi, the stacktrace is here: http://pastebin.com/Kgba3zxF. I noticed I did not supply the code of getStringFromInputStream() -- I took it from http://www.mkyong.com/java/how-to-convert-inputstream-to-string-in-java/ and it is protected static String getStringFromInputStream(InputStream is) {

Model performance question

2013-06-25 Thread gmparker2000
Considering two alternative ways to set a model: ... final CompoundPropertyModel myModel = new CompoundPropertyModel(myObject); control1.setModel(myModel.bind(field1)); control2.setModel(myModel.bind(field2)); control3.setModel(myModel.bind(field3));

Re: Model performance question

2013-06-25 Thread Martin Grigorov
Hi, On Tue, Jun 25, 2013 at 5:20 PM, gmparker2000 greg.par...@brovada.comwrote: Considering two alternative ways to set a model: ... final CompoundPropertyModel myModel = new CompoundPropertyModel(myObject); control1.setModel(myModel.bind(field1));

RE: Wicket with Spring for IOC

2013-06-25 Thread Michael Chandler
I received outstanding guidance yesterday on integrating wicket-spring into my application and combined with the write-up along with a lot of other similar articles/blogs I found online, I'm confident I'm on the right track. I have encountered an error that has me a little mystified and was

Re: Wicket with Spring for IOC

2013-06-25 Thread Nick Pratt
I have the following in my web.xml: filter filter-nameWicketAppFilter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-name*applicationClassName*/param-name

Multitenant app: what's a good place to perform account lookup?

2013-06-25 Thread Bas Gooren
Hi *, One of our multi-tenant apps uses the incoming hostname to look up the account to attach to. We've currently handled it like so: - Request scoped guice provider, which performs the lookup (which can return Account.UNKNOWN) - Base page class which validates the account returned by the

Re: Wicket with Spring for IOC

2013-06-25 Thread Joachim Schrod
Michael Chandler wrote: java.lang.IllegalStateException: bean of type [org.apache.wicket.protocol.http.WebApplication] not found Full stack trace below. Despite having defined my WebApplication bean in the applicationContext.xml, this exception appears at start-up, leading me to

Re: Model performance question

2013-06-25 Thread Bas Gooren
Hi, It sounds like you know what you are doing, but I just want to check why you chose myObject as a variable name in your example? If you are properly using detachable models and do not want to serialize a large object graph, myObject needs to be a loadable detachable model, and not an

Re: Wicket with Spring for IOC

2013-06-25 Thread Joachim Schrod
Nick Pratt wrote: I have the following in my web.xml: init-param param-name*applicationClassName*/param-name param-valuecom.test.app.MyApplication/param-value /init-param init-param

RE: Wicket with Spring for IOC

2013-06-25 Thread Michael Chandler
Joachim, You're brilliant. You have saved the day once again. The changes to my configuration required me to move applicationContext.xml to /src/main/resources. Thank you so much! Mike -Original Message- From: Joachim Schrod [mailto:jsch...@acm.org] Sent: Tuesday, June 25, 2013

What is the purpose of Validatable.model?

2013-06-25 Thread Marios Skounakis
Hi all, What is the purpose of Validatable.model? I don't seem to be able to find any usages of Validatable.getModel(), setModel() or model... Thanks Marios

Wicket-Atmosphere ResourceRegistrationListener

2013-06-25 Thread Pierre Goupil
Good evening all, I use ResourceRegistrationListener in my HomePage with wicket-atmosphere 0.10 and neither resourceRegistered() nor resourceUnregistered() are called. Does anyone have a clue, please? I have a working clock, as in the examples, but I can't find the UUID for EventBus#post(Object

Re: Customizing links in Paging

2013-06-25 Thread Daniel Watrous
Thanks Paul, I worked it out and added my solution to a SO question about the same issue: http://stackoverflow.com/questions/4996208/how-do-i-modify-the-markup-generated-by-a-wicket-link-in-a-pagingnavigator It's the newest answer at the bottom. Daniel On Mon, Jun 24, 2013 at 3:26 PM, Paul

Re: Spring MVC-like annotations

2013-06-25 Thread Andrea Del Bene
For my project I've built a resource and a little set of annotation to easily expose a REST api which uses JSON as message format. The goal is to map custom methods to a specific path and extract their parameters from the URL path or from the request body. For example: public class

Re: Spring MVC-like annotations

2013-06-25 Thread Martin Grigorov
Cool! On Tue, Jun 25, 2013 at 10:35 PM, Andrea Del Bene an.delb...@gmail.comwrote: For my project I've built a resource and a little set of annotation to easily expose a REST api which uses JSON as message format. The goal is to map custom methods to a specific path and extract their

Re: A Wicket in Ruby

2013-06-25 Thread Mike Pence
That is a good question that I have been mulling over these last few says. I think that I need to suck it up and just re-familiarize with Java -- it is less verbose, with annotations and closures now, right? -- for all of the benefits that the JVM with Wicket will bring me. I got a bit spoiled by

java.lang.ClassNotFoundException: org.apache.wicket.request.UrlUtils

2013-06-25 Thread paulstar
I am upgrading from wicket 1.5.8 to 1.5.10. Compilation is fine but ran into the exception at the very first page. I look at the source code and javadoc of 1.5.10 (and even 1.5.8), there is only one class ClientInfo under org.apache.wicket.request. So where is the

Re: java.lang.ClassNotFoundException: org.apache.wicket.request.UrlUtils

2013-06-25 Thread Francois Meillet
You need to add wicket-request in your dependencies. dependency groupIdorg.apache.wicket/groupId artifactIdwicket-request/artifactId /dependency François Meillet Formation Wicket - Développement Wicket Le 25 juin 2013 à 23:04, paulstar richard@gmail.com a écrit :

Re: java.lang.ClassNotFoundException: org.apache.wicket.request.UrlUtils

2013-06-25 Thread paulstar
That is the problem. Thanks!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-ClassNotFoundException-org-apache-wicket-request-UrlUtils-tp4659787p4659789.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket with Spring for IOC

2013-06-25 Thread Joachim Schrod
Joachim Schrod wrote: 5. If you need Spring beans in a behavior, resource, or any other non-component class, you need to tell Wicket about it. For that, you call Injector.get().inject(this); in that class' constructor. Afterwards, @SpringBean injections work in that

DI Through Constructors w/Wicket

2013-06-25 Thread William Speirs
I think I know the answer before I ask, but is there any way to do constructor injection with Wicket? Say I have a web page and an email service. I need the email service in the web page. Now everyone is going to say, Simply use field injection. That will work, but makes unit testing a real pain

RE: A Wicket in Ruby

2013-06-25 Thread Colin Rogers
Mike, Java is still pretty verbose, for all 'recent' improvements - I don't think that will really ever change, but then I don't see that as an issue. My personal style of coding is to write simple, obvious, testable, but ultimately verbose, code. Code that anyone can read, and understand what

Re: What is the purpose of Validatable.model?

2013-06-25 Thread Igor Vaynberg
this method is useful for validators that integrate with other frameworks. take for example bean-validation framework. a bean validation validator can call getModel(), get the model, cast it to IPropertyReflectionAwareModel, get the property, and retrieve validation annotations associated with