forward from one jsf page to another

Hi,

I am sure this question has been asked before somewhere but I am not able to find it.

I want to forward from one jsf page to another like we do in jsp by <jsp:forward page="courseList.faces"/>

I want to do same thing from a jsf page since <jsp:forward> is not working inside <f:view> tag.

Thanks,

Arsalan

[354 byte] By [Arsalan_Siddiquia] at [2007-11-27 11:14:38]
# 1

What problem are you trying to solve that makes you think this is what you need to do?

RaymondDeCampoa at 2007-7-29 14:08:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

actually I am getting a url string from outside the application. On the basis of input parameters from url, I have to populate one backing bean and then display a page.

I am able to populate the backing bean, now I need to forward to another page where the record is displayed from the bean.

Please let me know if you have any other questions.

Arsalan_Siddiquia at 2007-7-29 14:08:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

If I am understand you correctly, you have an entry point to your application from a different application. Let's say this is /entry.jsf. When this request is made you populate a backing bean (presumably using #{param.xyz}?). How instead of rendering /entry.jsf you want to render /display.jsf.

So why wouldn't you just start at /display.jsf? I imagine I am missing something.

RaymondDeCampoa at 2007-7-29 14:08:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Raymond,

You understood me correctly. Well I can directly start from display.jsf, I just want to keep display.jsf clean and populate the bean from some other jsf or through some other way.

/Arsalan

Arsalan_Siddiquia at 2007-7-29 14:08:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

How are you planning on populating the backing bean? Are you aware that you can reference request parameters in the faces-config.xml as values for backing bean properties? So there may be no need to have any code in the display page.

RaymondDeCampoa at 2007-7-29 14:08:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

Thanks for the info raymond, my issue is resolved

/Arsalan

Arsalan_Siddiquia at 2007-7-29 14:08:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...