JSR 330 Spring

2010-01-25 Thread Jochen Mader
Hello, I am using wicket together with spring. Getting it going with @SpringBean was pretty straight forward but now I am wondering if it is possible to get it going with JSR 330 annotations as the spring side of my app is already using it. Thanks, Jochen

Re: JSR 330 Spring

2010-01-25 Thread Jochen Mader
Thanks for the quick answer. I never came across a scenario where somebody did or I would use two IoC containers in the same application. Why would you do that? Cheers, Jochen

Wicket, Spring 3 and UnitTesting

2010-01-26 Thread Jochen Mader
Just figured out how to do UnitTesting with Spring 3 and Wicket. Spring 3 introduced a check to see if a given context was a WebApplicationContext. That means ApplicationContextMock is not suitable for testing (giving the infamous No WebApplicationContext found: no ContextLoaderListener

Re: wicket osgi (not Pax)

2010-01-28 Thread Jochen Mader
Buddy-class loading is real OSGi since 4.1 ;) The new MANIFEST.MF entry is named Bundle- *BuddyPolicy.* Cheers, Jochen On Thu, Jan 28, 2010 at 9:55 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes I mean buddy class-loading. It might not be real OSGi but it works:-) as far

Re: wicket osgi (not Pax)

2010-01-28 Thread Jochen Mader
I ran into a lot of use-cases for it. Just take a look at esper and drools. They are packaged as OSGi and need to be able to work with classes provided by people using them. But yes, we are getting a little off topic here :D

Re: Wicket, Spring 3 and UnitTesting

2010-01-28 Thread Jochen Mader
Sorry for my late answer. StaticWebApplicationContext doesn't cut it for me. Your example contains a small mistake: Inserting the mock-object won't work as registerSingleton expects to get a Class. As I want to create mock objects with EasyMock there are two approaches (as far as I know). The one

Re: Wicket, Spring 3 and UnitTesting

2010-01-28 Thread Jochen Mader
Oh man, you are right. My eyes got a little selective on that line :)

Re: Speeding Up HTML Parse???

2010-02-25 Thread Jochen Mader
a) Read the speed tracer output, if the time is spent with the redirect or loading the actual markup it will tell you. b) HTML rendering in the browser is influenced by the markup and ajax. Read the speed tracer output and it will tell you where the time is spent. It's most likely not wicket that

Wicket archetype for hibernate 3.5 and spring 3

2010-07-25 Thread Jochen Mader
I created a Maven archetype for wicket application containing the following things: - Everything is configured using Spring 3 - Hibernate 3.5 is used for persistence - Example classes using JPA-style annotations - Example DAOs and base classes for CRUD-operations - Everything runs on an

Usage of ObjectSizeOfAgent

2011-04-15 Thread Jochen Mader
I am trying to get the ObjectSizeOfAgent to run in Tomcat. So far I had no look as it has quite a lot external dependencies. has anybody got this to run or got some pointers what to do? What I did so far: added the javaagent to the commandline and it gets loaded. I had to put all libs required by

Got some code for you (ObjectSizeOfAgent)

2011-06-08 Thread Jochen Mader
Hey, a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to run. As I needed it pretty badly for a project I built something new and added some more accurate size measurement for objects. I put all my code on Github and I am going to add some more performance related things in

Re: Got some code for you (ObjectSizeOfAgent)

2011-06-10 Thread Jochen Mader
? On Wed, Jun 8, 2011 at 8:32 PM, Jochen Mader pflanzenmoer...@gmail.com wrote: Hey, a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to run. As I needed it pretty badly for a project I built something new and added some more accurate size measurement for objects. I put

Re: Lazy loading exception despite of OpenSessionInViewFilter and object loading within a request

2011-09-03 Thread Jochen Mader
Open session in view is a bad idea with a full fledged ajax-Wicket application as things get unpredictable pretty fast. Am 02.09.2011 22:34 schrieb Sven Meier s...@meiers.net: Hi, there are multiple requests going on probably (e.g. because of redirects), You should put a breakpoint into

Statful image

2011-09-07 Thread Jochen Mader
We just stumbled upon the following code in the Wicket(1.4.17) Image class getStatelessHint method: return (getImageResource() == null || getImageResource() == localizedImageResource.getResource()) localizedImageResource.isStateless) My question is: Why does an image become stateful because of a

Re: Statful image

2011-09-07 Thread Jochen Mader
Found it shortly after my mail (as always). Never mind. Am 07.09.2011 09:31 schrieb Jochen Mader pflanzenmoer...@gmail.com: We just stumbled upon the following code in the Wicket(1.4.17) Image class getStatelessHint method: return (getImageResource() == null || getImageResource

Re: Statful image

2011-09-07 Thread Jochen Mader
at 11:42 AM, Martin Grigorov mgrigo...@apache.org wrote: Would you share your knowledge with us ? :-) On Wed, Sep 7, 2011 at 12:33 PM, Jochen Mader pflanzenmoer...@gmail.com wrote: Found it shortly after my mail (as always). Never mind. Am 07.09.2011 09:31 schrieb Jochen Mader pflanzenmoer

