Whenever I try and capture validation events for a particular component in
beaneditor / beaneditform, I fail.  I can catch the whole form, but not the
individual components, anyone know why?

I've got a form with a beaneditor in it, and I've added a field of my own,
'sponsor', but it also contains a bean with a number of fields, including
"backgroundUrl".  I couldn't find many specifics about the component ids
used by beaneditor fields, but the HTML implies that backgroundUrl gets a
/client id/ of 'background url' at least.  I made a simple event handler
method that always throws a ValidationException just for testing.

The following methods trigger a validation error:

   - @OnEvent("validate") validate(EventContext)
   - @OnEvent(value="validate",component="sponsor") validate(EventContext)
   - onValidateForm(EventContext)
   - onValidateFromSponsor(EventContext)

The following don't:

   - @OnEvent(value="validate",component="backgroundUrl")
   validate(EventContext)
   - onValidateFromBackgroundUrl(EventContext)
   - onValidateFromBackgroundurl(EventContext)

In searching the mailing list, I'm finding other people having trouble
validating, and other people who don't know what component id they're
getting in a beaneditform, but no-one with answers.  ;)

So ... what am I missing?  I'm sure it's simple, but I'm struggling with it
nonetheless.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/

Reply via email to