[html-formfu] custom ExtJS element
Alexander Hartmaier
alexander.hartmaier at t-systems.at
Mon Jun 22 16:15:57 GMT 2009
I'm trying to create an Element::ItemSelector
(http://extjs.com/deploy/ext-3.0-rc2/examples/multiselect/multiselect-demo.html) in my Catalyst apps' namespace for many-to-many rels but keep getting the error:
"Can't locate object method "new" via package
"NAC::Web::NAC::HTML::FormFu::ExtJS::Element::ItemSelector"
at /usr/local/share/perl/5.8.8/HTML/FormFu/ObjectUtil.pm line 167.
at /usr/local/share/perl/5.8.8/HTML/FormFu.pm line 151"
At the moment the class is just a copy of ExtJS::Element::Text:
package NAC::Web::NAC::HTML::FormFu::ExtJS::Element::ItemSelector;
use base "HTML::FormFu::ExtJS::Element::_Field";
use strict;
use warnings;
use utf8;
sub render {
my $class = shift;
my $self = shift;
my $super = $class->SUPER::render($self);
return { %{$super}, xtype => "itemselector" };
}
1;
HTML::FormFu::ExtJS::Element::_Field doesn't have a base class and also
has no new contructor.
The HTML::FormFu::Element classes all do have a new constructor, why the
ExtJS not?
What are I'm missing?
--
BR Alex
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
More information about the HTML-FormFu
mailing list