Re: validation and #updateModel

2010-07-21 Thread Ray Weidner
unusable except on a dedicated form (i.e. a form used only for uploading files). In that case, I'm better off manually validating upload size. On Tue, Jul 20, 2010 at 5:13 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Jul 20, 2010 at 1:22 PM, Ray Weidner ray.weidner.develo

Re: validation and #updateModel

2010-07-21 Thread Ray Weidner
separate form. Is this supposed to be standard practice? On Wed, Jul 21, 2010 at 2:25 AM, Ray Weidner ray.weidner.develo...@gmail.com wrote: I haven't done that before, so I'll have to figure out how to do it. Thanks for the adviceI'll look into doing that, because I have seen

validation and #updateModel

2010-07-20 Thread Ray Weidner
Hi all, I have what I would think to be a fairly common usecase that I'd like to solve. I have a form with a model that is a LoadableDetachableModel wrapped in a CompoundPropertyModel. I wouldn't expect that to be unusual. However, when a form submit is failing validation for , all changes to

Re: validation and #updateModel

2010-07-20 Thread Ray Weidner
at 2:59 AM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Jul 20, 2010 at 1:55 AM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Hi all, I have what I would think to be a fairly common usecase that I'd like to solve. I have a form with a model

Re: validation and #updateModel

2010-07-20 Thread Ray Weidner
Back to the original question, when you say all changes to the form are lost - do you mean that the form rerenders with absolutely no values filled out? Only the fields that failed conversion or validation should be blank. See, that throws me off, too. Yes, the supposedly valid fields are

Re: extending AbstractFormValidator as a validation adapter

2010-07-01 Thread Ray Weidner
...@wickettraining.com wrote: If you need to validate after the data has been pushed to the model, then just validate in the onSubmit and call error on the individual components for the form. Leave the form validator out of it. On Tue, Jun 29, 2010 at 11:03 PM, Ray Weidner ray.weidner.develo

Re: extending AbstractFormValidator as a validation adapter

2010-06-29 Thread Ray Weidner
Thanks, Igor, I now see the methods you are talking about, and your explanation makes perfect sense. On Tue, Jun 29, 2010 at 1:16 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Mon, Jun 28, 2010 at 9:27 PM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Hi all, The application

Re: extending AbstractFormValidator as a validation adapter

2010-06-29 Thread Ray Weidner
(fieldName)) { Component field = theForm.get (fieldName); if (field != null) { field.error (fieldErrorMessage); } else { theForm.error (fieldErrorMessage); } } } return false; } }* On Tue, Jun 29, 2010 at 10:29 AM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Thanks, Igor, I now see the methods

extending AbstractFormValidator as a validation adapter

2010-06-28 Thread Ray Weidner
my actual error strings, so how do I skip around the resource logic to just set the error message? - What should I do with my generalErrorMessages, which aren't tied to any specific field? Any help would be appreciated, thanks! Ray Weidner

Re: passing a map into PageParameters

2010-06-28 Thread Ray Weidner
I haven't had any success storing anything other than Strings in PageParameters objects. It makes sense, since these are supposed to represent bookmarkable (i.e. GET) parameters. If you're hoping to throw arbitrary Maps into a PageParameters, you're going to be disappointed. But if you have an

Re: Making rows of DefaultDataTable into links

2010-06-17 Thread Ray Weidner
, Jun 16, 2010 at 1:17 AM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Hi all, Forgive my ignorance if this is too obvious. I'm using DefaultDataTable to display search results, and that's working fine. What I'd like to do is make each row of the table a hyperlink to the view

Making rows of DefaultDataTable into links

2010-06-16 Thread Ray Weidner
Hi all, Forgive my ignorance if this is too obvious. I'm using DefaultDataTable to display search results, and that's working fine. What I'd like to do is make each row of the table a hyperlink to the view/edit page of the record in question. How can I do this? I was able to add links to a

back button and page expiration

2010-06-15 Thread Ray Weidner
as expired, while reloading others. So how can I do this? And why are stale pages now showing up as expired in the first place, when previously, reloading a stale page worked fine? Ray Weidner

Re: Can I develop without recompiling/restarting after every change?

2010-05-30 Thread Ray Weidner
Nobody seems to have mentioned it, but I have been developing with Eclipse's Dynamic Web Projects, and it has greatly shortened my development cycle from when I was loading the project into Tomcat through the manager web interface. Basically, a DWP is able to run the server itself, and it

statefulness, and multiple tabs

2010-05-03 Thread Ray Weidner
I have a question about how to approach a certain kind of problem. Let me first explain what I'm doing, and then what the problem is with that. For the web app I'm creating, a user can, using a web form, edit data which is backed by a model that fetches the persistent object being modified.

Date components

2010-04-19 Thread Ray Weidner
Hi All, Does anyone have any good suggestions for date/time entry components? Does Wicket offer a standard solution for this common case? Thanks, Ray Weidner

Re: Date components

2010-04-19 Thread Ray Weidner
file (the key of the component). And date defined in java like : private Date date = new Date(); 2010/4/19 Ray Weidner ray.weidner.wic...@gmail.com Hi All, Does anyone have any good suggestions for date/time entry components? Does Wicket offer a standard solution for this common case

problem populating ListMultipleChoice selection model

2010-04-19 Thread Ray Weidner
advice is much appreciated. Thanks, Ray Weidner

Re: problem populating ListMultipleChoice selection model

2010-04-19 Thread Ray Weidner
ben rhouma benrhouma.m...@gmail.comwrote: Try to change the type of selectedParties from set to List selectedParties = new ArrayList(); 2010/4/19 Ray Weidner ray.weidner.wic...@gmail.com Hi All, I'm trying to do something pretty simple: create a choice list with multi-select, which I

Trying to do something complicated with ListMultipleChoice model

2010-04-10 Thread Ray Weidner
Hi, I'm pretty new to Wicket and trying to get a better understanding of how models work. That's probably why this is such a tricky problem for me. On my site, users are submitting a form for a new Issue to be created. One of the fields of this Issue is affectedParties; in the data model, this

Re: Trying to do something complicated with ListMultipleChoice model

2010-04-10 Thread Ray Weidner
you're returning in #getObject(). Either you should return a copy of your collection in #getObject() or just do nothing in #setObject(). Your current call to #clear() is effectively clearing the new selection (i.e. affectedParties and arg0 are identical). Regards Sven Ray Weidner wrote