> > you should instead hide the errors, and then you could add your own via > server-side DOM manipulation. >
But how do i do that if i dont know when errors has happened?. Currently the form gets automatic markup when is instantiated and later on its modified when process is called. But this is like executing the view before the controller. Wouldnt be better to serialize the form just once, when xml() is called?, even perfomace wise since nothings gets serialized until its droped into a view. Either i have to go back to my workaround or rearrange the SQLFORM code so gets serialized at the end of its lifespan, like it should, in my opinion. So far ive overriden def xml(self) to something like return form.custom.begin + self.createform(xfields=None) + form.custom.end Ive to deal with some issues like xfields but i hope it will work. I appreciate your opinion about this matter. Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.