Problem with IMarkupResourceStreamProvider

2011-09-09 Thread Jochen Mader
I implemented a panel as a IMarkupResourceStreamProvider. It works perfect if I add it to a page using the add method. If I use replaceWith to replace another panel with this one I get Tag expected and the following stacktrace MarkupStream: [markup =

Re: Problem with IMarkupResourceStreamProvider

2011-09-09 Thread Jochen Mader
Found the problem: In an earlier version of the panel I overwrote getMarkupType. Removing it fixed the problem. public MarkupType getMarkupType() { return MarkupType.HTML_MARKUP_TYPE; } On Fri, Sep 9, 2011 at 10:17 PM, Jochen Mader pflanzenmoer...@gmail.com wrote: I implemented

Modifying PageParameters

2011-11-10 Thread Jochen Mader
Hello, I am currently working on a Weld-Integration for Wicket 1.5. Got almost everything done but Conversations are giving me a headache. When navigating to another page I need to provide the conversation ID. Only at the very end of a request I am able to figure out if the conversation is valid.

Re: Modifying PageParameters

2011-11-10 Thread Jochen Mader
So much more awesome... (goes and cries in a corner) Am 11.11.2011 01:04 schrieb Igor Vaynberg igor.vaynb...@gmail.com: is it more awesome then this one: https://github.com/42Lines/wicket-cdi -igor On Thu, Nov 10, 2011 at 1:22 PM, Jochen Mader pflanzenmoer...@gmail.com wrote: Hello, I

Re: setResponsePage in ajax call

2012-04-26 Thread Jochen Mader
Please provide some code-samples to show us what you are doing. If it's related to an older issue it would be great if you could give more details (link to the issue). Am 26.04.12 11:05 schrieb Jürgen Lind unter juergen.l...@iteratec.de: Hi, I have difficulties in using the setResponsePage in

New book on Wicket 1.5

2012-05-02 Thread Jochen Mader
in German and has been published by Entwickler Press. Titel Wicket: Komponentenbasiert und objektorientiert- das alternative Java-Webframework Autor Jochen Mader Verlag Software + Support, 2012 ISBN3868020810, 9783868020816 Länge 219 Seiten Kurzinfo Apache Wicket ist ein komponentbasiertes

Wicket 6 and CDI

2012-07-15 Thread Jochen Mader
To get that out of the way: I know that Wicket 6 won't be shipped with CDI directly :) I still would like to use Wicket 6 in Glassfish. Are there plans to port wicket-cdi to Wicket 6? I couldn't find anything on the 42lines git-repo on that issue. Help required? Thanks, Jochen

Re: Wicket 6 and CDI

2012-07-15 Thread Jochen Mader
On Sun, Jul 15, 2012 at 11:15 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: havent had time to try it out on wicket 6 yet, is anything actually broken? -igor On Sun, Jul 15, 2012 at 11:40 PM, Jochen Mader pflanzenmoer...@gmail.com wrote: To get that out of the way: I know that Wicket 6

Re: Wicket 6 and CDI

2012-07-15 Thread Jochen Mader
) Took me like 3 minutes. I just did a quick smoke test in Glassfish and so far things are looking good. Will hopefully get some more time tomorrow evening to test a little more. If I find any problems I will let you know. CU, Jochen On Sun, Jul 15, 2012 at 11:45 PM, Jochen Mader pflanzenmoer

Re: Determine session size for Wicket 1.5

2012-07-17 Thread Jochen Mader
Get a heapdump, use yourkit/visualvm. On Mon, Jul 16, 2012 at 11:14 AM, Ian Marshall ianmarshall...@gmail.com wrote: I don't think that I am getting the session size in the right place. Despite my session sizes being logged as very small at ~1.7kB using the Google App Engine (GAE) web

Re: Thread safety of various Wicket classes?

2012-10-17 Thread Jochen Mader
First of all: You shouldn't start optimizing without having an actual problem. I don't see a real benefit in sharing a validator between several components. ON THE OTHER SIDE There shouldn't be a problem using Validators across several component instances as I am not aware of a single stateful

Why is SortParam.getProperty generic?

2012-11-17 Thread Jochen Mader
It might be due to the fact that I am sick but I don't get why SortParam.getProperty doesn't return a String but T. So far I always used getProperty as vasis for a PropertyModel to resolve things. Any hint would be appreciated, Jochen

Re: Why is SortParam.getProperty generic?

2012-11-17 Thread Jochen Mader
On Sat, Nov 17, 2012 at 3:42 PM, Sven Meier s...@meiers.net wrote: It's just that some devs wanted to use other things than strings to identify the sort order: https://issues.apache.org/jira/browse/WICKET-4535 Perhaps Jesse has an example? Sven On 11/17/2012 01:19 PM, Jochen Mader

