Posted By:
Callum_Baillie
Posted On:
Saturday, August 4, 2007 11:41 AM
I have a simple jsf page that i am trying to make work. The problem is that when a user submits an action, that should result in an outcome that the navigation rule should pick up, nothing happens. The page just refreshes and goes nowhere. I had the underlying bean print what it was doing, and the action is definately returning "success" when it should be. Its just the navigation rule doesn't seem to do anything about it like it should. I have googled this and tried a few things, but so far no luck. I added a to my .jsp page also and there aren't any errors. Just no actual actions. Any help would be greatly appreciated. My faces-config.xml follows <?xml version='1.0' encoding='UTF-8'?>
More>>
I have a simple jsf page that i am trying to make work. The problem is that when a user submits an action, that should result in an outcome that the navigation rule should pick up, nothing happens. The page just refreshes and goes nowhere.
I had the underlying bean print what it was doing, and the action is definately returning "success" when it should be. Its just the navigation rule doesn't seem to do anything about it like it should. I have googled this and tried a few things, but so far no luck. I added a
to my .jsp page also and there aren't any errors. Just no actual actions.
Any help would be greatly appreciated.
My faces-config.xml follows
<?xml version='1.0' encoding='UTF-8'?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
sRegBean
segp.SupplierRegBean
request
Supplier_Register.jsp
success
Supplier_Register_Successful.jsp
Main.jsp
My checkData method from the bean follows
public String checkData () {
System.out.println("CheckData");
// if all form data is valid
if ( isValid())
{
System.out.println("Data is valid, return success");
return "success";
}
System.out.println("failure");
return "failure";
}
and my command button on my .jsp (jsf) page
even tried this button, but it didn't help