On Wed, Jul 6, 2011 at 6:32 PM, Echol <maks...@gmail.com> wrote: > > How to implement pageAction to that he output three of these forms and in > the validation of any of them and if it is not valid then also Display some > two forms? > > Hey Echol,
I don't really understand the use case here, or at least what your trying to achieve. >From what I gather, all of the forms are related to a specific task? For example editing a user? A good way of handling things like this can be with display groups and hiding fields. In your case you could attach all of the 9 elements to one form, and then split the form into three display groups. You can then use the removeElement() or set the display group visibility to zero, depending on the desired page. An example could be a user editing form. I have two forms, an Administration form for editing a user, and a User form to allow a user to edit themselves. The Administration version of the form contains fields like 'GroupID' , ' UserUniqueID' . However I don't want the user to be able to change their UserUniqueID or GroupID. Therefore I create an AdministerEditUser form and a UserEditUser form. The AdministerEditUser form contains all the elements in the init() function, the UserEditUser form extends the AdministerEditUser form, calls the parent constructor but calls the removeElement() function on the UserUniqueID and GroupID elements. The benefit of this direction is that you don't have to worry about declaring filters/validators in both forms. If you change the validator around a username then remembering where all of the validator declarations are can be a pain. Alex.