Does any one know how to solve that?
I read over a mailing list, but did not find any suitable solution. So i am
kinda stucked here.
There is my actionView:
**
$form = new Zend_Dojo_Form ( );
$form-setMethod ( 'post' )-setAction ( process )-setName (
'editNews'
);
$form-setDecorators ( array ('FormElements', array
('TabContainer', array
('id' = 'tabContainer', 'style' = 'width: 600px; height: 500px;',
'dijitParams' = array ('tabPosition' = 'top' ) ) ), 'DijitForm' ) );
$newsData = new Zend_Dojo_Form_SubForm ( );
$newsData-setAttribs ( array ('name' = 'News Editing',
'legend' =
'Personal Data', 'style' = 'width:300px;float:left' ) )-setDecorators (
array ('FormElements', array ('HtmlTag', array ('tag' = 'dl' ) ),
'ContentPane' ) );
$newsData-addElement ( 'ValidationTextBox', 'Posted by', array
('label'
= 'First Name:', 'lowercase' = 'true', 'maxlength' = 20, 'regExp' =
'\w{2,}', 'required' = true, 'invalidMessage' = 'First Name should have
been longer then 1 character??', 'filters' = array ('StringTrim',
'StringToLower' ), 'validators' = array ('NotEmpty', array ('StringLength',
true, array (2, 20 ) ), array ('Regex', true, array ('/\w+/i' ) ) ) )
)-addElement ( 'editor', 'content', array ('plugins' = array ('undo', '|',
'bold', 'italic' ), 'editActionInterval' = 2, 'focusOnLoad' = true,
'height' = '250px', 'inheritWidth' = true ) )-addElement (
'validationTextBox', 'password', array ('type' = 'password', 'label' =
'Password', 'lowercase' = 'true', 'maxlength' = 20, 'regExp' = '\w{6,}',
'required' = true, 'invalidMessage' = 'Password must be longer then 6
characters.', 'filters' = array ('StringTrim', 'StringToLower' ),
'validators' = array ('NotEmpty', array ('StringLength', true, array (6, 20
) ), array ('Regex', true, array ('/\w+/i' ) ) ) ) )-addElement (
'SubmitButton', 'submit', array ('label' = 'Submit!', 'style' =
'clear:both' ) );
$form = $form-addSubForm ( $newsData, 'personalData' );
$this-view-newsEditForm = $form;
**
after processing data to proccessAction() i am getting this:
array(1) {
[personalData] = array(3) {
[Postedby] = string(9) asdasdasd
[content] = string(0)
[password] = string(9) asdasdasd
}
}
As you can see, content from Editor element is not in $_POST
Thank you,
V
--
View this message in context:
http://www.nabble.com/Zend-dojo-Editor-does-not-pass-value-tp20860862p20860862.html
Sent from the Zend Framework mailing list archive at Nabble.com.