- 
        1. Re: [forge-dev] How to have multiple choices in a Forge command ?Antonio Goncalves Oct 26, 2014 7:27 AM (in response to Antonio Goncalves )  And I have the same need for "Being able to create a new JPA listener" ( https://issues.jboss.org/browse/FORGE-2093) : jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE 2014-10-26 12:23 GMT+01:00 Antonio Goncalves <antonio.mailing@gmail.com>: Hi guys, I want to work on "Being able to add a listener when creating a new JPA entity "(https://issues.jboss.org/browse/FORGE-2094). Basically, when I create a new JPA entity, I want to be able to add as many listeners as I want. jpa-new-entity --named MyEntity --listener DebugListener, AuditListener Would generate : @Entity @EntityListeners({ DebugListener.class, AuditListener }) public class MyEntity { } > How do I do to be able to have several choices on an attribute ? I only know how to manage one value but not several one. Is it doable ? Any exemple in any Forge command ? Thanks -- Antonio Goncalves Software architect and Java Champion Web site <http://www.antoniogoncalves.org/> | Twitter <http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal> | Paris JUG <http://www.parisjug.org/> | Devoxx France <http://www.devoxx.fr/> -- Antonio Goncalves Software architect and Java Champion Web site <http://www.antoniogoncalves.org/> | Twitter <http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal> | Paris JUG <http://www.parisjug.org/> | Devoxx France 
- 
        2. Re: [forge-dev] How to have multiple choices in a Forge command ?danielcunha Oct 26, 2014 8:06 AM (in response to Antonio Goncalves )Hiho Antonio, jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE Maybe, DeltaSpike Addon can help you. It’s simple and easy to understand. In DeltaSpike Addon you can do that: deltaspike-install-modules[1] --modules JPA JSF Servlet Data For this case: jpa-new-entity --named MyEntity --listener DebugListener, AuditListener I don’t have a sample for it or I don’t remeber now. On Sun, Oct 26, 2014 at 9:27 AM, Antonio Goncalves < antonio.mailing@gmail.com> wrote: And I have the same need for "Being able to create a new JPA listener" ( https://issues.jboss.org/browse/FORGE-2093) : jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE > 2014-10-26 12:23 GMT+01:00 Antonio Goncalves <antonio.mailing@gmail.com>: >> Hi guys, >> >> I want to work on "Being able to add a listener when creating a new JPA >> entity "(https://issues.jboss.org/browse/FORGE-2094). Basically, when I >> create a new JPA entity, I want to be able to add as many listeners as I >> want. >> >> jpa-new-entity --named MyEntity --listener DebugListener, AuditListener >> >> Would generate : >> >> @Entity >> @EntityListeners({ DebugListener.class, AuditListener }) >> >> public class MyEntity >> { >> } >> >> >> How do I do to be able to have several choices on an attribute ? I only >> know how to manage one value but not several one. Is it doable ? Any >> exemple in any Forge command ? >> >> Thanks >> >> -- >> Antonio Goncalves >> Software architect and Java Champion >> >> Web site <http://www.antoniogoncalves.org/> | Twitter >> <http://twitter.com/agoncal> | LinkedIn >> <http://www.linkedin.com/in/agoncal> | Paris JUG >> <http://www.parisjug.org/> | Devoxx France <http://www.devoxx.fr/> >> > > -- Antonio Goncalves Software architect and Java Champion Web site <http://www.antoniogoncalves.org/> | Twitter <http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal> | Paris JUG <http://www.parisjug.org/> | Devoxx France <http://www.devoxx.fr/> _______________________________________________ forge-dev mailing list https://lists.jboss.org/mailman/listinfo/forge-dev -- Daniel Cunha (soro) <http://www.cejug.net> Blog: http://www.danielsoro.com.br Twitter: https://twitter.com/dvlc_ GitHub: https://github.com/danielsoro LinkedIn: http://www.linkedin.com/in/danielvlcunha - 
            
                            
            att1.html.zip 5.9 KB
 
- 
            
                            
            
- 
        3. Re: [forge-dev] How to have multiple choices in a Forge command ?gastaldi Oct 26, 2014 9:07 AM (in response to danielcunha)Hi Antonio, As Daniel said, you need to use UISelectMany (eg: https://github.com/rafabene/addon-deltaspike/blob/master/src/main/java/org/jboss/forge/addon/deltaspike/commands/AbstractDeltaSpikeCommand.java). See the UI addon documentation about the possible UI types: http://forge.jboss.org/addon/org.jboss.forge.addon:ui Em 26/10/2014, às 10:06, Daniel Cunha <danielsoro@gmail.com> escreveu: Hiho Antonio, jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE Maybe, DeltaSpike Addon can help you. It’s simple and easy to understand. In DeltaSpike Addon you can do that: deltaspike-install-modules[1] --modules JPA JSF Servlet Data For this case: jpa-new-entity --named MyEntity --listener DebugListener, AuditListener I don’t have a sample for it or I don’t remeber now. https://github.com/rafabene/addon-deltaspike/blob/master/src/main/java/org/jboss/forge/addon/deltaspike/commands/DeltaSpikeInstallModulesCommand.java >> On Sun, Oct 26, 2014 at 9:27 AM, Antonio Goncalves <antonio.mailing@gmail.com> wrote: >> >> And I have the same need for "Being able to create a new JPA listener" (https://issues.jboss.org/browse/FORGE-2093) : >> jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE >> >> 2014-10-26 12:23 GMT+01:00 Antonio Goncalves <antonio.mailing@gmail.com>: >>> Hi guys, >>> >>> I want to work on "Being able to add a listener when creating a new JPA entity "(https://issues.jboss.org/browse/FORGE-2094). Basically, when I create a new JPA entity, I want to be able to add as many listeners as I want. >>> >>> jpa-new-entity --named MyEntity --listener DebugListener, AuditListener >>> Would generate : >>> @Entity >>> @EntityListeners({ DebugListener.class, AuditListener }) >>> public class MyEntity >>> { >>> } >>> >>> How do I do to be able to have several choices on an attribute ? I only know how to manage one value but not several one. Is it doable ? Any exemple in any Forge command ? >>> >>> Thanks >>> >>> -- >>> Antonio Goncalves >>> Software architect and Java Champion >>> >>> Web site | Twitter | LinkedIn | Paris JUG | Devoxx France >> >> >> >> -- >> Antonio Goncalves >> Software architect and Java Champion >> >> Web site | Twitter | LinkedIn | Paris JUG | Devoxx France >> >> _______________________________________________ >> forge-dev mailing list >> https://lists.jboss.org/mailman/listinfo/forge-dev -- Daniel Cunha (soro) <http://www.cejug.net> Blog: http://www.danielsoro.com.br Twitter: https://twitter.com/dvlc_ GitHub: https://github.com/danielsoro LinkedIn: http://www.linkedin.com/in/danielvlcunha _______________________________________________ forge-dev mailing list - 
            
                            
            att1.html.zip 6.2 KB
 
- 
            
                            
            
- 
        4. Re: [forge-dev] How to have multiple choices in a Forge command ?lincolnthree Oct 29, 2014 4:28 PM (in response to gastaldi)As George said, UISelectMany (or UIInputMany, depending on if you know the possible values up front, or if the values are "open ended) serve to meet both of your use cases. There are examples of this in the AddonRemoveCommand. On Sun, Oct 26, 2014 at 9:07 AM, George Gastaldi <ggastald@redhat.com> wrote: Hi Antonio, As Daniel said, you need to use UISelectMany (eg: See the UI addon documentation about the possible UI types: http://forge.jboss.org/addon/org.jboss.forge.addon:ui > Em 26/10/2014, às 10:06, Daniel Cunha <danielsoro@gmail.com> escreveu: Hiho Antonio, jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE Maybe, DeltaSpike Addon can help you. It’s simple and easy to understand. In DeltaSpike Addon you can do that: deltaspike-install-modules[1] --modules JPA JSF Servlet Data For this case: jpa-new-entity --named MyEntity --listener DebugListener, AuditListener I don’t have a sample for it or I don’t remeber now. On Sun, Oct 26, 2014 at 9:27 AM, Antonio Goncalves < antonio.mailing@gmail.com> wrote: And I have the same need for "Being able to create a new JPA listener" ( >> https://issues.jboss.org/browse/FORGE-2093) : >> >> jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE >> >> >> 2014-10-26 12:23 GMT+01:00 Antonio Goncalves <antonio.mailing@gmail.com>: >> >>> Hi guys, >>> >>> I want to work on "Being able to add a listener when creating a new JPA >>> entity "(https://issues.jboss.org/browse/FORGE-2094). Basically, when I >>> create a new JPA entity, I want to be able to add as many listeners as I >>> want. >>> >>> jpa-new-entity --named MyEntity --listener DebugListener, AuditListener >>> >>> Would generate : >>> >>> @Entity >>> @EntityListeners({ DebugListener.class, AuditListener }) >>> >>> public class MyEntity >>> { >>> } >>> >>> >>> How do I do to be able to have several choices on an attribute ? I only >>> know how to manage one value but not several one. Is it doable ? Any >>> exemple in any Forge command ? >>> >>> Thanks >>> >>> -- >>> Antonio Goncalves >>> Software architect and Java Champion >>> >>> Web site <http://www.antoniogoncalves.org/> | Twitter >>> <http://twitter.com/agoncal> | LinkedIn >>> <http://www.linkedin.com/in/agoncal> | Paris JUG >>> <http://www.parisjug.org/> | Devoxx France <http://www.devoxx.fr/> >>> >> >> >> >> -- >> Antonio Goncalves >> Software architect and Java Champion >> >> Web site <http://www.antoniogoncalves.org/> | Twitter >> <http://twitter.com/agoncal> | LinkedIn >> <http://www.linkedin.com/in/agoncal> | Paris JUG >> <http://www.parisjug.org/> | Devoxx France <http://www.devoxx.fr/> >> >> _______________________________________________ >> forge-dev mailing list >> https://lists.jboss.org/mailman/listinfo/forge-dev >> -- Daniel Cunha (soro) <http://www.cejug.net> Blog: http://www.danielsoro.com.br Twitter: https://twitter.com/dvlc_ GitHub: https://github.com/danielsoro LinkedIn: http://www.linkedin.com/in/danielvlcunha _______________________________________________ forge-dev mailing list https://lists.jboss.org/mailman/listinfo/forge-dev > _______________________________________________ forge-dev mailing list https://lists.jboss.org/mailman/listinfo/forge-dev -- Lincoln Baxter, III "Simpler is better." - 
            
                            
            att1.html.zip 6.3 KB
 
- 
            
                            
            
 
     
    