I have a bean with as managedproperty another bean:
public class Bean1
{
@ManagedProperty(value = "#{bean2}")
private Bean2 bean2;
....
}
Bean2 is correctly create, but navigation from bean1.xhtml to bean2.xhtml create another instance of Bean2, so I lost every parameter setted from Bean1. Bean1 and Bean2 are @ViewScoped.
Where am I wrong?
Bean1.java
Bean2.java
bean1.xhtml
Bean2.xhmtl
It is working at my end, it is working even when i change the
@ViewScopeto@SessionScopetoo. if you want some more info, please rewrite your question with more info about your code. thanks