This content has been marked as final.
Show 1 reply
-
1. Re: Best Practice Question - Avoid Excessive Bijection
mgrouch Nov 16, 2007 12:47 PM (in response to jfrankman)@Out outjection into event scope should be used for better EL performance.
If you have a lot of
#{bean.subBean.subSubBean.prop1}
#{bean.subBean.subSubBean.prop2}
#{bean.subBean.subSubBean.prop3}
#{bean.subBean.subSubBean.prop4}
you should outject bean.subBean.subSubBean as subSubBean
and use
#{subSubBean.prop1}
#{subSubBean.prop2}
#{subSubBean.prop3}
This will perform better.
Remember with current EL implementation each dot '.'
is a reflection call when it is evaluated.