[jboss-user] [JBoss Seam] - Testing redirection

denis.diggin do-not-reply at jboss.com
Fri May 18 10:05:43 EDT 2007


In integration tests, is it possible to determine to which view a redirection took place?

	<!-- After login go to home page -->
  | 	<page view-id="/login.xhtml">
  | 		<navigation>
  | 			<redirect view-id="/home.xhtml" />
  | 		</navigation>
  | 	</page>
  | 

Test..

new FacesRequest("/login.xhtml") {
  | 	protected void afterRequest() {
  | 		// Where have I been redirected to?
  | 	};
  | }
  | 

If I use "render" then getViewId() will do the trick.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046821#4046821

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046821



More information about the jboss-user mailing list