Upps wrong list …
Ralf
Ralf Becker schrieb:
Why use static methods?
If eg. your UI class contains an (preformancewise) expensive
constructor, but you want to keep the callback in the same class (keep
the source together), static callback can help to speed up the ajax
response a lot.
Instead of ‘filemanager.filemanager_ui.something’ you can use
’filemanager_ui::something’. The something method should of cause be
declared “static public”.
I also commited an exception handler for xjax, to give a nicer error
back to the user (instead of your XML response contains whitespace).
The exception handler returns the exception message, plus a stack trace.
Maybe we should make the stack traces of all exception handlers
configurable, so they can be disabled (or just logged) on a production
system.
Ralf
–
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers