Re: error because of log4j from org.apache.wicket.Application

2009-05-14 Thread Lars Vonk
You should also check your dependencies using the maven dependency plugin. Are there conflicting slf4j-log4j12 versions in there? Are there conflicting log4j versions? On Thu, May 14, 2009 at 9:54 PM, fachhoch fachh...@gmail.com wrote: I using log4j.xml

Re: wicketstuff-jamon

2009-03-13 Thread Lars Vonk
Hi Steve, I haven't worked on the code for a while, so feel free to commit, change or adjust it the way you like. I have used in in production code without problems. It is pretty monkey proof, so even if it fails it wont intervene with the normal process. The only thing that can break is the

Re: wicketstuff-jamon

2009-03-13 Thread Lars Vonk
I started it and left it in a very basic state, mainly because of my lack of css skills. It is funcationally usable and checked in. See the JamonAdminPage. Lars On Fri, Mar 13, 2009 at 2:42 PM, shetc sh...@bellsouth.net wrote: Thanks, Lars. I also have seen a null monitor as well, and was

wicket-auth-roles and spring security 2.x

2009-01-21 Thread Lars Vonk
Hi, I am currently configuring my project to use spring-security 2.x with wicket-auth-roles and noticed that the http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html page is slightly out-of-date. Is it okay is I add a wicket 1.3.5 and spring security 2.x example? Another thing I

Re: wicket-auth-roles and spring security 2.x

2009-01-21 Thread Lars Vonk
Spring security and wicket-auth-roles. You can download it here: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ Hope that helps. James On Wed, Jan 21, 2009 at 5:07 AM, Lars Vonk lars.v...@gmail.com wrote: Hi, I am currently configuring my project to use spring-security

error parsing ajax response

2008-09-22 Thread lars vonk
Hi, I receive the following error message when I try to update a component using ajax: ERROR: Error while parsing response: Could not find root ajax-response element. This is the xml that was send back from the server. ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution

Re: error parsing ajax response

2008-09-22 Thread lars vonk
/ -^ It fails on the - sign of -XX:MaxPermSize=512m (the 230th char). Any thoughts? On Mon, Sep 22, 2008 at 11:41 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I receive the following error message when I try to update a component using ajax: ERROR: Error while parsing response

Re: error parsing ajax response

2008-09-22 Thread lars vonk
be welcome. -Matej On Mon, Sep 22, 2008 at 1:16 PM, lars vonk [EMAIL PROTECTED] wrote: I did some more debugging and found this more detailed error message: XML Parsing Error: unclosed CDATA section Location: http://localhost:8090/appl Line Number 8, Column 230:/head]]/header

Re: can requestcycle or response be null in websession constructor?

2008-09-16 Thread lars vonk
, Sep 16, 2008 at 4:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: not really sure when either would be null, seems strange. why dont you add null checks and if one of them is null dump the stacktrace into your log. -igor On Tue, Sep 16, 2008 at 1:47 AM, lars vonk [EMAIL PROTECTED] wrote: Hi

Re: Clear all sessions?

2008-08-04 Thread lars vonk
Don;t know if there is a Wicket way of doing this but you could do it kind of brute force by clearing out the underlying HttpSessions. Using a HttpSessionListener you can get notified on sessionCreated and sessionDestroyed. Lars On Sun, Aug 3, 2008 at 6:44 PM, Ryan McKinley [EMAIL PROTECTED]

getter setter strategy for models

2008-08-04 Thread lars vonk
Hi, I realized that when I have a getter, but no setter for a certain property on a Model object for form components it fails with the message that it can't find a setter. When I don't have any getters and setters the binding still works since it uses field access. I expect this intended

Re: getter setter strategy for models

2008-08-04 Thread lars vonk
that be an okay compromise for what you want to do? lars vonk wrote: Hi, I realized that when I have a getter, but no setter for a certain property on a Model object for form components it fails with the message that it can't find a setter. When I don't have any getters and setters the binding

Re: problem with AjaxFallbackButton.setDefaultFormProcessing and WicketTester

2008-08-02 Thread lars vonk
I filled a bug: https://issues.apache.org/jira/browse/WICKET-1768 -- Lars On Wed, Jul 30, 2008 at 5:52 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: yep, file a jira issue -igor On Wed, Jul 30, 2008 at 1:53 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I have the following simplified situation

problem with AjaxFallbackButton.setDefaultFormProcessing and WicketTester

