Saturday, 24 August 2013

JSF two beans and just one view?

JSF two beans and just one view?

i have got following:
public abstract class aBean{... methods and variables ...}
@ManagedBean, ViewScoped
public class BeanType1 extends aBean{...only one method overritten...}
@ManagedBean, ViewScoped
public class BeanType2 extends aBean{...only one method overritten...}
is it possible to show some users View.xhtml with BeanType1 and some
others (the same) View.xhtml with BeanType2? i need a kind of
view-inheritance; like to use an EL-Expression like #{BEANPARAM.method}
where BEANPARAM can be BeanType1 or BeanType2...
is this possible or do I need two identival views with different beans?

No comments:

Post a Comment