3 Replies Latest reply on Jan 15, 2015 10:26 AM by ivan_stefanov

    [forge-dev] Issue with Angular scaffold generation

    ivan_stefanov

      Hi folks,

       

      While I was preparing tonight's demo for Barcelona JUG, I found something

      really strange.

       

      Whenever you try to generate Angular scaffold, it generates everything

      besides the JAX-RS endpoints for the selected entities.

       

      Here are the steps to reproduce it:

       

      1) Create new project

      2) Add new JPA entity, setting up Wildfly as container and taking the

      defaults. Choose Conference as entity name

      3) Add new field, choose name as name and leave the defaults for the other

      entries

      4) Generate scaffold. Make sure you choose Angular, select the Conference

      entity and click Finish

       

      You will notice that we have all the web resources generated fine, also the

      Application class (required by JAX-RS) is there, but not the stateless

      session EJB, which scaffolds the conference entity.

       

      I tried also to first setup scaffolding and then generate, but the result

      was the same - no EJB.

       

      JSF scaffolding works fine. Generating REST endpoints from entities works

      fine too.

       

      I tried this with JBDS and IntelliJ IDEA.

       

      I am pretty sure it used to work some time ago. I demoed the same thing in

      Macedonia last November and it worked.

       

      Cheers,

      Ivan

       

        • 1. Re: [forge-dev] Issue with Angular scaffold generation

           

          We had to change the AngularJS scaffold to optionally generate the REST resource classes.

          That's because we didnt want to keep regenerating the "backend" everytime the scaffold-generate command was executed,

          and also to retain changes in the "backend" that are not over-written during scaffold-generate.

          There should be a parameter (--generateRestResources) for this in the CLI and an equivalent checkbox in the GUI dialog.

           

           

          -


          Original Message -


          From: "Ivan St. Ivanov" <ivan.st.ivanov@gmail.com>

          To: "forge-dev List" <forge-dev@lists.jboss.org>

          Sent: Thursday, January 15, 2015 7:27:00 PM

          Subject: Issue with Angular scaffold generation

           

          Hi folks,

           

          While I was preparing tonight's demo for Barcelona JUG, I found something

          really strange.

           

          Whenever you try to generate Angular scaffold, it generates everything

          besides the JAX-RS endpoints for the selected entities.

           

          Here are the steps to reproduce it:

           

          1) Create new project

          2) Add new JPA entity, setting up Wildfly as container and taking the

          defaults. Choose Conference as entity name

          3) Add new field, choose name as name and leave the defaults for the other

          entries

          4) Generate scaffold. Make sure you choose Angular, select the Conference

          entity and click Finish

           

          You will notice that we have all the web resources generated fine, also the

          Application class (required by JAX-RS) is there, but not the stateless

          session EJB, which scaffolds the conference entity.

           

          I tried also to first setup scaffolding and then generate, but the result was

          the same - no EJB.

           

          JSF scaffolding works fine. Generating REST endpoints from entities works

          fine too.

           

          I tried this with JBDS and IntelliJ IDEA.

           

          I am pretty sure it used to work some time ago. I demoed the same thing in

          Macedonia last November and it worked.

           

          Cheers,

          Ivan

           

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-dev

          _______________________________________________

          forge-dev mailing list

          forge-dev@lists.jboss.org

          https://lists.jboss.org/mailman/listinfo/forge-dev

           

          • 2. Re: [forge-dev] Issue with Angular scaffold generation

             

            -


            Original Message -


            From: "Vineet Reynolds Pereira" <vpereira@redhat.com>

            To: "forge-dev List" <forge-dev@lists.jboss.org>

            Sent: Thursday, January 15, 2015 7:37:06 PM

            Subject: Re: Issue with Angular scaffold generation

             

             

            We had to change the AngularJS scaffold to optionally generate the REST

            resource classes.

            That's because we didnt want to keep regenerating the "backend" everytime the

            scaffold-generate command was executed,

            and also to retain changes in the "backend" that are not over-written during

            scaffold-generate.

             

            Oh, and also because if you generate REST resources separately using the rest-generate-endpoints-from-entities command, then they are not overwritten.

             

            There should be a parameter (--generateRestResources) for this in the CLI and

            an equivalent checkbox in the GUI dialog.

             

             

            ----- Original Message -----

            From: "Ivan St. Ivanov" <ivan.st.ivanov@gmail.com>

            To: "forge-dev List" <forge-dev@lists.jboss.org>

            Sent: Thursday, January 15, 2015 7:27:00 PM

            Subject: Issue with Angular scaffold generation

             

            Hi folks,

             

            While I was preparing tonight's demo for Barcelona JUG, I found something

            really strange.

             

            Whenever you try to generate Angular scaffold, it generates everything

            besides the JAX-RS endpoints for the selected entities.

             

            Here are the steps to reproduce it:

             

            1) Create new project

            2) Add new JPA entity, setting up Wildfly as container and taking the

            defaults. Choose Conference as entity name

            3) Add new field, choose name as name and leave the defaults for the other

            entries

            4) Generate scaffold. Make sure you choose Angular, select the Conference

            entity and click Finish

             

            You will notice that we have all the web resources generated fine, also the

            Application class (required by JAX-RS) is there, but not the stateless

            session EJB, which scaffolds the conference entity.

             

            I tried also to first setup scaffolding and then generate, but the result

            was

            the same - no EJB.

             

            JSF scaffolding works fine. Generating REST endpoints from entities works

            fine too.

             

            I tried this with JBDS and IntelliJ IDEA.

             

            I am pretty sure it used to work some time ago. I demoed the same thing in

            Macedonia last November and it worked.

             

            Cheers,

            Ivan

             

            _______________________________________________

            forge-dev mailing list

            forge-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/forge-dev

            _______________________________________________

            forge-dev mailing list

            forge-dev@lists.jboss.org

            https://lists.jboss.org/mailman/listinfo/forge-dev

             

            • 3. Re: [forge-dev] Issue with Angular scaffold generation
              ivan_stefanov

              Thanks, Vineet! Clicking on the checkbox did the job. Now I remember that

              for the last demo (in Macedonia) I also had to select it.

               

              Cheers,

              Ivan

               

              On Thu, Jan 15, 2015 at 4:08 PM, Vineet Reynolds Pereira <

              vpereira@redhat.com> wrote:

               

              >

              ----- Original Message -----

              From: "Vineet Reynolds Pereira" <vpereira@redhat.com>

              To: "forge-dev List" <forge-dev@lists.jboss.org>

              Sent: Thursday, January 15, 2015 7:37:06 PM

              Subject: Re: Issue with Angular scaffold generation

               

               

              We had to change the AngularJS scaffold to optionally generate the REST

              resource classes.

              That's because we didnt want to keep regenerating the "backend"

              everytime the

              scaffold-generate command was executed,

              and also to retain changes in the "backend" that are not over-written

              during

              scaffold-generate.

               

              Oh, and also because if you generate REST resources separately using the

              rest-generate-endpoints-from-entities command, then they are not

              overwritten.

               

              There should be a parameter (--generateRestResources) for this in the

              CLI and

              an equivalent checkbox in the GUI dialog.

               

               

              ----- Original Message -----

              From: "Ivan St. Ivanov" <ivan.st.ivanov@gmail.com>

              To: "forge-dev List" <forge-dev@lists.jboss.org>

              Sent: Thursday, January 15, 2015 7:27:00 PM

              Subject: Issue with Angular scaffold generation

               

              Hi folks,

               

              While I was preparing tonight's demo for Barcelona JUG, I found

              something

              really strange.

               

              Whenever you try to generate Angular scaffold, it generates everything

              besides the JAX-RS endpoints for the selected entities.

               

              Here are the steps to reproduce it:

               

              1) Create new project

              2) Add new JPA entity, setting up Wildfly as container and taking the

              defaults. Choose Conference as entity name

              3) Add new field, choose name as name and leave the defaults for the

              other

              entries

              4) Generate scaffold. Make sure you choose Angular, select the

              Conference

              entity and click Finish

               

              You will notice that we have all the web resources generated fine,

              also the

              Application class (required by JAX-RS) is there, but not the stateless

              session EJB, which scaffolds the conference entity.

               

              I tried also to first setup scaffolding and then generate, but the

              result

              was

              the same - no EJB.

               

              JSF scaffolding works fine. Generating REST endpoints from entities

              works

              fine too.

               

              I tried this with JBDS and IntelliJ IDEA.

               

              I am pretty sure it used to work some time ago. I demoed the same

              thing in

              Macedonia last November and it worked.

               

              Cheers,

              Ivan

               

              _______________________________________________

              forge-dev mailing list

              forge-dev@lists.jboss.org

              https://lists.jboss.org/mailman/listinfo/forge-dev

              _______________________________________________

              forge-dev mailing list

              forge-dev@lists.jboss.org

              https://lists.jboss.org/mailman/listinfo/forge-dev