I want to hide a component in the UI based on certain condition? Should i use Render or Visible?
If Render is used :
How to toggle?
We need to do a PPR on the components PARENT to ensure it is included in tree structure and rendered on the UI.
If Visible is used:
For these reasons Render property is preferred and also it performs better as the component is not part of the validation life cycle
How to toggle?
PPR can be done to make the component conditionally visible.
Ref:
http://www.techzahowz.com/fmw/adf/adf-tip-when-to-use-rendered-vs-visible-for-hiding-components/
https://adfblog.files.wordpress.com/2014/01/oracle-application-development-framework-best-practices.pdf
If Render is used :
- The component will not be a part of the component tree. Meaning?
- The component will not be shown on the client side (HTML) and will NOT go through the ADF life cycle as well as validation phases.
- You need not change it based on bindings values via PPR
How to toggle?
We need to do a PPR on the components PARENT to ensure it is included in tree structure and rendered on the UI.
If Visible is used:
- The component will be a part of the component tree. Meaning?
- The component will be seen on the client side (HTML) and will go through the ADF life cycle as well as validation phases.
- This means its still available on the client side causing security issues. How?
- Its easy for hackers to see them in the browser DOM for manipulation and if they're submittable components send them on the next request.
For these reasons Render property is preferred and also it performs better as the component is not part of the validation life cycle
How to toggle?
PPR can be done to make the component conditionally visible.
Ref:
http://www.techzahowz.com/fmw/adf/adf-tip-when-to-use-rendered-vs-visible-for-hiding-components/
https://adfblog.files.wordpress.com/2014/01/oracle-application-development-framework-best-practices.pdf
No comments:
Post a Comment