Forums Register Login

how to pass paramenter from one bean to another bean without using session in jsf 2.0?

+Pie Number of slices to send: Send
hi all

I am using jsf 2.0 ..I need to know how to pass property value from one bean to another bean without using session scope
is any possibility ?

please share with me
+Pie Number of slices to send: Send
Welcome to the JavaRanch, Maya!

There are a number of ways. One is to use Request scope and to pass the value as a hidden field on a View. There are also custom JSF tags that expand on this idea.

Another way is to use Application scope, although that has the disadvantage of being global to all app users.

And finally, new in JSF2 is Flash scope, which can pass a value through exactly one change of Views.
It was the best of times. It was the worst of times. It was a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1954 times.
Similar Threads
How To initialize one bean from another bean
Pass data between managed/ backing beans
Implicit navigation redirect causing new session
Creating managed bean with different parametrs
problem with managed bean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:43:46.