2.4.2 ADF Customization Best Practices - Don'ts
- Do not use value change listener to call database package that changes data in database table. Since same database connection is not guaranteed on every request, this could lead to uncommitted data hanging and probably undesirable results for other users who got that database connection assigned to their request.
- Do not perform commit or rollback after read-only database calls.
- Do not store component bindings/references in session scope beans. Use backingbean or request scope beans.
- Avoid making multiple DB calls for a single operation which would badly affect the performance of the system.
- Do not use
system.out.println()
orprintStackTrace()
anywhere in the code. - Do not bind all the components in a fragment to the backing bean. Instead bind only the components on which you are going to perform operations programmatically.
Parent topic: ADF Customization Best Practices