Author: norman.richards(a)jboss.com
Date: 2009-04-15 17:54:38 -0400 (Wed, 15 Apr 2009)
New Revision: 10428
Modified:
trunk/examples/registration/src/org/jboss/seam/example/registration/RegisterAction.java
trunk/examples/registration/src/org/jboss/seam/example/registration/test/RegisterTest.java
Log:
JBSEAM-4114
Modified:
trunk/examples/registration/src/org/jboss/seam/example/registration/RegisterAction.java
===================================================================
---
trunk/examples/registration/src/org/jboss/seam/example/registration/RegisterAction.java 2009-04-15
21:52:12 UTC (rev 10427)
+++
trunk/examples/registration/src/org/jboss/seam/example/registration/RegisterAction.java 2009-04-15
21:54:38 UTC (rev 10428)
@@ -36,7 +36,7 @@
{
em.persist(user);
log.info("Registered new user #{user.username}");
- return "/registered.jspx";
+ return "/registered.xhtml";
}
else
{
Modified:
trunk/examples/registration/src/org/jboss/seam/example/registration/test/RegisterTest.java
===================================================================
---
trunk/examples/registration/src/org/jboss/seam/example/registration/test/RegisterTest.java 2009-04-15
21:52:12 UTC (rev 10427)
+++
trunk/examples/registration/src/org/jboss/seam/example/registration/test/RegisterTest.java 2009-04-15
21:54:38 UTC (rev 10428)
@@ -13,7 +13,7 @@
public void testLogin() throws Exception
{
- new FacesRequest("/register.jspx") {
+ new FacesRequest("/register.xhtml") {
@Override
protected void processValidations() throws Exception
@@ -35,8 +35,8 @@
@Override
protected void invokeApplication()
{
- assert
invokeMethod("#{register.register}").equals("/registered.jspx");
- setOutcome("/registered.jspx");
+ assert
invokeMethod("#{register.register}").equals("/registered.xhtml");
+ setOutcome("/registered.xhtml");
}
@Override
@@ -48,7 +48,7 @@
}.run();
- new NonFacesRequest("/registered.jspx")
+ new NonFacesRequest("/registered.xhtml")
{
@Override
@@ -61,7 +61,7 @@
}.run();
- new FacesRequest("/register.jspx") {
+ new FacesRequest("/register.xhtml") {
@Override
protected void processValidations() throws Exception
Show replies by date