RE: How to fail validation if ListMultipleChoice is empty

2011-05-02 Thread Coleman, Chris
ValidationError().addMessageKey(error.noSetSpecified)); } } }); -Clint On Mon, May 2, 2011 at 12:27 AM, Coleman, Chris chris.cole...@thalesgroup.com.au wrote: According to the doco the default form processing behavior is executed for AjaxButton and AjaxSubmitButton (in fact

How to fail validation if ListMultipleChoice is empty

2011-05-01 Thread Coleman, Chris
We have an app that allows people to add elements to a ListMultipleChoice by pressing on a button. We want the form to fail validation if the ListMultipleChoice contains no elements. I've tried this: targettedSetsList.add(new IValidator() { public void validate(IValidatable

RE: How to fail validation if ListMultipleChoice is empty

2011-05-01 Thread Coleman, Chris
a different approach. -Clint On Sun, May 1, 2011 at 8:15 PM, Coleman, Chris chris.cole...@thalesgroup.com.au wrote: We have an app that allows people to add elements to a ListMultipleChoice by pressing on a button. We want the form to fail validation if the ListMultipleChoice contains

RE: How to fail validation if ListMultipleChoice is empty

2011-05-01 Thread Coleman, Chris
getChoices() instead of getConvertedInput() in the validator? Choices represent the possible selection options, the converted input is the value of the selected choices. -Clint On Sun, May 1, 2011 at 9:25 PM, Coleman, Chris chris.cole...@thalesgroup.com.au wrote: Yes, it's all via AJAX. In the last

Best way to periodically refresh an inmethod DataGrid?

2011-03-24 Thread Coleman, Chris
We've got a wicket app with an inmethod DataGrid and it displays fine and we use an AjaxSelfUpdatingTimerBehaviour to update the grid every 5 seconds. That part works fine - as data changes in the database the changes are reflected in the table in the browser However, if we select an item

Calendar bug on IE8 (also occurred on IE6 7 IE7)

2011-03-24 Thread Coleman, Chris
IE seems to have a problem when executing the following line when bringing up a form within a modal dialog that contains a DateTimeField. Does anyone know why this line would cause such an error and if there is a simple work around. Apparently it works if the Form wraps the ModalWindow but not

RE: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-10 Thread Coleman, Chris
+1 for the approach you mention where onInitialize is called from the framework and not as a surprise side effect of calling page#add(). From: Maarten Billemont [mailto:lhun...@gmail.com] On 10 Mar 2011, at 00:42, Igor Vaynberg wrote: i am +0 for refactoring the code so that oninitialize()

Wicket thinks setOutputMarkupId property is not set to true

2011-03-10 Thread Coleman, Chris
I get this error even though I set output markup ID to true on the component that is being replaced (and the one that is replacing it): Root cause: java.lang.IllegalArgumentException: cannot update component that does not have setOutputMarkupId property set to true. Component:

RE: Wicket thinks setOutputMarkupId property is not set to true

2011-03-10 Thread Coleman, Chris
I should add that this is on 1.5-rc2. Previously on 1.4.16 the exact same code (except for package renames) worked fine. Chris -Original Message- From: Coleman, Chris [mailto:chris.cole...@thalesgroup.com.au] Sent: Friday, 11 March 2011 4:02 PM To: users@wicket.apache.org Subject

RE: Wicket thinks setOutputMarkupId property is not set to true

2011-03-10 Thread Coleman, Chris
)? Regards, Bertrand On 11/03/2011 12:04 AM, Coleman, Chris wrote: I should add that this is on 1.5-rc2. Previously on 1.4.16 the exact same code (except for package renames) worked fine. Chris -Original Message- From: Coleman, Chris [mailto:chris.cole...@thalesgroup.com.au] Sent

RE: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-09 Thread Coleman, Chris
yep, calling overridable methods from constructors is bad - Yes I agree... you just made the case for making page.oninitialize() final... But isn't that the very thing that the whole overridable onInitialize method was intended to avoid as it gets called after construction by the framework.

Models doco page typo?

2011-03-08 Thread Coleman, Chris
At the bottom of this page: https://cwiki.apache.org/WICKET/working-with-wicket-models.html it says that the IModel interface was simplified in Wicket 2.0... should that really be Wicket 1.2? Never heard of Wicket 2 and I can see the 'new' style interface in Javadocs for 1.5.

CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-08 Thread Coleman, Chris
I noticed that CompoundPropertyModel is deprecated in 1.5 but I can't find anything relating to this on the Migration to Wicket 1.5 page. What is meant to be used instead of this class? DISCLAIMER:--- This e-mail