]
Lincoln Baxter III commented on FORGE-1595:
-------------------------------------------
Awesome job Antonio! You are the man!
Being able to create an empty JSF backing bean
----------------------------------------------
Key: FORGE-1595
URL:
https://issues.jboss.org/browse/FORGE-1595
Project: Forge
Issue Type: Sub-task
Components: Scaffold
Affects Versions: 2.0.0.Final
Reporter: Antonio Goncalves
Assignee: Antonio Goncalves
Priority: Minor
Fix For: 2.5.1.Final
At the moment the only way to generate JSF backing beans is with scaffolding. To save
time and help the developer in creating new backing beans, it would be good to have a
command such :
{code}
faces-new-bean --named MyBean
{code}
This will create a {{MyBean}}, with no scope, under the {{view}} package. You could also
give a different sub-package with :
{code}
faces-new-page --named MyBean --targetPackage view.admin
{code}
This will create the page under {{view/admin/MyBean.java}}.
{code}
@Named
public class MyBean {
}
{code}