Re: HOWTO to only skip required validators

2012-04-27 Thread Stijn Maller
I'm a bit late in responding so I don't know if this is still useful to you, but here is how we solved your requirement in our project. I'd still like to find a more elegant approach, but it is the least intrusive approach I could come up with and it sure beats the bazooka one. (which could really

Page Expiry in wicket 1.5

2012-02-28 Thread Stijn Maller
I think there is a bug with page expiry in wicket 1.5 but I wanted to quickly check on the list before making a JIRA issue. I have made a quickstart where the sessions expire after 1 minute. In the application is just a simple page with some state, 1 label that displays the state and 1 link that

Re: Forms marked as multipart do not work with ajax and IE9

2011-11-24 Thread Stijn Maller
Sorry to come back to this old issue, but we are struggling with it too and unfortunately the solutions mentioned do not seem to work for us. Our app already specified the doctype for html 4, and I also tried the html 5 doctype after reading your mails, but to no avail. Our page is being rendered

Re: Nested Forms and Multipart Fileupload Issue

2011-03-23 Thread Stijn Maller
Alexander, I'm facing the same issue and I'm convinced it is a bug. When a FileUploadField in a nested form causes an error, then: - The ErrorMessage is registered on the outer form (instead of the inner form) - The outer form's onError method is called (instead of that of the inner

Re: Application-wide date formate

2010-02-05 Thread Stijn Maller
Doesn't help with your date picker problem, but to set the application-wide format you can call this in your application's init method: ((ConverterLocator)getConverterLocator()).set(Date.class, new PatternDateConverter(DATE_PATTERN, true)) On 5 February 2010 09:25, Josh Kamau

Re: post a form to external site statelessly

2010-01-13 Thread Stijn Maller
Just use form action=http://your.other.site; instead of a wicket form component, good old html... :o) 2010/1/13 Afsaneh Abouie afsaneh.abo...@gmail.com Hello everyone, I want to post my form to an external and non wicket site and as I read in mail list, it can be done with ajax but my form

Re: post a form to external site statelessly

2010-01-13 Thread Stijn Maller
Or you could do that... :o) Depends on who has to treat the response from the external site. Your Server? Or Your client? 2010/1/13 Ernesto Reinaldo Barreiro reier...@gmail.com I haven´t tried it myself but can´t you use WebRequestCycle.get().setRequestTarget(new

Re: Help with Form submission and Ajax buttons

2010-01-13 Thread Stijn Maller
In the form's onSubmit() handler you can use findSubmittingButton() for your check instead. 2010/1/13 Sumit Raja sumitr...@gmail.com Hi, Beginner question with Form handling: I have a panel that accepts name value pairs in text fields.On the form there is an ajax button to add a value, an

Re: New photo album generator

2010-01-12 Thread Stijn Maller
Simply WOW! What's not to like? :o) Just out of interest, did you use WiQuery? 2010/1/12 Daniel Frisk dan...@jalbum.net Our fancy new Wicket/jQuery/Flash photo album generator, soon ready to be released. What do you think so far? http://jalbum.net/beta/camelot/ // Daniel Frisk jalbum.net

Re: New photo album generator

2010-01-12 Thread Stijn Maller
It's a cool feature, but would be much more useful if: 1) You could stop/start the scrolling (maybe even set the pace) 2) You could actually link through to those albums and see them 2010/1/12 Daniel Frisk dan...@jalbum.net Damn, you found one of the few remaining jsp-pages :-) The map

Re: Any servlet filter- like WebRequest interceptor or filter ?

2010-01-11 Thread Stijn Maller
InjectorHolder.getInjector().inject(this); 2010/1/11 smallufo small...@gmail.com Hi Do you mean override newRequestCycle() in WebApplication , and in the returning WebRequestCycle, override onBeginRequest() ? If so , how do I inject spring beans into Application ? The

Re: Wicket session not threadsafe?

2010-01-08 Thread Stijn Maller
Why not upgrade to 1.3.7? AFAIK there shouldn't be any differences in API or functionality between 1.3.4 and 1.3.7, so you might as well benefit from the other bugfixes as well. It's only if you should decide to upgrade to the 1.4 releases, that you will have to do some coding. (And even that

Re: Wicket and Spring - mocking a particular bean when Wicket is in development mode?

2010-01-08 Thread Stijn Maller
I assume you're actually talking about stubbing rather then mocking. Mock frameworks belong more in unit testing then in integration testing. If you are in fact talking about stubs then Ilja is right, just use a different applicationContext to inject the stubbed version of your validation service.

Re: Wicket and Spring - mocking a particular bean when Wicket is in development mode?

2010-01-08 Thread Stijn Maller
Hmmm, I seem to have inserted that Hi Liam in entirely wrong place! Hope it doesn't distract you from the content of the message though ;o) 2010/1/8 Stijn Maller stijn.mal...@gmail.com I assume you're actually talking about stubbing rather then mocking. Mock frameworks belong more in unit

Re: Handling NULL values in a DropDownChoice

2010-01-08 Thread Stijn Maller
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/AbstractSingleSelectChoice.html#setNullValid%28boolean%29 Kind regards, Stijn 2010/1/8 Norman Elton normel...@gmail.com I'm using a DropDownChoice to select one of a number of items loaded from my DAO:

Re: Detecting an external change to the ModelObject of a Form

2010-01-05 Thread Stijn Maller
Thanks Igor, But I would really like to avoid the extra methodcall everywhere I change the modelobject, especially if it means exposing the form outside of the Panel. I'm looking more for a solution that allows the panel/form to detect whenever someone else has changed its model. This way the

Re: Detecting an external change to the ModelObject of a Form

2010-01-05 Thread Stijn Maller
Thanks Martin, You're right, a Model that calls ModelObjectChangedListener is basically what I am looking for, but I don't think it exists. I'll write one myself, but I just wanted to check first to make sure I wasn't reinventing the wheel or missing something obvious. Kind regards, Stijn

Re: Detecting an external change to the ModelObject of a Form

2010-01-05 Thread Stijn Maller
regards Janning On Tuesday 05 January 2010 11:03:59 Stijn Maller wrote: Thanks Martin, You're right, a Model that calls ModelObjectChangedListener is basically what I am looking for, but I don't think it exists. I'll write one myself, but I just wanted to check first to make sure I wasn't

Re: Detecting an external change to the ModelObject of a Form

2010-01-05 Thread Stijn Maller
Stijn Maller stijn.mal...@gmail.com Hi Janning, That's definately better then exposing the form, but it still makes me have to insert an extra methodcall everywhere I update the modelobject. Here's what I implemented a couple of seconds ago and it seems to be doing what I wanted just fine

Detecting an external change to the ModelObject of a Form

2010-01-04 Thread Stijn Maller
I am currently facing an issue for which I would appreciate the input of more experienced wicket developers. As they are sparse in the company I work for I turn to this mailinglist. I have in my implementation a classic master-detail page. The master part is a RefreshingView, the detail view is a

Re: Ajax Redirect with Busy Indicator

2009-09-15 Thread Stijn Maller
I'm looking to make an improvement to the generic busy indicator. I believe the showBusysign() script should also be triggered by the onchange method of choice components (non ajax) with wantOnSelectionChangedNotifications set to true. Any idea's how to tackle this?

Re: Converter Problem

2009-07-08 Thread Stijn Maller
Looking at your datepattern you should be using LocalDate instead of DateTime, as you don't have a time or a timezone anyway. IMVHO this should solve all your problems. -- View this message in context: http://www.nabble.com/Converter-Problem-tp24378227p24391721.html Sent from the Wicket - User