voyent
Redirect Problem in Icefaces  XML
Forum Index -> General Help
Author Message
sultana.munawar

Joined: 11/Mar/2008 00:00:00
Messages: 5
Offline


I have two pages , login.jspx and confirm.jspx .

[code]<navigation-rule>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/login.jspx</to-view-id>
<redirect>
</navigation-case>
</navigation-rule>

<navigation-rule>
<navigation-case>
<from-outcome>confirm</from-outcome>
<to-view-id>/confirm.jspx</to-view-id>
</navigation-case>
</navigation-rule>

Its navigating from login.jspx to confirm.jspx
But page is not navigating back from confirm.jspx to login.jspx.

I need to use redirect in login.jsp page.
So without eliminating code of <redirect> , any one can help me to solve this problem.

Thank you in advance.

patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1982
Offline


I think the problem is related to the view id. Try using .iface instead of .jspx.

When in doubt you can log the value of FacesContext.getCurrentInstance().getViewRoot().getViewId() to find the view id of the page in question.
[Email]
qpid

Joined: 09/Nov/2007 00:00:00
Messages: 21
Offline


I think this behaviour is the same I described in this thread: Navigation redirect to previous page

The redirect is executed but the view is also restored. You can test this, if you pass a parameter thru the navigation case.

I tried also a redirecting thru the redirect method:

Code:
			FacesContext.getCurrentInstance().getExternalContext().redirect(
 					"/test/pageA.iface");


But the result is always the same: No complete redirect!

regards qpid
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team