Re: HTML_QuickForm_Controller and setDefaults

From: Date: Tue, 12 Sep 2006 19:11:13 +0000
Subject: Re: HTML_QuickForm_Controller and setDefaults
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25111@lists.php.net to get a copy of this message
Justin Patrin wrote: > Perhaps setDefaults() isn't getting the right data? > > Perhaps setDefaults() is being called multiple times, one without the > right data? > > Hav eyou looked at the HTML source of the page to make sure that the > right values are/are not set? (i.e. it may be your browser not showing > the defaults) The funnny thing is that if I visit the Page where the checkbox or select box resides it works without any problems, the default value is shown (either checked or not/default value selected). But when I do not visit it (I want to have a save button on each Page) the values are not available in my process class. On the other hand, the textfield/hidden fields on the pages that I didn't visit when saving are available. So somehow it feels that the checkbox and select fields aren't set before loading the actual Page while the text fields are, can this be? Kim

« previous php.pear.general (#25111) next »