-
Sub-task
-
Resolution: Unresolved
-
Major
-
2.19.0.Final
It would be good to be able to add methods to a JSF backing bean with the following command :
faces-add-method --named myMethod
Most of the JSF methods return a String which is the page to go to (null means "go to the current page"). This would add the following myMethod method to the existing backing bean :
@Named public class MyBackingBean { public String myMethod() { return null; }
We could also have a outcome parameter which will be the page to go to :
faces-add-method --named myMethod --outcome main.xhtml
Gives :
@Named public class MyBackingBean { public String myMethod() { return "main.xhtml"; }