Re[2]: [PEAR] QF: exportValue() and silly error possibly ....
| From: | Massimiliano Bariola | Date: | Tue, 16 Dec 2003 13:49:06 +0000 |
| Subject: | Re[2]: [PEAR] QF: exportValue() and silly error possibly .... | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9568@lists.php.net to get a copy of this message | ||
Hello Alexey,
Tuesday, December 16, 2003, 9:24:13 AM, you wrote:
AB> Hi!
AB> Massimiliano Bariola wrote:
>> In the first of them, I declare and add to form a radiobutton group
>> as follows, in its buildForm method
>>
>>
>> but I get back a HTML_QuickForm_Error telling me that the element
>> does not exist.
AB> And it does not exist indeed. You have a group with empty (in fact it's not
AB> empty, but autogenerated) name that contains some other elements. Try:
AB> $radioGroup[] = &HTML_QuickForm::createElement('radio', null, null,
AB> 'Attiva',
AB> 'Attiva');
AB> $radioGroup[] = &HTML_QuickForm::createElement('radio', null, null,
AB> 'Disattiva',
AB> 'Disattiva');
$this->>addGroup($radioGroup, 'stato', 'Stato della Licita',
' ');
ok, this works.
but -- isn't the fact that exportValues() works correctly and the
exportValue() doesn't, somewhat misleading?
the behavior of both methods should be consistent in both success and
failure, with difference being only in the fact that exportValues()
iterates over all the Controller'selements.
IMHO, of course.
--
Best regards,
Ing. Massimiliano Bariola Cell: ++39 329 3570098
REDLINK Italia S.a.s
http://www.redlinkitalia.it mailto:m.bariola@redlinkitalia.it
PGP Key:
http://www.redlinkitalia.it/PGP/MB_PGPKEY.txt