Re: Why is SortParam.getProperty generic?

2012-11-17 Thread Jochen Mader
I was just about to answer my own question. We migrated a big part of our application to use LambdaJ instead of PropertyModels. With getProperty being generic it's now possible to use it instead of passing around strings. Thanks, Jochen On Sat, Nov 17, 2012 at 4:01 PM, Jochen Mader pflanzenmoer

A little Christmas present

2012-12-23 Thread Jochen Mader
We (Olaf Siefart and me) have prepared a little christmas present for you. It's a small Wicket application showcasing different approaches to doing asynchronous loading in Wicket (WebSockets, HeartBeat, ...). We built it for our company developer conference and afterward decided to open source it.

Re: JPA annotations

2013-01-02 Thread Jochen Mader
I think you should first understand what the different JPA-annotations actually do. @Entity, @Table, @Id, @GeneratedValue are annotations used on the entity level to tell the mapper what to do with properties. These informations are of no interest to Wicket. @EJB, @PersistenceUnit, @Resource are

Re: Constructors take vararg of Component? (Enhancement RFC)

2013-01-07 Thread Jochen Mader
Why aren't you using fluent interfaces? The API ist built around that and allows for a much cleaner structure inside your constructors. Just watch out for those Auto-Formaters ;) new FormRsvpPage(frmRsvp, cpm) .add(new StatusPanel(pnlRsvp)) .add(new ConfirmPanel(pnlConfirm))

Re: update panels inside webmarkupcontainer

2013-01-14 Thread Jochen Mader
As long as you are not holding references on your own it will be collected after a replaceWith. On deleting pages: You could use DefaultPageStore.removePage but I am not sure if that's a really good idea. Wicket is pretty good in managing what's in the store and you should rely on its behavior as

Re: ASK: Updating one wicket page's component from other wicket apps

2013-01-14 Thread Jochen Mader
I would say he already provided all workable options: 1. Use a dedicated messaging mechanism (JMS) through a container (Spring, JEE6, ...) 2. Build your own messaging mechanism Which one is best for you depends on your requirements. On Mon, Jan 14, 2013 at 12:56 AM, Noven noven_...@yahoo.com

Re: Eclipse or IntelliJ

2013-02-20 Thread Jochen Mader
I abandoned Eclipse for IntelliJ after using it for almost 10 years because of Maven. Since then I have become a big Idea-Fan :) Working with Wicket using the community edition (the free one) is no problem at all as you can use the Maven-Jetty-PlugIn. I did that for quite a while. I only switched

Unit-Testing JavaScript

2013-02-20 Thread Jochen Mader
From time to time we have to do some JavaScript-heavylifting in conjunction with the Wicket-JS-API. To make it short: What are you doing to Unit-Test JavaScript in Wicket? Especially JavaScript interacting with Wicket-APIs? Cheers, Jochen

Re: Eclipse or IntelliJ

2013-02-20 Thread Jochen Mader
I don't really like forcing people to use a specific IDE. We keep our stuff IDE-agnostic as far as possible. That said: I have about 50 lines of code in my current multimodule project in Idea 12. No slow down or any other problems ;) But I have to say: Idea 10 was a horrible failure. On Wed,

Re: Eclipse or IntelliJ

2013-02-20 Thread Jochen Mader
Well, weighting a few years of Eclipse usage vs one week of Idea is not really a fair comparison. It took me about 4 months to really get into Idea (short-cuts, different compile behavior ...). If you ever really consider switching an IDE don't base your assumptions on a week of usage. If there

Re: using static fileds in a page

2013-03-06 Thread Jochen Mader
If you are already using Spring why do you need the field to be static? Beans are by default singleton scoped and can be tailored to session/request scoped. On Wed, Mar 6, 2013 at 1:41 PM, Martin Grigorov mgrigo...@apache.org wrote: If you create an ExecutorService then you should shutdown it

AjaxFormValidatingBehavior with multiple FormComponents

2013-08-08 Thread Jochen Mader
Wicket 6.9.1: I ran into a weird issue: I am trying to submit a form when pressing enter. Using the AjaxFormValidatingBehavior (same for AjaxFormSubmitBehavior) I can submit a form with a SINGLE FormComponent. When adding a second one the form won't submit when pressing enter. Sourcecode below

Re: AjaxFormValidatingBehavior with multiple FormComponents

2013-08-10 Thread Jochen Mader
the keyCode and on ENTER does: $('#buttonId').trigger('click') On Thu, Aug 8, 2013 at 6:13 PM, Jochen Mader pflanzenmoer...@gmail.com wrote: Wicket 6.9.1: I ran into a weird issue: I am trying to submit a form when pressing enter. Using the AjaxFormValidatingBehavior (same