When you generate Java™ code, the j2ee build descriptor option specifies whether the Java code is generated to run in a J2EE environment.
When you generate a JSF handler, J2EE is always set to YES regardless of what is specified in this option. When you generate a Java program of type VGWebTransaction, J2EE is always set to NO regardless of what is specified in this option.