Zend Framework

Bug when using ZendX_JQuery_Form_Decorator_DialogContainer

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.1
  • Component/s: ZendX_JQuery
  • Labels:
    None

Description

1. When using the ZendX_JQuery_Form_Decorator_DialogContainer, the content is not rendered. It seems that this is because the dialogContainer method has different syntax in comparison to accordionContainer and tabContainer.

{{public function dialogContainer($id, $content , $params=array(), $attribs=array())}}

public function accordionContainer($id=null, array $params=array(), array $attribs=array())
public function tabContainer($id=null, $params=array(), $attribs=array())


The dialogContainer syntax does not correspond to what is used inside the ZendX_JQuery_Form_Decorator_UiWidgetContainer -> render method when rendering.



2. In the other hand, ZendX_JQuery_Form_Decorator_UiWidgetContainer -> render contains the following instruction :

 
      $attribs     = array_merge($this->getAttribs(), $this->getOptions());

That causes the DIV container of the dialog to inherit of all attributes of the element (form for example)

So you can see results like that :

<div id="dialog-container" method="post" action="..."> 
...
</div>

Activity

Hide
Benjamin Eberlei added a comment -

This is very weird.. I am going to look into it.

Show
Benjamin Eberlei added a comment - This is very weird.. I am going to look into it.
Hide
Benjamin Eberlei added a comment -

Both issues are fixed now in trunk, and merged back into 1.10 release branch.

Additionally i added a section to the manual about Dialog Container rendering in the Zend Form context.

Show
Benjamin Eberlei added a comment - Both issues are fixed now in trunk, and merged back into 1.10 release branch. Additionally i added a section to the manual about Dialog Container rendering in the Zend Form context.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: