4. CDI supports
@Transactional
annotation, and it seems
EJB Session Bean will be
merged to CDI. Correct?
Actually, it should be.
(Antonio Goncalves, the
EJB spec reader, writer of
"beginning Java EE 7)
1st issue, JSF backing bean defectively. When some facelet or managed bean set to the session scoped bean, the filter cannot access to the session scoped bean directly.
Some blogs and web sites shows these codes to access backing bean from non-JSF objects, but not worked properly in JSF 2.So we must override phase listeners for filtering, but very harmful and uncertain codes required.
Of course you can switch the backing bean from JSF managed bean to CDI bean.But unfortunately, Java EE 6 CDI didn't have @ViewScoped annotations, so we cannot use one-by-one style with facelets.I cannot understand this conflicted situation in EE 6.
In EE 7, these conflicts are already cleared and well integrated with JSF and CDI.CDI added @ViewScoped annotation to access one-by-one style with facelet.This strategy must be considered in the first JSF, but achieved in Java EE 7. It's too late for us!So wait for the Java EE 7 if you can.
Java EE 6 has some irregular tags named 'jsfc'.Java EE 7 JSF 2.2 changed these silly tags to XML schema compliant style. It's good for applying standards, but there's many cost required for updating from JSF 2.1.So, you should start from Java EE 7 if you can.