How to pass value between pages in JSF?

The best way to pass a value when navigating from one page to other ( right now ) is

<f:setPropertyActionListener value="#{someValue}" target="#{yourBean.yourValue } "/>

where yourBean will be the bean that is used in the page that you are navigating to.

you should use JSF 1.2 by the way.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s