2008-07-30 Thread lars vonk
Hi, I have the following simplified situation: A page with one form containing a radiogroup with one option and two AjaxFallbackButtons. One of the two buttons has its defaultFormProcessing set to false (because it does not need to submit the form). When I test the form submission with the

problem with generating project using quickstart

2008-07-30 Thread lars vonk
Hi, I am trying to generate a wicket project using quickstart but I get these errors: Downloading: http://repo1.maven.org/maven2/org/apache/wicket/wicket-archetype-quickstart/1.4-m3/wicket-archetype-quickstart-1.4-m3.jar 12K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on

Re: problem with generating project using quickstart

2008-07-30 Thread lars vonk
Tried at from home and no problem rom here as well. Must have been the network @ work. Thanks for trying Igor. -- Lars On Wed, Jul 30, 2008 at 5:53 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: jar opens just fine over here... -igor On Wed, Jul 30, 2008 at 2:32 AM, lars vonk [EMAIL

Re: @SpringBean and serialization

2008-07-29 Thread lars vonk
Hi Gerald, Don't forget Findbugs is a static code analysis tool, so it can't figure out everything. To get rid of these (false) warnings you could for instance disable these specific warnings in FindBugs for wicket classes that are injected by Spring using FindBugs filters. See

Re: how to register IConverters

2008-07-23 Thread lars vonk
an org.apache.wicket.util.convert.ConverterLocator since there is no set method on the IConverterLocator interface that allows to add converters. Or am I overlooking something? Thanks in advance, Lars On Wed, Jul 23, 2008 at 6:16 AM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Mon, 21 Jul 2008, lars vonk wrote

how to register IConverters

2008-07-21 Thread lars vonk
Hi, I need to use a custom implementation of an IConverter. The way I see to let the application use this class is to: - override method newConverterLocator - return own implementation of IConverterLocater (or sublcass of ConverterLocator) that registers the new IConverter. Is this correct,

Re: IFormValidator - I need some clarification please

2008-07-16 Thread lars vonk
Hi Ned, Here my 2 cents, If you look at the Form.process method you'll see that only after validating the model object is updated. There is no hook that you can use to get a callback after the model object is updated. The only way I see is to override the process method itself (which is not

Re: [announce] Apache Wicket 1.4-m3 is released

2008-07-14 Thread lars vonk
Hi, Thanks for the new version. One remark though: The version 1.4-m3 of the wicket-spring-annot artifact is missing in the maven repo. The lastest version present is 1.3.4. Is it replaced of repacked somewhere? Cheers, Lars On Mon, Jul 14, 2008 at 12:52 PM, Martijn Dashorst [EMAIL PROTECTED]

Re: [announce] Apache Wicket 1.4-m3 is released

2008-07-14 Thread lars vonk
at 11:12 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, Thanks for the new version. One remark though: The version 1.4-m3 of the wicket-spring-annot artifact is missing in the maven repo. The lastest version present is 1.3.4. Is it replaced of repacked somewhere? Cheers, Lars On Mon, Jul 14, 2008

Re: PagingNavigator faster paging

2008-05-16 Thread lars vonk
Ì am not sure about Pagenavigator (is this an existing Wicket class? I can't find it). We have implemented what you describe using DataView and by implementing the IDataProvider to do the call to Hibernate with the given first and count passed in the method *Iterator iterator(int first, int

FYI: new wicket site

2008-05-14 Thread lars vonk
Hi all, A new Wicket site is born! It's a Dutch site on which you can search for day trips and such. See: www.eropuit.nl. Thanks to the user- and dev-group for answering any questions we had during the process. Lars

Re: FYI: new wicket site

2008-05-14 Thread lars vonk
translated as going places or taking a trip. Maurice On Wed, May 14, 2008 at 10:36 AM, lars vonk [EMAIL PROTECTED] wrote: Hi all, A new Wicket site is born! It's a Dutch site on which you can search for day trips and such. See: www.eropuit.nl. Thanks to the user- and dev-group

Re: FYI: new wicket site

2008-05-14 Thread lars vonk
This is not yet implemented. So for now you'd have to know for instance when and where it is and that will limit your search. Lars On Wed, May 14, 2008 at 9:30 PM, Maarten Bosteels [EMAIL PROTECTED] wrote: Nice, but can I search by keyword ? Suppose I want to search for the history of Ajax

Re: OpenSessionInView and LazyInitializationException

2008-05-07 Thread lars vonk
To be more precise: the opensessioninview filter's filter-mapping element needs to be declared before the wicket filter's filter-mapping element. Lars On Wed, May 7, 2008 at 2:35 PM, Wouter Huijnink [EMAIL PROTECTED] wrote: You need to declare the opensessioninviewfilter *before* the wicket

Re: How to avoid Lazy loading exception

2008-05-05 Thread lars vonk
Did you put the filter-mapping of the opensessioninviewfilter before the wicketfilter? The order of filter-mapping definitions in web.xml is the order in which the filters are executed. - Lars On Sun, May 4, 2008 at 7:01 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: I have session in view

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-05 Thread lars vonk
But did it fix Edvin Syse his problem? The last thing he reported was that his problem still persists. I see this problem 10-20 times every day still.. -- Edvin Lars On Mon, May 5, 2008 at 1:41 PM, Johan Compagner [EMAIL PROTECTED] wrote: the only thing we found was the finalize block

Re: Final fields not getting inited?

2008-05-05 Thread lars vonk
This is constructor ordering issue. When constructing an object in Java, at first the superclass constructor is executed and the object's own constructor. Since the ComponentInstantionListener is executed by the * superclass* of your Page, which will call your init method (annotated by @Inject),

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread lars vonk
The @SpringBean approach is very useful, but its magic about a transient attribute that is not transient make us fell uncomfortable. What do you mean by transient and magic? The attributes are not transient. A proxy is generated that is serialized. At runtime the real dependency is retrieved

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-24 Thread lars vonk
Hi, The code in the blog contains some visibility issues. So I wouldn't use that code in your application without making it Thread safe. Since the write and read of the uploading and uploadComplete flag happen in different Threads access to those variables must be either protected by a lock or

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
I would advice you to group the transactional beans in one Service, define that service in Spring and make it transactional. By using the proper Transaction Propagation levels the wrapped beans can use existing transactions if there is one. See

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
again. Stefan On Thu, 2008-04-24 at 11:03 +0200, lars vonk wrote: I would advice you to group the transactional beans in one Service, define that service in Spring and make it transactional. By using the proper Transaction Propagation levels the wrapped beans can use existing transactions

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
-spring? Many thanks :) Stefan On Thu, 2008-04-24 at 13:36 +0200, lars vonk wrote: I wouldn't advice you to do it in the requestcycle for the reasons you already describe yourself: - Too cumbersome - All request are then in a Transaction (might no be a problem though). - How

Re: Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread lars vonk
Isn't this also something you could let an Apache Webserver do (if you put that in front of your Appserver)? Or maybe Appserver can also do this out-of-the-box? On Thu, Apr 24, 2008 at 1:56 PM, Stefan Simik [EMAIL PROTECTED] wrote: I thought about it, and I have 2 ideas: 1. IDEA

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
? The same TransactionManager spring bean? Or the same TransactionManager spring bean instance? Thanks. Stefan On Thu, 2008-04-24 at 14:03 +0200, lars vonk wrote: Well it technically shouldn't matter if you use the wicket-spring module I guess. It think it matters that you use the same

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-23 Thread lars vonk
@1: There is also the session timeout of your appserver (I think the default for most app servers is 30 minutes) In my experience it is not very user friendly if pages take that long to render... A better approach is I think to use some Ajax stuff as you describe in your second question. @2:

Re: ListView and Threading

2008-04-21 Thread lars vonk
Hi, How is the done and available flag set in the Tld class by the TldChecker? Since you are using a separate Thread that sets these flags : /* Iterate over the tlds and instantiate a TldChecker */ for(Tld tld : tlds) e.execute(new TldChecker(tld, query)); // Args could be for instance

Re: ListView and Threading

2008-04-21 Thread lars vonk
guarantees from the JVM, only headaches :-). Lars On Mon, Apr 21, 2008 at 5:32 PM, Edvin Syse [EMAIL PROTECTED] wrote: lars vonk wrote: Hi, How is the done and available flag set in the Tld class by the TldChecker? Since you are using a separate Thread that sets these flags

