]
Lincoln Baxter III reassigned FORGE-1793:
-----------------------------------------
Assignee: Lincoln Baxter III
Commands faces-new-validator and faces-new-converter do not work with
faces-setup
---------------------------------------------------------------------------------
Key: FORGE-1793
URL:
https://issues.jboss.org/browse/FORGE-1793
Project: Forge
Issue Type: Feature Request
Components: Java EE
Affects Versions: 2.5.0.Final
Reporter: Antonio Goncalves
Assignee: Lincoln Baxter III
Fix For: 2.5.1.Final
Both commands {{faces-new-validator}} and {{faces-new-converter}} generate Java code but
which doesn't build. That's because {{faces-setup}} needs to be executed first to
add the dependency on JSF on the {{pom.xml}}.
Maybe both commands need to {{implements PrerequisiteCommandsProvider}} and override the
method {{getPrerequisiteCommands}} as :
{code}
@Override
public NavigationResult getPrerequisiteCommands(UIContext context)
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
Project project = getSelectedProject(context);
if (project != null)
{
if (!project.hasFacet(FacesFacet.class))
{
builder.add(FacesSetupWizard.class);
}
}
return builder.build();
}
{code}