public function render(HTML_QuickForm2_Renderer $renderer)
    {
        foreach ($this->rules as $rule) {
            if ($rule[1] & HTML_QuickForm2_Rule::RUNAT_CLIENT) {
                $renderer->getJavascriptBuilder()->addRule($rule[0]);
            }
        }
        $renderer->startContainer($this);
        foreach ($this as $element) {
            $element->render($renderer);
        }
        $renderer->finishContainer($this);
        return $renderer;
    }