[Seaside] Form extended with ajax and callbacks
pdebruic at gmail.com
Fri Dec 2 17:25:58 UTC 2011
On 11-12-02 09:21 AM, Norbert Hartl wrote:
> Ok, I've found the problem. As it is all the same form I submit it twice. Once for the transfer of the select value and the second time when using the submit button. The select callback is triggered a second time and the magritte component gets resetted and that is the reason I can't see the value. I'm not sure what is the best solution to it. Is it possible to submit only a subset of the form fields? Otherwise I need to detect this case somehow.
Could you just make a generic textInput that stores into an inst var in
the component whatever value you want in the class the select chooses,
then do the instance creation and set the value once the form is submitted?
More information about the seaside