Reply To: passing values between beans

Splash Forums PrettyFaces Users passing values between beans Reply To: passing values between beans

#24576

Hello there!

I believe what you are asking is how do you access the values that PrettyFaces has already injected into your beans via the path parameters you’ve specified in your URLMapping: #{roleTypeTest : findResourceRole.roleType}/#{iid : findResourceRole.id}

If this is the case, then my suggestion would be to @Inject the FindResourceRole bean into your ManageResourceRole bean so that you can programmatically access them via the java API:

http://www.mkyong.com/jsf2/injecting-managed-beans-in-jsf-2-0/

However, using CDI is the preferred approach here:

https://blogs.oracle.com/enterprisetechtips/entry/using_cdi_and_dependency_injection

I hope this helps,

Lincoln.