[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Found the problem with ValidateRM & Template


> -----Original Message-----
> From: RA Jones [mailto:suppressed 
> Sent: Tuesday, April 12, 2005 9:33 PM
> To: suppressed
> Subject: [cgiapp] Found the problem with ValidateRM & Template
> 
> [...]
>
> The reason for this is in the nature of $return_page. For 
> H::T-generated 
> templates it is scalar data (ie the complete HTML return 
> page), but for 
> Template-generated templates it prints out as 
> 'SCALAR(0x1bfa330)'. As it 
> says in the CGI::Application::Plugin::TT docs for tt_process() 'The 
> return value will be a scalar reference to the output of the 
> template.'
>
> [...]
>
> Has no-one 
> else found this before?

This is not a problem, since a CGI::Application run mode can return
either a text or a text reference (as a matter of fact CAP::TT and
CAP::ValidateRM work together seamlessly).

Your problem must reside somewhere else, and it's probably not related
at all with CAP::ValidateRM: for debugging purposes, don't use
CAP::ValidateRM and just check (by calling it directly) if your form
display run mode correclty generates its output with CAP::TT.
The problem must be there, since if this run mode works (with CAP::TT)
when called directly, it must also work when invoked by
CAP::ValidateRM::check_rm()

(Check the way you are referencing your TT variables into your TT
template, and check that you are just returning from and not directly
printing anything from inside your C::A run modes).

Ciao,
Emanuele.


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.