Re: [cgiapp] ValidateRM and dynamic content

2008-02-29 Thread Todd W


From: John Spooner [EMAIL PROTECTED]


I am using HTML::Template and CGI::Application::Plugin::ValidateRM.
Page content is generated dynamically which works fine until a
validation error occurs.  Unfortunately err_TMPL_VAR field_name is
not valid H::T.

In perusing the C::A email archives I see that the same issue has been
brought up before (almost 3 years ago, but at least I know others have
suffered the same fate).  Unfortunately there was no documented
resolution.  Does anyone have any advice?


I dont have anything for you other than you have reached the designed limits 
of H::T.


My advice is to switch to TT (pretty easy, esp since you are already using 
CGI::App).


Todd W.


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] ValidateRM and dynamic content

2008-02-29 Thread Joshua Miller
On Fri, Feb 29, 2008 at 7:44 AM, Todd W [EMAIL PROTECTED] wrote:


 From: John Spooner [EMAIL PROTECTED]

  I am using HTML::Template and CGI::Application::Plugin::ValidateRM.
  Page content is generated dynamically which works fine until a
  validation error occurs.  Unfortunately err_TMPL_VAR field_name is
  not valid H::T.
 
  In perusing the C::A email archives I see that the same issue has been
  brought up before (almost 3 years ago, but at least I know others have
  suffered the same fate).  Unfortunately there was no documented
  resolution.  Does anyone have any advice?

 I dont have anything for you other than you have reached the designed
 limits
 of H::T.

 My advice is to switch to TT (pretty easy, esp since you are already using
 CGI::App).



I'm currious... how would that work under TT? Wouldn't the dynamic field
names cause the same issues for CAP:ValidateRM?

#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] ValidateRM and dynamic content

2008-02-29 Thread Mark Fuller
  I am using HTML::Template and CGI::Application::Plugin::ValidateRM.
  Page content is generated dynamically which works fine until a
  validation error occurs.  Unfortunately err_TMPL_VAR field_name is
  not valid H::T.

If your form fieldnames are dynamic I can think of a couple of options.

1. Use H::T's filter feature to preprocess the template and make
some dynamic changes to it.

2. Read the template yourself, dynamically add to it, and use
load_tmpl's ability to load from a scalar.

3. Dynamically create an included file before loading the template.

4. Don't use dynamic form fieldnames. If you need to distinguish
between how a form is used, set a hidden field value to essentially
categorize how this form is different than another form.

Maybe I'm missing something about why you're using dynamic field names.

Mark

#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####