voyent
Navigation redirect to previous page  XML
Forum Index -> General Help
Author Message
qpid

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


Hi forum users and icefaces team,

after the update to 1.7.0 a former running navigation case wont work anymore. I am not sure which was the last working version with this navigation case. The only thing I can say for sure is that it worked in 1.6.x.

I use for navigation the "navigation-rule" in the faces-config.xml file.

The situation is the following:

The navigation goes from PageA to PageB with no redirect, because of some parameter. Comparable with a master and detail view. From PageB back to PageA is a redirect to ensure destroying the pageBBean.

The strange thing is that if I redirect to another page excepting pageA the redirect works like expected. But it dont work if I try to redirect back to page A.

pageA.jspx Code:
...
 <ice:commandLink value="detail" action="go_PageB">
 <f:param name="selectedid" value="#{pageABean.selectedid}"
 </ice:commandLink>...
 


pageB.jspx Code:
...
 ice:outputText value="#{pageBBean.id}" />
 <ice:commandLink value="back" action="go_PageA">
 </ice:commandLink>...
 


pageBBean Code:
 <managed-bean>
 	<managed-bean-name>pageB</managed-bean-name>
 	<managed-bean-class>
 		PageB
 	</managed-bean-class>
 	<managed-bean-scope>request</managed-bean-scope>
 	<managed-property>
 		<property-name>id</property-name>
 		<value>#{param.selectedid}</value>
 	</managed-property>
 <managed-bean>
 



Navigation rule Code:
 <navigation-rule>
 	<from-view-id>*</from-view-id>
    
 	<navigation-case>
 		<from-outcome>go_PageB</from-outcome>
 		<to-view-id>/pageB.iface</to-view-id>
 	</navigation-case>
 
 	<navigation-case>
 		<from-outcome>go_PageA</from-outcome>
 		<to-view-id>/pageA.iface</to-view-id>
 		</redirect>
 	</navigation-case>
 </navigation-rule>
 


thanks ahead!

regards qpid
qpid

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


Hello again,
after a while of working on another project i am now back to this issue. For better testing and demonstrating I created a war file. So I hope my problem will become more clear.

Like I said this navaigation case worked in a previous version of icefaces. but I was not able to create also a war file with 1.6.2 or earlier, cause of some detail changes from 1.6.x to 1.7 which I do not know anymore. So the webapp will not start with 1.6.2 cause of some unclear issues...

regards qpid

 Filename test_navigation.war [Disk] Download
 Description Test war file which demonstrate the not working navigation case: redirect to same view-id
 Filesize 6976 Kbytes
 Downloaded:  74 time(s)

bryangill

Joined: 02/Jun/2008 00:00:00
Messages: 1
Offline


I'm having the same issue as well.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team