The solution has been found.

My test case worked because I didn't make the same mistake I made in my Application.

In my application I have one or two runmodes that handle two actions. Usually a case where I have two buttons on a single form for two related actions on the same data. What I had done was to have two if() blocks for the execution of the two conditions.

Thus the runmode which is doing the validating gets nothing returned from it when it tries to build the response because it does not have the button parameters from the original CGI.pm query.

For CGI::Application::ValidateRM to work the runmode being validated must return valid data to the validating method. Internally the ValidateRM module actually runs the method it is being used to validate. It does this to get the messages into the right place, basically. Then it passes the resultant HTML through HTML::FillInForm with the query parameters it used in the validation process, to get the original values back in the form. If it can't do part one of the process then, well, you get nothing!

Special thank to William McKee on the dfv mailing list for his insightful comment that led me to the solution.

jdtoronto


In reply to Re: CGI::Application::ValidateRM detects error, but doesn't act on it by jdtoronto
in thread CGI::Application::ValidateRM detects error, but doesn;t act on it by jdtoronto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.