0

I have a ManagedBean A with some parameters and Managed B which have MB A with parameter injected by @ManagedProperty, the MB A is injected on B with no problems but the parameters of A is null, anyone have this problem?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Leonardo
  • 61
  • 1
  • 3
  • 1
    Apparently it's just not the same instance as you initially had with the parameter. There's no other logical / straightforward explanation for this behavior. You can easily confirm this by placing a breakpoint in constructor and setter and checking instance's hashcode. Without a concrete SSCCE along with an elaborate description of the functional requirement, this question is hard to answer. You're basically asking for a list of Yes-No answers which is completely useless. Try to write your question as such that it not only generates useful answers but also really fixes your concrete problem. – BalusC Sep 13 '13 at 20:44
  • Without code, this is a poorly presented question. Do you inject the entire bean (A) or a specific property in bean A? – kolossus Sep 14 '13 at 07:11
  • Yes not is the same instance as i initially had with the parameter... Passing parameters with and view params doesnt work too im viewscoped to viewscoped ManagedBean – Leonardo Sep 19 '13 at 17:26

0 Answers0