0

Is there some way that I can pass a Object from one managed bean to another

For Example: #{bean1.setMethod(bean2.getMethod)}

OR

Are there any workarounds of doing this?

Sarz
  • 1,970
  • 4
  • 23
  • 43
Peter Zhu
  • 421
  • 6
  • 16
  • There are MANY ways to do that. The right way depends on the functional requirement and/or technical problem which is *nowhere* visible in the question in its current form. You'll have more chance in getting the right way answered if you tell about the functional requirement and/or technical problem you're trying to solve. – BalusC Oct 31 '15 at 21:39
  • Or search for al the very similar question and pick the answer from the one that matches your case – Kukeltje Nov 01 '15 at 10:35
  • 2
    Are your looking for [bean injection](http://balusc.omnifaces.org/2011/09/communication-in-jsf-20.html#InjectingManagedBeansInEachOther)? – ForguesR Nov 01 '15 at 13:46
  • Duplicate of http://stackoverflow.com/questions/12356990/how-to-access-property-of-sessionscoped-managed-bean-in-viewscoped-managed-bean/ – BalusC Nov 02 '15 at 15:36

1 Answers1

1

Thanks to ForguesR for answering the question. The solution to the problem is here.

Peter Zhu
  • 421
  • 6
  • 16