Antonio Goncalves created FORGE-1793:
----------------------------------------
Summary: 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
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}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)