Hey Antonio!Again, more excellent feedback! Thank you!First, I really don't see the difference between scaffolding and code generation (I've mention that before). So, for me, as a user, jpa-new-entity is a command that generates code, just like scaffold-generate. But if we clarify this, users might get use to it.Scaffolding basically is code generation. Right now there is nothing interactive or re-consumable about it.Regarding the fact that you weren't able to see anything about JSF. I believe this is likely due to this issue that we identified in Beta4 and have fixed and tested for .Final --> https://issues.jboss.org/browse/FORGE-1407For example. This is still a bit strange because unless you have multiple scaffolds installed, you don't see the choice of scaffold type, but when I run scaffold setup in the latest SNAPSHOT, I see:[jpa-demo]$ scaffold-
scaffold-generate scaffold-setup
[jpa-demo]$ scaffold-setup --facesVersion 2.
2.2 2.1 2.0
[jpa-demo]$ scaffold-setup --facesVersion 2.2Additionally, when I type `--provider` manually without using TAB completion, then TAB complete the value, I do see the provider option, so there may still be something wrong with the fix for FORGE-1407:[main]$ scaffold-setup --provider Faces~LincolnLincoln Baxter, IIIOn Sat, Jan 4, 2014 at 12:46 PM, Antonio Goncalves <antonio.mailing@gmail.com> wrote:
Scaffolding is really confusing. To scaffold my JSF pages I first need to install scaffolding :
forge -i scaffoldAnd then, once in Forge I do :scaffold-setupscaffold-generate --targets org.test.model.CustomerAnd it generates JSF pages. Nowhere I see any mention of JSF in the previous commands. These commands could have generated REST endpoint, EJBs, AngularJS....First, I really don't see the difference between scaffolding and code generation (I've mention that before). So, for me, as a user, jpa-new-entity is a command that generates code, just like scaffold-generate. But if we clarify this, users might get use to it.When I type forge -i scaffold, it installs plenty of stuff. Does this mean it installs all the available scaffolding addons (JSF, REST, AngularJS, Arquillian...) ? If not, I don't know what it installed. Why don't we have :
forge -i scaffold-jsf
forge -i scaffold-jpa
forge -i scaffold-rest
forge -i scaffold-soapor even better if we follow the new naming conventionforge -i jsf-scaffold
forge -i jpa-scaffoldforge -i rest-scaffoldforge -i soap-scaffoldAgain, when I type scaffold-generate I really don't know what will happen. Because scaffolding and generating are the same for me. So command scaffold-generate sounds like generate-generate or scaffold-scaffold. Why not having :jsf-scaffold --targets org.test.model.Customerjpa-scaffold --dbName myDB --jdbcDriver org.apache.derby.Clientrest-scaffold --targets org.test.model.Customersoap-scaffold --targets org.test.model.CustomerWhat do you think ?Antonio2014/1/4 George Gastaldi <ggastald@redhat.com>
The JSF scaffold was not installed with core in Beta4. We fixed that for 2.0.0.Final. Run forge -i scaffold to install it.Worth to mention that the available commands only generate the REST resource for the entities, the JSF scaffold does not consume them.I can't see any command for REST of JSF scaffolding, so I suppose both are addons. How do I install these addons ?2014/1/4 George Gastaldi <ggastald@redhat.com>
REST generation from JPA entities is already functional too.Use rest-setup and rest-endpoint-from-entityHum... I forgot, I also need REST scaffolding.... might be a bit tight in schedule....2014/1/3 George Gastaldi <ggastald@redhat.com>
Both issues are now fixed. JSF scaffolding is ready since Beta4.We could release Beta5 monday but as we said in the IRC, 2.0.0.Final is due in Jan 15th, so that's up to Lincoln.Best Regards,GeorgeHi JBoss Forge Team,I should have mentioned that before, but next Tuesday (at the Lille JUG in France) and Thursday (London, GlassFish User Group), I'll be giving a talk on JBoss Forge. It's the same one I gave at JavaOne (http://blog.arungupta.me/2013/12/come-and-play-with-javaee7-javaone-2013-session/) but with few extra features.I'm doing it with Forge 1.x.... but actually, the only missing bits to make it run with Forge 2.x are :* Bean Validation (https://issues.jboss.org/browse/FORGE-1393)* Java enums (https://issues.jboss.org/browse/FORGE-1400)* JSF scaffoldingSo I was just wondering if this would be available on Monday for a Beta5 so I could use itThank(just joking ;o)--
Antonio Goncalves
Software architect and Java Champion
Web site | Twitter | LinkedIn | Paris JUG | Devoxx France_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users--
Antonio Goncalves
Software architect and Java Champion
Web site | Twitter | LinkedIn | Paris JUG | Devoxx France_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users--
Antonio Goncalves
Software architect and Java Champion
Web site | Twitter | LinkedIn | Paris JUG | Devoxx France_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users
--
Antonio Goncalves
Software architect and Java Champion
Web site | Twitter | LinkedIn | Paris JUG | Devoxx France
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users--
http://ocpsoft.org
"Simpler is better."
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users