SubmitLink question

2009-02-15 Thread Martijn Reuvers
Hello everyone, I have a question about a SubmitLink. I am using wicket 1.4.rc2 and am trying to add some logic to the onSubmit() of the link. However when I do not use the constructor where you need to pass the Form to it, it generates really 'weird' html and the link does not work. The link is

Re: SubmitLink question

2009-02-16 Thread Martijn Reuvers
Hello Igor, I am new to this list, so what do you mean with a quickstart? Martijn On Mon, Feb 16, 2009 at 5:46 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: quickstart please -igor On Sun, Feb 15, 2009 at 2:00 PM, Martijn Reuvers martijn.reuv...@gmail.com wrote: Hello everyone, I

Re: SubmitLink question

2009-02-16 Thread Martijn Reuvers
occurs, it is likely that the source of the problem lies within wicket and not within your custom code. In that case, create a JIRA issue here: http://issues.apache.org/jira/browse/WICKET and attach your quickstart project reproducing the problem. Martin 2009/2/16 Martijn Reuvers martijn.reuv

Re: SubmitLink question

2009-02-16 Thread Martijn Reuvers
/jira/browse/WICKET and attach your quickstart project reproducing the problem. Martin 2009/2/16 Martijn Reuvers martijn.reuv...@gmail.com: Hello Igor, I am new to this list, so what do you mean with a quickstart? Martijn On Mon, Feb 16, 2009 at 5:46 AM, Igor Vaynberg igor.vaynb...@gmail.com

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Martijn Reuvers
Hello, I am not entirely sure if I understand your question correctly. But I usually use Spring like this: YourDao (either defined in applicationContext.xml or in separate spring-config files, or annotation-driven e.g. with @Repository. The template you mention I usually autowire into the dao so

Re: @SpringBean vs getApplication().getDao()

2009-02-18 Thread Martijn Reuvers
Hey Sergey, As far as I know it should create only a single instance for each spring bean (if they are singletons that is). Thus always the same bean should be injected into your wicket classes. Does this problem occur with the @SpringBean or using the proxy approach? I've been using @SpringBean

Re: AW: AW: Troubles with Spring: bean of type X not found

2009-02-21 Thread Martijn Reuvers
Hi Christian, I am using the same config as you (as far as I can tell), with the exception I always use: @SpringBean (name=nameHere) so I always use the name of a bean. So far I never had trouble with that. Perhaps its the wicket version you are using different from ours? I use 1.4rc2 and

Re: Depricated HeaderContributor.forJavaScript?

2009-02-21 Thread Martijn Reuvers
Hi Brill, You can use: JavascriptPackageResource.getHeaderContribution(..). Martijn On Sat, Feb 21, 2009 at 5:17 PM, Brill Pappin br...@pappin.ca wrote: It seems that in 1.4-SNAPSHOT HeaderContributor.forJavaScript among other is deprecated, but I am unable to find any documentation about

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Martijn Reuvers
Hello, As Martin says use javascript, if you really want it easy use jQuery, you can do something like $('#myElem').css( ... ); and do the calculation in javascript. Check the docs on the exact syntax (docs.jquery.com), Martijn On Tue, Feb 24, 2009 at 8:00 PM, Martin Makundi

Re: NullPointerExceptions due to missing Spring constructor injection

2009-02-28 Thread Martijn Reuvers
Hi Christian, I think you should not use use the static modifier with this, instead use: @SpringBean private ArticleRepository repos; This should work fine and you can use it inside your constructor. Static does not add anything useful in this case, as its already a singleton in Spring.

Re: bad practice in sharing models between wicket form and hibernate?

2009-02-28 Thread Martijn Reuvers
Hello Stephen, Does not sound like a problem to me. As long as your hibernate session is closed after the save you do, this object will be in a detached state and generally should cause no trouble (same goes for if you fetch an object from the database thru hibernate). Martijn On Sat, Feb 28,

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-04 Thread Martijn Reuvers
+1 for me too. On Tue, Mar 3, 2009 at 9:39 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Though I haven't done much work with 1.4, I think DDC and LV need to have the same generics semantics. And I prefer the simple version. So count my +1. Martijn On Tue, Mar 3, 2009 at 9:33 PM,

Re: OT: wicket running in Tomcat got a java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

2009-10-12 Thread Martijn Reuvers
Hi Fernando, If I were you and want to quickly test if there's something wrong with your Tomcat. Download the .zip distribution of Tomcat, extract, run and deploy your application in /webapps/. That should work just fine normally, if it does - then you know your current installation of Tomcat is

Re: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Martijn Reuvers
What's wrong with using notepad or vi? Never such issues with them. :P On Fri, Apr 3, 2009 at 5:26 PM, James Carman jcar...@carmanconsulting.com wrote: On Fri, Apr 3, 2009 at 11:21 AM, Gwyn Evans gwyn.ev...@gmail.com wrote: Yes - use IDEA!  :-) +1! (I can hear the sound of a can of worms

Re: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Martijn Reuvers
We've got a guy at work that swears by emacs and refuses to use anything else. Of course, he's the slowest guy on the project team and he never gets anything done. Hehe if you generate say getters and setters for 20 fields with an IDE, or type them all out instead - you have to type extremely

Re: JDeveloper - Can I get a show of hands?

2009-06-19 Thread Martijn Reuvers
When you use ADF, then stick to JDeveloper you'll get a lot of integration for your application and can really build applications fast. However if you use open-source frameworks like wicket, you're better off using one of the other IDE's (Netbeans, Eclipse, IntelliJ). Just use maven or so, then

Re: JDeveloper - Can I get a show of hands?

2009-06-19 Thread Martijn Reuvers
site use eclipse, but I'm an IntelliJ junkie (they got me hooked many years ago and I can't break free).  For the most part, we don't have issues between environments, provided folks have their plugins set up correctly. On Fri, Jun 19, 2009 at 6:39 AM, Martijn Reuvers martijn.reuv...@gmail.com

Re: JDeveloper - Can I get a show of hands?

2009-06-19 Thread Martijn Reuvers
JDev is not a bad IDE actually. If you want a lot of ready to use integrated functionality then its by far better than any of the earlier mentioned IDE's (especially if you use e.g. bc4j, soa, adf etc) - this is true as long as you need the oracle taste that is. For pure java programming the

Re: Mysterious NullPointerException

2009-06-29 Thread Martijn Reuvers
Likely the message or stacktrace(s) (the actual cause) is throwing the nullpointer, in which case that is all you can see when logging. You might wanna try: log.error(whatever here,e.getCause()), generally the latter is what you're interested in anyway. You might also try: @Override protected