Results 1 to 4 of 4

Thread: Validator does not support & CGLIB

  1. #1
    Join Date
    Dec 2004
    Location
    Minneapolis, MN
    Posts
    20

    Default Validator does not support & CGLIB

    Ran into a problem when upgrading hibernate2 to 3 and wondering if anyone else has seen...searching forums didn't yield anything.

    Have a form, Validator and Command object. Command object is a hibernate pojo. When the form is called and submitted to create and save a _new_ command object everything works fine. However, when the form is submitted to update and existing object:

    WorkflowFormValidator does not support class com.udcpension.data.Workflow$$EnhancerByCGLIB$$19e 6cb7c

    The formBackingObject method in the Controller determines whether or not to bind a new command object or use an existing to the form.

    Why is the Validator complaining? Any thoughts/suggestions?

    Thank you people

  2. #2
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    6

    Default

    The validator shouldn't complain, yet I've never encountered this problem.

    I'm doing things a bit differently: Use a real pojo as form/command object and copy values to/from the hibernate pojos by hand.

  3. #3
    Join Date
    Dec 2004
    Location
    Minneapolis, MN
    Posts
    20

  4. #4
    Join Date
    Jul 2005
    Posts
    246

    Default

    Quote Originally Posted by phuber
    The validator shouldn't complain, yet I've never encountered this problem.

    I'm doing things a bit differently: Use a real pojo as form/command object and copy values to/from the hibernate pojos by hand.
    If you use Commons Beanutils you can cut down on the manual copying of fields as well.

    Bob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •