Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2707

GUI: Cannot specify custom templates in scaffolding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.4.0.Final
    • Facets, Java EE, Scaffold
    • None
    • Hide
      • New project
      • Setup JPA and Faces Scaffolding
      • Create some entities
      • Open Forge commands (Ctrl+4)
      • Select "Scaffold: Generate"
      • In the dialog specify "Scaffold Type: Faces" and Web root path.
      • Press "Next>"
      • Select some entities
      • Activate "Use custom template when generating pages"
      • Write a directory path with custom templates
      • Press "Finish"
      Show
      New project Setup JPA and Faces Scaffolding Create some entities Open Forge commands (Ctrl+4) Select "Scaffold: Generate" In the dialog specify "Scaffold Type: Faces" and Web root path. Press "Next>" Select some entities Activate "Use custom template when generating pages" Write a directory path with custom templates Press "Finish"

      It's not possible to specify custom templates in scaffolding process using GUI using new control added in https://issues.jboss.org/browse/FORGE-1471

      java.lang.NullPointerException
      at org.jboss.forge.addon.scaffold.faces.ScaffoldableEntitySelectionWizard.validateTemplate(ScaffoldableEntitySelectionWizard.java:226)
      at org.jboss.forge.addon.scaffold.faces.ScaffoldableEntitySelectionWizard.validate(ScaffoldableEntitySelectionWizard.java:208)
      at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      at org.jboss.forge.addon.scaffold.faces.ScaffoldableEntitySelectionWizard_$$javassist_37285c26-86b6-476a-871e-d5b98124e45b.validate(ScaffoldableEntitySelectionWizard$$_javassist_37285c26-86b6-476a-871e-d5b98124e45b.java)
      at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.validate(SingleCommandControllerImpl.java:186)
      at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.isValid(SingleCommandControllerImpl.java:198)
      at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.isValid(WizardCommandControllerImpl.java:228)
      at org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.assertValid(AbstractCommandController.java:61)
      at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:134)
      at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:151)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:124)
      at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:97)
      at org.jboss.forge.addon.ui.controller.CommandController_$$javassist_5220763a-ffa7-463f-bcd9-36b890046baf.execute(CommandController$$_javassist_5220763a-ffa7-463f-bcd9-36b890046baf.java)
      at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:113)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

              Unassigned Unassigned
              henry2man Enrique Cardona (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: