-- duyhung <[EMAIL PROTECTED]> wrote
(on Monday, 21 July 2008, 12:49 AM -0700):
> I've setup everything again and it didn't come up the error:
> Permission denied to get property XULElement.accessKey
> XPCSafeJSObjectWrapper.cpp
> Line 445
> anymore. So i think i installed incorrect version before. But still, the CSS
> theme's still in comment so no css loading. I had a look at
> Dojo/Container.php on line 897, I changed it so it wouldn't put the @import
> thingy in comment, but still no luck, no css loading.
> I did addPrefixPath('Zend_Dojo_Form', 'Zend/Dojo/Form/') and created an
> username validation text box for my form:
> Code:
> $username = $this->addElement('validationTextBox', 'name', array(
> 'label' => 'Username:',
> 'lowercase' => 'true',
> 'maxlength' => 20,
> 'regExp' => '\w{3,}',
> 'required' => true,
> 'invalidMessage' => 'Username is not valid.',
> 'filters' => array(
> 'StringTrim',
> 'StringToLower',
> ),
> 'validators' => array(
> 'NotEmpty',
> array('StringLength', true, array(3, 20)),
> array('Regex', true, array('/\w+/i')),
> ),
> ));
>
> and it turned out the following error:
> Fatal error: Call to undefined method
> Zend_Dojo_Form_Element_ValidationTextBox::getFullyQualifiedName() in
> C:\Program Files\EasyPHP
> 2.0b1\www\Helpdesk\library\Zend\Dojo\Form\Decorator\DijitElement.php on line
> 181
>
> I am totally lost now. Any ideas?
Yes; you're using old code.
Please update from current svn and use Zend_Dojo from
standard/trunk/library. It's clear from the above that you were using an
old incubator version that was not linked against the Zend_Form changes
made in trunk (which included the getFullyQualifiedName() method in the
base Zend_Form_Element class).
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/