Use a Bean Inside a Managed Bean

how can i use a bean inside another bean?

I use this solution, what's the best way?

@ManagedBean(name="firstBean")
public class FirstBean implements Serializable{

  @ManagedProperty(value="#{myBean}")
  private MyBean myBean;
  ...
  //(get/set method)
}

I am new to JSF and JSP, so these are probably bad practices.

+3
source share
1 answer

Your decision is the right one to introduce another bean.

You only need a typesetter for the entered bean.

Do you have any problems \ with this?

+3
source

All Articles