Re: good WicketTester info page?

2008-04-16 Thread lars vonk
I would advice you to just try it out... that's how I did it. You could use the mvn quickstart archetype tocreate a skeleton project and start testing: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.3

Re: WebRequest question

2008-04-11 Thread lars vonk
when using Spring you must extends Spring application You don't need to. You could extend WebApplication and in the init() add : void init() { addComponentInstantionListener(new SpringComponentInjector(this)); } But coming back to your real point: It would be nice if Application and

Re: WebRequest question

2008-04-11 Thread lars vonk
Even when using proxies this could get tricky if both try to implement the same method. whichever implementation wins your app will not work properly. What do you mean by wins? Isn't this the same as how for instance Spring interception works. There you can add multiple interceptors to one

Re: Model refreshing and behaviors

2008-04-11 Thread lars vonk
Do you replace the model or change the content of the model? replace model is: componentA.setModel(new Model(...)); change model: componentA.setModelObject(...); I think when you change it it should work... Another approach might be to replace component A with a fresh instance, although I

Re: wicket login problem

2008-04-10 Thread lars vonk
I don't think getters and setters are needed anymore it also support field access. On Thu, Apr 10, 2008 at 4:18 PM, Ryan Gravener [EMAIL PROTECTED] wrote: Take a look at http://wicketstuff.org/wicket13/forminput/ and http://cwiki.apache.org/WICKET/working-with-wicket-models.html In your

