Re: QuickForm_Controller: Trouble with Tabbed Pages
| From: | Alexey Borzov | Date: | Thu, 11 Dec 2003 20:29:48 +0000 |
| Subject: | Re: QuickForm_Controller: Trouble with Tabbed Pages | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9481@lists.php.net to get a copy of this message | ||
Hi!
Massimiliano Bariola wrote:
DetailPage and FileList's buildForm() methods do their usual job, with
the relevant part (tabs) being added as follows:
$tabs[]=&$this->createElement('submit', $this->getButtonName('detailPage'), 'Detail of Record', array('disabled' => 'disabled', 'class' => 'flatRed'));
$tabs[]=&$this->createElement('submit', $this->getButtonName('fileList'), 'List of Files', array('class' => 'flatRed'));
$this->addGroup($tabs, 'tabs', null, ' ');
The relevant addGroup() call in tabbed.php example reads:
$this->addGroup($tabs, 'tabs', null, ' ', false);
The question why this difference affects the behaviour so much is left as an exercise for the reader.
after $controller->run() the first page is correctly displayed and the page behaves correctly; the tab buttons are available on-screen, but clicking on them effects nothing. Same page is reloaded. Looking at tabbed.php example seems not to offer solutions . Anyone can enlighten me?