Re: QFC - who puts the values in the container?

From: Date: Wed, 22 Oct 2003 07:37:46 +0000
Subject: Re: QFC - who puts the values in the container?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8533@lists.php.net to get a copy of this message
Hi! Daniel Kopp wrote:
I got a QFC element and several Actions - non being called "process". When I call the action it seems that there is no way to get the *current* (just entered) values. Neither exportValue/s (Form/controller) nor getElementValues does give me the value I want. The container also does not include these values. If I push F5 I get the values ... How am I supposed to do that? Which process puts the values in the container?
The "current" values are put into the container by Back, Next, Direct and Submit handlers. These are the (only) actions that should be bound to buttons. If you bind a custom action, then you need to 1) build a form (as Markus already pointed out) 2) get a reference to container 3) fill its [values][$pageName] and [valid][$pageName] indices. in its perform() method. See the mentioned handlers' perform() methods for the examples. As Markus also already pointed out, exportValues() is useless if the form does not have any elements, as it returns only the values for the elements that are present.

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