JSF-JSP cancel button returns a number format exception

Posted by Barca on Stack Overflow See other posts from Stack Overflow or by Barca
Published on 2010-06-08T15:48:22Z Indexed on 2010/06/08 17:02 UTC
Read the original article Hit count: 138

Filed under:

I have a cancel button on a JSF-JSP page. It is handled by a method on the corresponding java class:

public String cancel_action() {
    return "CANCEL";

This is configured in faces-config.xml as following:

<navigation-rule>
    <from-view-id>/page2.jsp</from-view-id>
    <navigation-case>
        <from-outcome>CANCEL</from-outcome>
        <to-view-id>/page1.jsp</to-view-id>
    </navigation-case>
</navigation-rule>

Not sure why it is returning a number format exception.

Any help will be highly appreciated.

© Stack Overflow or respective owner

Related posts about jsf