RE: [PEAR] Template_flexy + QuickForm problem: hidden formfieldgets overwritten with bad value
| From: | Andy Crain | Date: | Tue, 05 Aug 2003 21:53:15 +0000 |
| Subject: | RE: [PEAR] Template_flexy + QuickForm problem: hidden formfieldgets overwritten with bad value | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7030@lists.php.net to get a copy of this message | ||
Alan, Ron and Bertrand,
Thanks for the help. Glad to hear about the QF renderer replacing the
implicit integration of QF. I was hoping for an easy way to intervene
and add interact with QF from within my objects without having to alter
the base QuickForm or Flexy classes, and as best I could tell (and I
definitely could be wrong) there was no interface for that. Now it
sounds like I can take or leave QuickForm in my templates, and easily
access its methods it if I do use it. I'll check out the CVS (I had seen
a link for the renderer earlier on the list but the link was dead).
Thanks!
Andy
> -----Original Message-----
> From: Ron McClain [mailto:mixtli@cats.ucsc.edu]
> Sent: Tuesday, August 05, 2003 6:20 AM
> To: Alan Knowles
> Cc: pear-general@lists.php.net; Andy Crain; 'Bertrand Mansion'
> Subject: Re: [PEAR] Template_flexy + QuickForm problem: hidden
> formfieldgets overwritten with bad value
>
> Hi,
> Bertrand tells me that the flexy renderer has been added to
quickforms
> cvs,
> so you can check it out from there, or wait for a release.
> -Ron
>
>
> Alan Knowles wrote:
>
> > Andy,
> >
> > It's best not to rely on the QF integration in Flexy, it has been
> > droped in the next release - due to quite a few reasons.
> >
> > There is a flexy renderer for quickforms, that Ron McClain wrote,
the
> > link is in the Mailing list archives (or it might be in CVS
already?).
> > This provides a slightly more classic way to integrate it.. - using
> > {qf.formelement.xxxx:h} I think..
> >
> > I have got some of the documentation for Flexy updated at
> >
> > http://devel.akbkhome.com/livedocs/livedoc.php?q=package.html.html-
> template-flexy
> >
> > It may be possible to use the $flexy->getElements() and the extra
> > argument to $flexy->ouputObject() to do what The current version
tried
> > to do If someone wants to tackle that.... :)
> >
> >
> > http://devel.akbkhome.com/livedocs/livedoc.php?q=package.html.html-
> template-flexy.html-template-flexy.getelements
> > çXÈ 8w
> > ³]XËT(Arhttp://devel.akbkhome.com/livedocs/livedoc.php?q=package.html.html-
> template-flexy.html-template-flexy.outputobject
> >
> >
> > Regards
> > Alan
> >
> >
> > Crain wrote:
> >
> >> Thanks! I'll check that out.
> >> Andy
> >>
> >>
> >>> -----Original Message-----
> >>> From: Bertrand Mansion [mailto:bmansion@mamasam.com]
> >>> Sent: Sunday, August 03, 2003 6:18 PM
> >>> To: Andy Crain; pear-general@lists.php.net
> >>> Subject: Re: [PEAR] Template_flexy + QuickForm problem: hidden
> >>> formfieldgets overwritten with bad value
> >>>
> >>> <crain@fuse.net> wrote :
> >>>
> >>>
> >>>> Bertrand,
> >>>>
> >>>> Thanks very much for the tip. If nothing else works, I'll do
> >>>
> >>
> >> something
> >>
> >>>> like that, probably just change the variable name. I was just
hoping
> >>>> that I could more directly address the problem, rather than code
> >>>
> >>
> >> around
> >>
> >>>> it. If that's not possible, though, it's not the end of the
world.
> >>>>
> >>>> Could someone point me to the method or methods responsible for
> >>>> rewriting current request variables into form field default
values?
> >>>
> >>
> >> Even
> >>
> >>>> if I can't change the behavior, I'd like to know what is actually
> >>>
> >>
> >> going
> >>
> >>>> on, as I expect to use QuickForm much more in the near future. I
> >>>> couldn't find anything in the documentation or in my first skim
over
> >>>
> >>
> >> the
> >>
> >>>> QF code.
> >>>
> >>>
> >>> This is handled by events in element.php onQuickFormEvent()
method,
> >>
> >>
> >> when
> >>
> >>> the
> >>> updateValue event is passed. Some elements have special behaviors,
for
> >>> example checkboxes or radios, and override onQuickFormEvent().
> >>>
> >>> Basically, first we check for constants, then default values, then
> >>> submitted
> >>> values. If the element finds a submitted value, then it uses it.
As
> >>
> >>
> >> your
> >>
> >>> form uses GET method and the field has the same name, then it uses
> >>
> >>
> >> this
> >>
> >>> value.
> >>>
> >>> Bertrand Mansion
> >>> Mamasam
> >>>
> >>>
> >>> --
> >>> PEAR General Mailing List (http://pear.php.net/)
> >>> To unsubscribe, visit:
> >>> http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >>
> >
> >
>