Hello

I want to display a list as a component into an other template.
The code looks something like this:

package DomMApp;
use strict;
use Maypole::Application qw(Component);
use Class::DBI::Plugin::RetrieveAll;use Class::DBI::Loader::Relationship;
......
sub list_comp :Exported {
my ($class, $r) = @_;
       $r->template("list");
      #$r->objects([ $r->retrieve_all ]);
  };

When loading I get the following error.
[Thu Aug 10 12:07:16 2006] [error] Can't locate object method "set_sql" 
via package "DomMApp" at 
/usr/share/perl5/Class/DBI/Plugin/RetrieveAll.pm line 63.\nBEGIN 
failed--compilation aborted at /etc/apache//DomMApp.pm line 
13.\nCompilation failed in require at (eval 7) line 3.\n
[Thu Aug 10 12:07:16 2006] [error] Undefined subroutine 
&DomMApp::handler called.\n

no matter if I use   $r->template("list"); or  $r->objects([ 
$r->retrieve_all ]); in the list_comp sub.
What am I missing?

Thx for the help.

Martin



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to