wicket 1.3.6/1.3.7 PagingNavigation broken

2009-08-31 Thread james o'brien
Paging navigation produces links (page 2) with start greater than end, produces the wrong number of pages and is generally borked. Has anyone else noticed this?--jim

label fails serializable check when i override model().getObject (wicket 1.3.6)

2009-08-27 Thread james o'brien
I'm trying to change the text of label based on whether a flag is set for graph or not graph. graphLink.add(new Label("graphLinkLabel", new Model() { @Override public Object getObject() { return isGraph ? "List" : "Graph"; } }));

DateTextField Runtime Exception on loading textfield that doesn't match format

2009-05-14 Thread james o'brien
I have the following: DateTextField when = new DateTextField("when", newPropertyModel(bloodPressure, "when"), "M/d/"); when.setOutputMarkupId(true); when.add(new DatePicker()); When the form loads with pre-existing date of this format: "5/1/09", I get the following error: java.lang.Illeg

Validator class cast exception wicket 1.3.5

2009-05-13 Thread James O'Brien
Hello,I have a converter which I can verify is being called, but when the validator is being called it is not being called on the String value but the object which causes a ClassCastException. Here is my converter: @Override protected IConverterLocator newConverterLocator() { ConverterLocator l

Re: Validator class cast exception wicket 1.3.5

2009-05-13 Thread james o'brien
Hi Igor, I'm a little confused. I attached a StringValidator - shouldn't that work on a String? Also I assumed Validators work on the values of form fields after converted to String?Thanks, --jim On Wed, May 13, 2009 at 10:00 AM, james o'brien wrote: > Hello,I have a con

Validator class cast exception wicket 1.3.5

2009-05-13 Thread james o'brien
Hello,I have a converter which I can verify is being called, but when the validator is being called it is not being called on the String value but the object which causes a ClassCastException. Here is my converter: @Override protected IConverterLocator newConverterLocator() { ConverterLocator l

radiochoice and propertymodel ignoring converter (wicket 1.3.5)

2009-05-06 Thread james o'brien
I have a custom converter registered for Boolean.class that converts "yes" to Boolean(true) and "no" to Boolean(false). When the RadioChoice loads the converter is never called. private static final List IRREGULAR_HEARTBEAT = Arrays.asList(newString[] { "yes", "no" }); RadioChoice irregular =