Results 1 to 4 of 4

Thread: How to remove an error from BindException

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Toronto, Canada
    Posts
    34

    Default How to remove an error from BindException

    Hello there,
    I am having a problem that's driving nuts!!!

    I have a form that gets submited with a few parameters. Some of this parameter I am not interested in some circunstances and in others I do care about them. When I am not interested in them the controller reports a binding error on this particular numeric value which is been binded to an empty string. This is expected. The problem is that this errors is preventing my form from continuing to the next step. I know what the error is and to what parameter it is associated but I have been uncapable to remove this error from the BindException. It seems like once the error is in, there is no way to get rid of it other that creating a new instance.
    Have any one run into a similar situation before?? If so, how did you go about it?

    Thanks in advance.

    Erick
    Erick Dovale

  2. #2
    Join Date
    Oct 2004
    Location
    Herndon, VA, US
    Posts
    648

    Default

    Can't you not do the validation to begin with when it's not necessary? I don't think any of the built-in validation is mandatory.
    --Jing Xue

  3. #3
    Join Date
    Jan 2005
    Location
    Toronto, Canada
    Posts
    34

    Default

    I do need to validate the page. That is the problem. Is there any way to deactivate it and still have the validator's validate method call??
    Thanks
    Erick Dovale

  4. #4
    Join Date
    Mar 2005
    Location
    San Francisco, CA
    Posts
    114

    Default

    You could move the logic to validate that field into the onBindAndValidate method and only perform the validation (manually) only when appropriate.

    Or you could improve your validation logic handle the more complex logic for when to validate that field using validWhen.

Similar Threads

  1. How to remove View's Title
    By delahoz in forum Swing
    Replies: 4
    Last Post: Jul 19th, 2005, 09:08 AM
  2. Replies: 1
    Last Post: Apr 27th, 2005, 09:17 AM
  3. BindException and AbstractXsltView
    By derek in forum Web
    Replies: 0
    Last Post: Apr 8th, 2005, 04:32 AM
  4. HttpInvokers and serialization of BindException
    By neogenix in forum Remoting
    Replies: 1
    Last Post: Feb 15th, 2005, 08:17 AM
  5. Replies: 0
    Last Post: Oct 26th, 2004, 09:54 AM

Posting Permissions

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