Re: I have an error when try to test submit using FormTester

2008-04-09 Thread lars vonk
Hi, This is a bug in WicketTester. See http://issues.apache.org/jira/browse/WICKET-861. There was a similar thread on the user-group recently: http://www.nabble.com/Re%3A-Best-method-of-testing-behaviors.-p1639.html As I understand it the workaround is to remove the

Re: I have an error when try to test submit using FormTester

2008-04-09 Thread lars vonk
According to that Thread I was referring it was probably caused by the fact the newRequestCycleProcessor method in the WebApplication class was overridden to return the UrlCompressingWebRequestProcessor. Did you override that method as well? On Wed, Apr 9, 2008 at 1:25 PM, Tomasz Prus [EMAIL

Re: @SpringBean in init

2008-04-08 Thread lars vonk
You could also define your WicketApplication in your spring config by setting the applicationFactoryClassName property of the WicketFilter to org.apache.wicket.spring.SpringWebApplicationFactory. This way you don't have to manually inject your dependencies via the InjectorHolder. The only thing is

Re: Throw AbortWithWebErrorCodeException in onBeforeRender

2008-04-03 Thread lars vonk
Why not implement this in the subclass itself? It sounds really specific for a certain class right? So I think the subclass itself is the correct place. On Wed, Apr 2, 2008 at 11:41 AM, Michael Sparer [EMAIL PROTECTED] wrote: (Using wicket 1.3.2) I have a super class (WebPage) that throws a

Re: Best method of testing behaviors.

2008-03-31 Thread lars vonk
Could this be related: https://issues.apache.org/jira/browse/WICKET-1434. The behavior of startPage(Class) and startPage(Page) are currently not the same in WicketTester. Lars On Mon, Mar 31, 2008 at 8:39 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: it might be just that wickettester doesnt work

Re: Lazy load exception wicket and hibernate

2008-03-30 Thread lars vonk
Sorry, my bad. I made a typo earlier what may have caused the confusion: On Sat, Mar 29, 2008 at 7:15 AM, lars vonk [EMAIL PROTECTED] wrote: IIRC you should put the OpenEntityManagerInViewFilter definition in the filter-mapping after the WicketFilter otherwise the WicketFilter will come

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread lars vonk
What is the order of the filters you defined in your filter-mapping element in the web.xml. IIRC you should put the OpenEntityManagerInViewFilter definition in the filter-mapping after the WicketFilter otherwise the WicketFilter will come first. Lars On Fri, Mar 28, 2008 at 9:11 PM, cjlyth

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread lars vonk
were executed in the order they were defined in web.xml. so open..inview should be declared before wicket. and its not the filter-mapping but the filter element... -igor On Sat, Mar 29, 2008 at 4:15 AM, lars vonk [EMAIL PROTECTED] wrote: What is the order of the filters you defined in your

Re: clustering failover error

2008-03-27 Thread lars vonk
Hi, Assuming you use CGLib: CGLib classes could cause this problem, it makes sense since: - It does not occur in a single jvm, the enhanced classes are available there. - It does occur when read from a different jvm *or* restarted jvm: The enhanced classes are no longer available there.

Re: clustering failover error

2008-03-27 Thread lars vonk
cglib enhanced classes in your session. Or was this already a known issues? Lars On Thu, Mar 27, 2008 at 12:19 PM, lars vonk [EMAIL PROTECTED] wrote: Hi, Assuming you use CGLib: CGLib classes could cause this problem, it makes sense since: - It does not occur in a single jvm, the enhanced

Re: Shared resources with parameters?

2008-03-25 Thread lars vonk
You could put Apache in front and let it serve you static images? Lars On Tue, Mar 25, 2008 at 10:18 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Hi, I am looking for a way to serve many static images. It is important that I do not have to separately register them (as with SharedResources,

Re: Reusable panels with content

2008-03-25 Thread lars vonk
One way to do this is use Panels. See http://cwiki.apache.org/WICKET/panels-and-borders.html On Tue, Mar 25, 2008 at 4:31 PM, kumark [EMAIL PROTECTED] wrote: I have just done a prototype using portlets, and we are evaluating wicket to see if we can do similar stuff with out portlets. As I

Re: Showing Wicket AJAX Debug Window for certain users...

2008-03-21 Thread lars vonk
Another option is to install the FireBug plugin in Firefox and use that. This also allows you to see what the request and responses are. Lars On Fri, Mar 21, 2008 at 1:44 PM, James Carman [EMAIL PROTECTED] wrote: On 3/21/08, Matej Knopp [EMAIL PROTECTED] wrote: Unfortunately there is not a

Re: Suggested Enhancement To Spring Support

2008-03-20 Thread lars vonk
Spring support in Wicket works with proxies, so your services are not Serialized by Wicket, but your Proxy is. With your suggestion your Service will be Serialized and with it all its dependencies like DAO's etc. This will most likely cause trouble when you are in a clustered environment and use

Re: StreamCorruptedException when using autocomplete

2008-03-18 Thread lars vonk
Have you found out which Page it tries to deserialize? Did you try to deserialize this exact page using another widget? The exception indicates the internal object stream format is corrupted. So this would indeed mean it would also occur if you try to to deserialize it using a normal widget. Here

Re: wicketstuff-jamon

2008-03-18 Thread lars vonk
Please beware that it's still in development (just started few weeks ago). The labels are added to JAmon, but for the admin functionality you still need to use the provided JAMon admin functionality (jsps). I am currently Wicketising (new verb?) the admin interface now, but that is far from

Re: [discuss] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread lars vonk
Response inline On Mon, Mar 17, 2008 at 9:13 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Why should we keep supporting 1.3 and JDK 1.4? Would 1.3 + Java 5 still be supported, or will support for 1.3 be dropped totally? If so, it would then be nice that an upgrade from 1.3 with Java5 will

WicketTester and RequestCycle behavior

2008-03-14 Thread lars vonk
Hi, I noticed that WicketTester behaves differently regarding the RequestCycle based on how you start a Page in your tests. I have my own custom WebRequestCycle which I return in MyWebApplication.onNewRequestCycle(). For instance: If I do: Page myPage = wicketTester.startPage(MyPage.class);

Re: Any Wicket way to submit 2 forms with 1 submit button?

2008-03-08 Thread lars vonk
Is there a reason why you do not merge the two forms in one form? Lars On Sat, Mar 8, 2008 at 8:22 AM, Justin Morgan - Logic Sector [EMAIL PROTECTED] wrote: Here's a problem that other people may have encountered. Hopefully there's a Wicket way to solve it. The scenario... I have two

Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread lars vonk
Could you post the code of the panel and the stacktrace of the nullpointer? On Fri, Mar 7, 2008 at 8:55 AM, Mead [EMAIL PROTECTED] wrote: well, a Panel Component could not get spring context beans, it got java.lang.NullPointerException, but a WebPage Component is ok. I use

Re: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread lars vonk
PROTECTED] wrote: Hello lars vonk, yes, I did. Other component is ok, just Panel component cause some NullException. did you access SpringContext in Panel, and its that OK? Thanks for your help. I do and it works. But I use the Annotation-based approach: http://cwiki.apache.org

Re: Re: Re: Re: spring problem! Panel Component could not get spring context beans,

2008-03-07 Thread lars vonk
the bApplication servlet creates the cn.meadlai.cms.view.wicket.bApplication you'll get a different non spring managerd instance. On Fri, Mar 7, 2008 at 10:49 AM, Mead [EMAIL PROTECTED] wrote: Hello lars vonk, I find I have two WebApplication: aWebApplication, bWebApplication and aWebApplication inject

Re: nljug wicket presentation

2008-03-07 Thread lars vonk
/sessions/00035/ Program:http://www.nljug.org/pages/events/content/jspring_2008/sessions/?template=showprogram.htmlfs=1 Speaker will be Lars Vonk. most content of the website is in dutch as far as i could see and i assume the presentations will be too. Maurice

Re: How to inject Spring Application context into WicketTester

2008-03-07 Thread lars vonk
Hi, What we did is use the spring testing (see http://static.springframework.org/spring/docs/2.5.x/reference/testing.html) capabilities for this: We created an abstract base class that all test cases that need to test wicket pages or components @RunWith(SpringJUnit4ClassRunner.class)

Re: RequestCycle.get() in WebResource

2008-03-07 Thread lars vonk
I guess you can't. Since you are in the Application init method I don't think there is a requestcycle available (request cycles represents the processing of a request). Lars On Fri, Mar 7, 2008 at 12:19 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: How can I get hold of the current request cycle

Re: nljug wicket presentation

2008-03-07 Thread lars vonk
Depends on which date the meetup is? Lars On Fri, Mar 7, 2008 at 12:25 PM, Johan Compagner [EMAIL PROTECTED] wrote: translate it to English and do it also on the wicket meeting? On Fri, Mar 7, 2008 at 11:48 AM, lars vonk [EMAIL PROTECTED] wrote: Yes that's me. You're assumptions

Re: Use Ajax for loading form dropdowns, but query params for search?

2008-03-04 Thread lars vonk
We are building a somewhat similar application. The only difference is that we don't need to synch the search criteria with the search panel (the Ajax dropdowns in your case), since the search panel in our application will do a clean search when used from the results page. The code looks

Re: Wicket Tester And OpenSessionInView

2008-03-02 Thread lars vonk
One thing is to run each test in a single transaction. This way the session will remain open. I tend to use Spring for this (see http://static.springframework.org/spring/docs/2.5.x/reference/testing.html#testcontext-tx. ). If you are not using Spring you could start a transaction yourself. Hop

Re: SpringBean in AuthenticatedWebSession

2008-02-29 Thread lars vonk
If I recall it correctly only Components are injected. A Session is not a Component and therefor not injected. You could pass the UserDao as construtor argument yourself when instantiating you Session class in your newSession method in your WebApplication. Lars On Fri, Feb 29, 2008 at 10:54

Re: SpringBean in AuthenticatedWebSession

2008-02-29 Thread lars vonk
Nice one Sebastiaan. Only now I have to refactor my code :-) On Fri, Feb 29, 2008 at 11:52 AM, Bert Radke [EMAIL PROTECTED] wrote: Thank you, while trying the approach from Lars, your answer came in ;) On Fri, Feb 29, 2008 at 11:33 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Re: JDBC Connection for CRUD operations

2008-02-29 Thread lars vonk
What driver did you specify? On Fri, Feb 29, 2008 at 1:17 PM, wicketUser [EMAIL PROTECTED] wrote: Hi, I am new to Wicket and I don't wish to use hibernate as persistence framework. I am trying to do CRUD operations through JDBC connection to a mysql database. I have added mysql

Re: Alternative to WicketTester?

2008-02-27 Thread lars vonk
There are no Actions in Wicket as you have in Struts (isn´t that great!?!). Just put your business logic in a POJO and you can test that independently. Remember that in general it is not a good practice to mix view logic (your Components and Pages) with business logic (the POJOs). Lars On Wed,

Re: Monitoring Wicket using JAMon

2008-02-25 Thread lars vonk
I would be glad to contribute something. Are you related to the wicketstuff project? Or should I just appy for commit access as described on: http://wicketstuff.org/confluence/display/STUFFWEB/Home. Cheers, Lars On Mon, Feb 25, 2008 at 5:00 PM, Ryan Sonnek [EMAIL PROTECTED] wrote: I've been

Re: Monitoring Wicket using JAMon

2008-01-31 Thread lars vonk
Hi thanks for the replies, Yes I want to do it per Page so I can monitor the performance per page. Here is how I implemented it, I am not sure if I always get the name of the Page name in the implementation of onEndRequest. (Allthough during tests I always got the name of the Page.) public

Re: Monitoring Wicket using JAMon

2008-01-31 Thread lars vonk
on Page2 that will result in a refresh (ajax or not) of Page2. IN this case JAMon shows: Page2 30 ms. In my understanding I measure the time it takes to handle a complete request-respone cycle. Lars johan On Jan 31, 2008 1:32 PM, lars vonk [EMAIL PROTECTED] wrote: Hi thanks

Re: Monitoring Wicket using JAMon

2008-01-30 Thread lars vonk
and after the RequestCycle methods. I want to check with you guys if this is the best option or not. Which one do you recommend? Is there maybe another candidate I overlooked? Thanks, Lars On Dec 24, 2007 5:45 PM, lars vonk [EMAIL PROTECTED] wrote: Hi all, I am currently monitoring some spring