You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(178) |
Feb
(169) |
Mar
(286) |
Apr
(117) |
May
(98) |
Jun
(68) |
Jul
(63) |
Aug
(121) |
Sep
(88) |
Oct
(124) |
Nov
(2) |
Dec
(111) |
2007 |
Jan
(224) |
Feb
(69) |
Mar
(10) |
Apr
(72) |
May
(7) |
Jun
(21) |
Jul
(33) |
Aug
(35) |
Sep
(12) |
Oct
(22) |
Nov
(5) |
Dec
(6) |
2008 |
Jan
(2) |
Feb
(10) |
Mar
(39) |
Apr
(58) |
May
(34) |
Jun
(9) |
Jul
(27) |
Aug
(10) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:12
|
User: vancek Date: 07/01/19 06:33:13 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test - New directory |
From: Vance K. <va...@us...> - 2007-01-19 14:33:12
|
User: vancek Date: 07/01/19 06:33:13 cartridges/andromda-ejb3/conf/howto - New directory |
From: Vance K. <va...@us...> - 2007-01-19 14:33:12
|
User: vancek Date: 07/01/19 06:33:13 cartridges/andromda-ejb3/src/site/resources/howto - New directory |
From: Vance K. <va...@us...> - 2007-01-19 14:33:12
|
User: vancek Date: 07/01/19 06:33:13 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda - New directory |
From: Vance K. <va...@us...> - 2007-01-19 14:33:12
|
User: vancek Date: 07/01/19 06:33:13 cartridges/andromda-ejb3/src/site/resources/howto/org - New directory |
From: Vance K. <va...@us...> - 2007-01-19 14:28:59
|
User: vancek Date: 07/01/19 06:28:35 Modified: profiles/uml-1.4/seam/src/main/uml andromda-profile-seam.xml.zip Log: fix spelling mistakes Revision Changes Path 1.4 +76 -57 plugins/profiles/uml-1.4/seam/src/main/uml/andromda-profile-seam.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2007-01-19 13:17:01
|
User: vancek Date: 07/01/19 05:16:59 Modified: andromda-ejb3/src/site/axdoc samples.xml howto.xml howto21.xml installation.xml project.xml Log: update docs with latest jboss/seam Revision Changes Path 1.2 +34 -0 cartridges/andromda-ejb3/src/site/axdoc/samples.xml Index: samples.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/axdoc/samples.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- samples.xml 6 Oct 2006 06:49:58 -0000 1.1 +++ samples.xml 19 Jan 2007 13:16:57 -0000 1.2 @@ -8,10 +8,12 @@ <section name="Samples"> <p> To help understand the EJB3 cartridge, the following sample applications have been provided. + All these samples are located in the <i>andromda-plugins</i> project on SF.net. </p> <p> <ul> <li><a href="samples.html#Samples_Demo_EJB3">Demo EJB3</a></li> + <li><a href="samples.html#Seam_Booking">Seam Booking Example</a></li> </ul> </p> <a name="Samples_Demo_EJB3"/> @@ -46,6 +48,38 @@ the functionality in each demo sub-package. </p> </subsection> + <a name="Seam_Booking"/> + <subsection name="Seam Booking Example"> + <p> + This sample application is located in the <code>samples/booking-seam</code> directory of the + <code>andromda-plugins</code> project on SourceForge.net. + </p> + <p> + The project has the same structure as described in + <a href="http://galaxy.andromda.org/docs/samples.html">AndroMDA Samples</a>. + </p> + <p> + This booking system tries to replicate the JBoss Booking System (available from JBoss) + to illustrate the JBoss Seam features. It also relies on the EJB3 cartridge. + It is built for the MySQL database engine using JBoss 4.0.5 GA or newer. + </p> + <p> + Simply build the demo by executing <code>mvn</code> in the root of the project directory. + </p> + <p> + Once you have build the sample, you need to create the database called <code>booking-seam</code>. + You can then deploy the following to JBoss. + <ul> + <li>booking-seam/app/target/booking-seam-ds.xml</li> + <li>booking-seam/app/target/booking-seam-1.0-SNAPSHOT.ear</li> + </ul> + </p> + <p> + This example does not contain any view components at this time. As JBoss Seam funtionality + improves, this project will serve as a complete example for both EJB 3.0 Seam components and + JSF with Facelets view components. + </p> + </subsection> </section> </body> </document> 1.3 +2 -6 cartridges/andromda-ejb3/src/site/axdoc/howto.xml Index: howto.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/axdoc/howto.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- howto.xml 6 Oct 2006 02:06:31 -0000 1.2 +++ howto.xml 19 Jan 2007 13:16:58 -0000 1.3 @@ -29,7 +29,7 @@ <li><a href="installation.html#Requirements">Requirements</a></li> <li><a href="installation.html#Getting_the_Cartridge">Getting the Cartridge</a></li> <li><a href="installation.html#Building_the_Cartridge">Building the Cartridge</a></li> - <li><a href="installation.html#Building_Reports">Building Reports</a></li> + <li><a href="installation.html#Building_Documentation">Building Documentation</a></li> </ul> </li> <li> @@ -230,11 +230,7 @@ </ul> </p> <p> - You can download the UML model containing all models for all sections - <a href="HowToModel.xmi">here</a>. - </p> - <p> - In order to start the tutorial click <a href="installation.html">here</a>. + To learn how to install the EJB3 cartridge click <a href="installation.html">here</a>. </p> </section> </body> 1.4 +238 -113 cartridges/andromda-ejb3/src/site/axdoc/howto21.xml Index: howto21.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/axdoc/howto21.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- howto21.xml 17 Jan 2007 00:50:57 -0000 1.3 +++ howto21.xml 19 Jan 2007 13:16:58 -0000 1.4 @@ -8,10 +8,16 @@ <section name="JBoss Seam Integration"> <p> The EJB3 cartridge now has the ability to enable your EJB 3.0 components as Seam components. - This latest addition is work in progress. + The JBoss Online Booking example tries to illustrate how you can use the EJB3 cartridge with + Seam enabled features. + </p> + <p class="highlight"> + Please note that the EJB3 cartridge will NOT generate any view components. A Seam cartridge is + planned which will do this job and can be used with the EJB3 cartridge. </p> <p> - Here is the initial roadmap for JBoss Seam integration from the forum. + This howto will presume you have an understanding of the JBoss Seam framework. Read about + <a href="http://labs.jboss.com/jbossseam">JBoss Seam</a> and try out the examples. </p> <p class="highlight"> Remember: You must set the @@ -20,162 +26,281 @@ namespace properties such that Seam specific project settings are generated and Hibernate validator specific annotations are generated. </p> - <a name="Seam_Roadmap"/> - <subsection name="Seam Roadmap"> + <a name="Seam_Version"/> + <subsection name="Seam Version"> <p> - 1. Have a new profile called andromda-profile-seam, as part of the andromdaplugins project - containing all stereotypes and tagged values pertaining to seam components. Projects need to download - and build the artifact and manually load the profile module within their UML model. + The cartridge will generate the Seam components using <b>JBoss Seam 1.1.0-GA</b>. Read + the <a href="http://labs.jboss.com/portal/jbossseam/gettingstarted">JBoss Seam Getting Started</a> + guide to learn how to download and setup your Seam environment, plus play around with the examples. </p> + </subsection> + <a name="Project_Generator"/> + <subsection name="Project Generator"> <p> - 2. Every entity or session bean which is to be modelled as a Seam component should have an - extra <![CDATA[<<Seam>>]]> stereotype. + The AndroMDApp project generator from <code>3.3-SNAPSHOT</code> in CVS onwards supports JBoss Seam + for EJB3 and JSF for web project only. As long as you select these components, all the necessary + JBoss Seam properties will be enabled in your project. </p> <p> - 3. #2 will render the @Name stereotype with the value taken as the class name. Should - provide <code>@andromda.seam.component.name</code> tagged value to override this. + Once you run the project generator + <i>mvn org.andromda.maven.plugins:andromdapp-maven-plugin:generate</i>, you must select + EJB 3.0 as the persistence framework and JSF as the web framework. You will then be prompted + to enable JBoss Seams. </p> + </subsection> + <a name="Seam_Profile"/> + <subsection name="Seam Profile"> <p> - 4. Provide <code>@andromda.seam.component.scope</code> with enumerated values to set the scope if - required, otherwise use defaults. + There exists a separate Seam profile that needs to be imported into your project UML. This profile + contains the Seam specific tags and stereotypes you need to model on your components. </p> <p> - 5. @NotNull on getters is rendered based on attribute multiplicity. + You can + get this profile by if you have checked out the latest <i>andromda-plugins</i> project from + <b>HEAD</b> (follow <a href="installation.html">Installation</a>) and build the + <b>Profiles</b> project. Once this is done, the profile will be copied to your M2 repository + under <i>M2_REPO/org/andromda/profiles/uml14/andromda-profile-seam/VERSION/</i>. + You can then import this <i>andromda-profile-seam-VERSION.zml.zip</i> profile into your + model to utilise the Seam components. </p> + </subsection> + <a name="Seam_Quick_Start_Guide"/> + <subsection name="Seam Quick Start Guide"> <p> - 6. @Length annotation's max property is taken from - <code>@andromda.persistence.column.length</code> tagged value. To specify a min - length, set the tagged value to x,y where x is min, y is max. - Need to account for this in the facade logic impl. + Because we are not going to replace the existing JBoss tutorials here, it is assumed you have + followed the links above to understand the Seams framework and where you need the appropriate + annotation or metadata. The following sections will briefly explain the more common Seam + stereotypes and tagged values and you can always find more documentation on these within + the <i>andromda-profile-seam</i>. </p> + </subsection> + <subsection name="Seam Component"> <p> - 7. @In and @Out annotations for bijection are rendered on attributes defined on - session bean class where <![CDATA[<<In>>]]> and <![CDATA[<<Out>>]]> stereotypes are - modelled respectively. If attribute multiplicity is 0, 0..1, 0..*, define - require property in both annotations. If attribute multiplicity is 1, 1..* - define create property on @In. + Every entity or session bean which is to be modelled as a Seam component must have an + extra <![CDATA[<<Seam>>]]> stereotype, along with the <![CDATA[<<Entity>>]]> stereotype. </p> + </subsection> + <subsection name="Component Name"> <p> - 8. @Create annotation rendered on session bean operation if a - <![CDATA[<<Create>>]]> stereotype is modelled on it. + If you render the <![CDATA[<<Seam>>]]> stereotype, the <![CDATA[@Name]]> annotation will be + generated with the value being the class name. You can override this by modelling the + <![CDATA[@andromda.seam.component.name]]> tagged value. </p> + </subsection> + <subsection name="Component Scope"> <p> - 9. @Destroy annotation is rendered on a session bean operation if a - <![CDATA[<<Destroy>>]]> stereotype is modelled on it. + The <![CDATA[@andromda.seam.component.scope]]> tagged value on Seam component classes provides + enumerated values to set the scope of the component. The default scope depends on the component + type. </p> <p> - 10. Provide tag <code>@andromda.seam.validation.invalid.outcome</code> with enumerated - list of values to be set on session bean operations (to render @IfInvalid) such that - Hibernate Validator can validate component state before invoking action listener - session bean operation (for components with @Valid annotations). - <code>@andromda.seam.validation.invalid.refreshEntities</code> can be set to true or - false and if defined, adds the refreshEntities property to the annotation. + If you have modelled roles for the component, then you can use the + <![CDATA[@andromda.seam.component.role.scope]]> tagged value where the list of scopes must be + in the same order as the role names. </p> + </subsection> + <subsection name="Logger"> <p> - 11. <![CDATA[<<Valid>>]]> stereotype can be modelled on session bean attributes - to render @Valid annotation for validation (see #10). + To make use of the JBoss Seam logger, you can model a component attribute of <i>Object</i> + type with stereotype <![CDATA[<<Logger>>]]>. You can further specify the name of the log + category with <![CDATA[@andromda.seam.bijection.logger.value]]> tagged value. </p> + </subsection> + <subsection name="Bijection"> <p> - 12. Modify andromdapp project generator to ask a further question: - Would you like to use the JBoss Seam application framework? - Only if persistence engine is ejb3, a web interface is required and interface type - is JSF. This will add the jboss-seam artifact as dependency to necessary poms - and include it in the ear for deployment. Perhaps include a property called - seamEnabled in the andromda.xml application descriptor in the default namespace. + The <![CDATA[@In]]> and <![CDATA[@Out]]> annotations for bijection are rendered on attributes + defined on session bean class where <![CDATA[<<In>>]]> and <![CDATA[<<Out>>]]> stereotypes are + modelled respectively. </p> <p> - 13. If seamEnabled (# 12), ejb-jar.xml contains necessary interceptor binding - and application.xml contains the jboss-seam.jar java module definition. + If attribute multiplicity is 0, 0..1, 0..*, the + <i>require</i> property is defined in both annotations. </p> <p> - 14. As soon as you introduce session bean attributes, the cartridge assumes - the bean is a stateful session bean. One solution would be to remove this - default so that the only way to specify a session bean as a sfsb - is via tagged value <code>@andromda.service.type</code>. + If attribute multiplicity is 1, 1..* + the <i>create</i> property is defined on the <![CDATA[@In]]> annotation. You can explicity + specify this using the <![CDATA[@andromda.seam.bijection.in.create]]> tagged value. </p> <p> - 15. Stereotype <![CDATA[<<DataModel>>]]> can be modelled on attributes - (of type java.util.List - but I don't think this can be enforced). - This will render @DataModel on the attribute. An optional tagged value - <code>@andromda.seam.datatable.datamodel.name</code> can be modelled on such - attributes to defined the context variable name if more than 1 datamodel exists. + To explicity specify the name of the context variable for the <![CDATA[@In]]> annotation, + model the <![CDATA[@andromda.seam.bijection.in.value]]> tagged value. This can also be used + to specify the JSF EL expression. If not specified, the name will default to the component + attribute. The <![CDATA[@andromda.seam.bijection.out.value]]> tagged value can be used for + the <![CDATA[@Out]]> annotation. </p> + </subsection> + <subsection name="Creating Seam Component"> <p> - 16. Stereotype <![CDATA[<<DataModelSelection>>]]> can be modelled on attributes - to inject the selected value from the DataModel into this attribute. This - will render @DataModelSelection on the attribute. An optional tagged value - <code>@andromda.seam.datatable.datamodel.selection.name</code> can define the - name of the context variable defined by the appropriate @DataModel. + The <![CDATA[@Create]]> annotation is rendered on session bean operations if a + <![CDATA[<<Create>>]]> stereotype is modelled on this method, indicating that the method + should be called when an instance of the component is instantiated by Seam. </p> + </subsection> + <subsection name="Destruction of Context Variables"> <p> - 17. Stereotype <![CDATA[<<Factory>>]]> can be modelled on session bean - component operations with <code>@andromda.seam.component.factory.context.name</code> - which is modelled on the operation to set the context variable name. + The <![CDATA[@Destroy]]> annotation is rendered on a session bean operation if a + <![CDATA[<<Destroy>>]]> stereotype is modelled on it. Otherwise, by default, + a <b>Destroy</b> method is generated with this annotation. </p> + </subsection> + <subsection name="Not Null Validation"> <p> - 18. Stereotype <![CDATA[<<RequestParameter>>]]> can be modelled on session bean - component attribute to indicate an attribute is to be injected with the value - of a request parameter. Optional tagged value - <![CDATA[@andromda.seam.component.requestParameter.name]]> will define the - request parameter name. + The <![CDATA[@NotNull]]> annotation will be rendered on getters based on attribute multiplicity. </p> + </subsection> + <subsection name="Length Validation"> <p> - 19. Tagged value <code>@andromda.seam.transaction.rollback.outcome</code> on session - bean component operation, can have multiple values to indicate that transaction - set for rollback on the specified outcomes. + The <![CDATA[@Length]]> annotation's max property is taken from + <![CDATA[@andromda.persistence.column.length]]> tagged value. It is planned to specify a min + length, set via the same tagged value with format x,y where x is min, y is max. + This has currently not been implemented. </p> + </subsection> + <subsection name="Component Validation"> <p> - 20. Not sure if we really need to touch the Java cartridge. If we can add a new - stereotype to define a class/metafacade as a JavaBean in the EJB3 cartridge - and apply the Seam component model to it, it would avoid bloating the 'simple' Java cartridge. + The <![CDATA[<<Valid>>]]> stereotype can be modelled on session bean component attributes + to render the <![CDATA[@Valid]]> annotation for Hibernate Validator to recursively + validate this and related objects. </p> <p> - 21. Tagged value <code>@andromda.seam.component.conversational.ifNotBegunOutcome</code> - if set will render the ifNotBegunOutcome property of the @Conversational annotation - to indicate the JSF outcome for the action if no long-running conversation is - active when the component is invoked. + The <![CDATA[<<Validator>>]]> stereotype can be modelled on Seam component operations indicating + the validator must validate the component before invoking the method. </p> <p> - 22. Stereotype <![CDATA[<<Begin>>]]> can be modelled on session bean component operations - to indicate a long-running conversation started, which will render a @Begin annotation - on the operation. Should define extra tagged values for ifOutcome, join, nested and - pageflow properties of @Begin annotation. + This component operation can now model the + <![CDATA[@andromda.seam.validation.outcome]]> tagged value to indicate the JSF outcome when + validation fails. </p> <p> - 23. Stereotype <![CDATA[<<End>>]]> can be modelled on session bean component operations - to indicate the end of a long running conversation. Define tagged values for ifOutcome - and evenIfException properties. + The <![CDATA[@andromda.seam.validation.refreshEntities]]> tagged value can also optionally be + modelled with values 'true' or + 'false' and if defined, adds the <i>efreshEntities</i> property to the annotation. This will + indicate any invalid entity in the managed state be refreshed from the database when + validation fails. This is used in conjuction with extended persistence context. </p> + </subsection> + <subsection name="Stateful Session Bean Components"> + <p> + As soon as you introduce session bean attributes, the cartridge defines + the bean as a stateful session bean only if none of the attributes are modelled with Seam related + stereotypes or tagged values. If you have only Seam component attributes in the session bean + (which by the way, is a Seam component), the bean is not defined as a SFSB. If you wish + to explicity define this bean as a SFSB you can do this via the tagged value + <![CDATA[@andromda.service.type]]>. + </p> + </subsection> + <subsection name="Data Model"> <p> - 24. Define similar stereotypes/tags for jBPM tasks/processes. + The <![CDATA[<<DataModel>>]]> stereotype can be modelled on component attributes + of type List, Map, Set or Object[]. + This will render <![CDATA[@DataModel]]> on the attribute. </p> <p> - 25. Stereotype <![CDATA[<<Unwrap>>]]> modelled on attributes but is rendered - on getter method of beans. + An optional tagged value + <![CDATA[@andromda.seam.data.datamodel.value]]> can be modelled on such + attributes to defined the context variable name if more than one datamodel exists. </p> <p> - 26. Everything needs to have XDOC documentation. + The exposed attribute will have the scope of the owning component, or the <b>EVENT</b> + scope if the owning component itself has a <b>STATELESS</b> scope. You can optinally + explicity define the scope using <![CDATA[@andromda.seam.data.datamodel.scope]]> tagged value. </p> </subsection> - <a name="Project_Generator"/> - <subsection name="Project Generator"> + <subsection name="Data Model Selection"> <p> - The AndroMDApp project generator from <code>3.2-SNAPSHOT</code> in CVS onwards supports JBoss Seam - for EJB3 and JSF for web project only. As long as you select these components, all the necessary - JBoss Seam properties will be enabled in your project. + The <![CDATA[<<DataModelSelection>>]]> stereotype can be modelled on component attributes + to inject the selected value from the <b>DataModel</b> into the attribute. The JSF + DataModel is the underlying colleciton or map value. This + will render <![CDATA[@DataModelSelection]]> on the attribute. + </p> + <p> + An optional tagged value + <![CDATA[@andromda.seam.data.datamodelselection.value]]> can define the + name of the context variable specified by the appropriate <![CDATA[@DataModel]]>. + This tagged value is + not needed is there is only one <![CDATA[@DataModel]]> element in the Seam component. </p> </subsection> - <a name="Seam_Profile"/> - <subsection name="EJB3 Seam Profile"> + <subsection name="Initializing Context Variable"> <p> - There exists a separate Seam profile that needs to be imported into your project. This profile - contains the Seam specific tags and stereotypes you need to model on your components. You can - get this profile by if you have checked out the latest <i>andromda-plugins</i> project from - <b>HEAD</b> (follow <a href="installation.html">Installation</a>) and build the - <b>Profiles</b> project. Once this is done, the profile will be copied to your M2 repository - under <i>M2_REPO/org/andromda/plugins/profiles/uml14/andromda-plugins-profile-seam/VERSION/</i>. - You can then import this <i>andromda-plugins-profile-seam-VERSION.zml.zip</i> profile into your - model to utilise the Seam components. + The <![CDATA[<<Factory>>]]> stereotype can be modelled on session bean + component operations with the optional <![CDATA[@andromda.seam.bijection.factory.value]]> + tagged value which can be modelled on the operation to set the context variable name. + If this tagged value is NOT set, the default value is the property name. You can optionally + explicity specify the scope of the context variable by using the + <![CDATA[@andromda.seam.bijection.factory.scope]]> tagged value. + </p> + </subsection> + <subsection name="Request Parameters"> + <p> + The <![CDATA[<<RequestParameter>>]]> stereotype can be modelled on session bean + component attributes to indicate an attribute is to be injected with the value + of a request parameter. + </p> + <p> + The optional tagged value + <![CDATA[@andromda.seam.component.requestparameter.value]]> will define the + request parameter name. If this is NOT set, the name will default to the name of the + component attribute. + </p> + </subsection> + <subsection name="Transaction Rollback"> + <p> + You can model the <![CDATA[<<Rollback>>]]> stereotype on component method, which will + set the transaction to rollback when the method completes, if the outcome of the method + matches any of the listed outcomes or when no outcomes are listed. You set the list + of outcomes using the following tagged value. + </p> + <p> + The tagged value <![CDATA[@andromda.seam.transaction.rollback.ifoutcome]]> which can be set + on bean component operations that have the <![CDATA[<<Rollback>>]]> stereotype, + can have multiple values to indicate the list of outcomes that trigger a rollback. + </p> + </subsection> + <subsection name="Action Outcome in Absence of a Conversation"> + <p> + The tagged value <![CDATA[@andromda.seam.component.conversational.ifnotbegunoutcome]]> + an be set to render the <b>ifNotBegunOutcome</b> property on the <![CDATA[@Conversational]]> + annotation to indicate the JSF outcome for the action, if no long-running conversation is + active when the component is invoked. + </p> + </subsection> + <subsection name="Beginging a Conversation"> + <p> + The<![CDATA[<<Begin>>]]> stereotype can be modelled on Seam bean component operations + to indicate a long-running conversation has started. This will render a <![CDATA[@Begin]]> + annotation on the operation. The following tagged values can be defined within the context of this + component: + <ul> + <li><![CDATA[@andromda.seam.conversation.begin.flushmode]]></li> + <li><![CDATA[@andromda.seam.conversation.begin.ifoutcome]]> - Can have multiple values</li> + <li><![CDATA[@andromda.seam.conversation.begin.join]]></li> + <li><![CDATA[@andromda.seam.conversation.begin.nested]]></li> + <li><![CDATA[@andromda.seam.conversation.begin.pageflow]]></li> + </ul> + </p> + </subsection> + <subsection name="Ending a Conversation"> + <p> + The <![CDATA[<<End>>]]> stereotype can be modelled on Seam bean component operations + to indicate the end of a long running conversation. The following tagged values can be + defined within the context of this component: + <ul> + <li><![CDATA[@andromda.seam.conversation.end.ifoutcome]]> - can have multiple values</li> + <li><![CDATA[@andromda.seam.conversation.end.evenifexception]]></li> + <li><![CDATA[@andromda.seam.conversation.end.beforeredirect]]></li> + </ul> + </p> + </subsection> + <subsection name="jBPM Tasks and Processes"> + <p> + Refer to seam profile for docs on stereotypes/tags for jBPM tasks/processes. + </p> + </subsection> + <subsection name="Unwrap Stereotype"> + <p> + The stereotype <![CDATA[<<Unwrap>>]]> can be modelled on attributes but is rendered + on getter method of bean components. </p> </subsection> </section> 1.2 +31 -21 cartridges/andromda-ejb3/src/site/axdoc/installation.xml Index: installation.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/axdoc/installation.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- installation.xml 14 Sep 2006 14:31:26 -0000 1.1 +++ installation.xml 19 Jan 2007 13:16:59 -0000 1.2 @@ -18,17 +18,20 @@ You can install Maven <a href="http://maven.apache.org/download.html#Installation">here</a>. </p> - <p class="highlight"> - If you want to build the site docs, you need to download the latest Maven 2.0.x source - from https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x and follow - the instructions to build, assemble and set your M2_HOME and PATH variables. - </p> <p> - You need to have an instance of AndroMDA 3.2. At the time of writing this, 3.2 RC1 - was released but the latest 3.2-SNAPSHOT from CVS contains updates to the project generator - and site plugin; this is more suitable to use with the EJB3 cartridge. Follow the anonymous + You need to have an instance of AndroMDA 3.3-SNAPSHOT. At the time of writing this, 3.2 + was released but the latest 3.3-SNAPSHOT from CVS contains updates to the project generator + and site plugin; this is more suitable for use with the EJB3 cartridge. Follow the anonymous CVS access at <a href="http://sourceforge.net/cvs/?group_id=73047">AndroMDA project</a> to - checkout and build the latest <b>andromda-all</b> source. + checkout and build the latest <b>andromda-all</b> source from the <i>V3_x_HEAD</i> branch. + </p> + <p> + Finally, you will need the JBoss Application Server. It is recommended to download the + latest GA JBoss AS. At the time of writing this guide and with the current status of the + EJB3 cartridge, it is recommended to download JBoss AS 4.0.5-GA using the JEMS installer + (at least 1.2.0.GA) and install with the <i>ejb3</i> profile. Read up more about + the <a href="http://labs.jboss.com/portal/jbossas/?prjlist=false">JBoss AS</a> and download + the installer. </p> </subsection> <a name="Getting_the_Cartridge"/> @@ -64,16 +67,26 @@ by running <i>mvn</i> in the latter location. </p> </subsection> - <a name="Building_Reports"/> - <subsection name="Building Reports"> + <a name="Building_Documentation"/> + <subsection name="Building Documentation"> + <p class="highlight"> + You NO LONGER need to download the Maven 2.0.x source to build the cartridge + documentation. + </p> <p> To build the EJB3 cartridge site documentation requires a few extra Maven 2 plugins - to be downloaded from the Maven 2 sandbox in SVN. The + to be downloaded from the Maven 2 SVN. The <a href="http://maven.apache.org/guides/development/guide-building-m2.html">Maven build</a> documentation will give you some information on how to access their SVN. </p> <p> - You will need to check out the following plugins from Maven <b>sandbox</b>. + Please follow <a href="http://galaxy.andromda.org/forum/viewtopic.php?t=3976">Maven 2 site Docs</a> + to download and build the necessary Maven 2 projects prior to building the EJB3 cartridge site + docs. + </p> + <p> + You will need to check out <i>maven-plugins</i> from Maven <b>trunk</b>. You only required + the following plugins, so you can disable the other modules if you wish. <ul> <li>maven-changes-plugin</li> <li>maven-changelog-plugin</li> @@ -81,21 +94,18 @@ Once you have built them (mvn install), these plugins will reside in your local repo. </p> <p> - In adopting the existing AndroMDA site format for the documentation, the Maven Doxia - plugin needs a patch to be applied. You can check out <b>doxia-1.0-alpha-8</b> - from Maven SVN and apply the patch <a href="http://jira.codehaus.org/browse/MNG-545">here</a>. - It is not critical to apply this patch, but if it's not applied, the generated XHTML will - not be formated correctly but still acceptable. - </p> - <p> All other require plugins will be downloaded to your local repo if they don't already exist. </p> <p> You can download the source examples used in the howto for all sections - <a href="HowToModel-src.zip">here</a> and extract to the target/site folder of the + <a href="howto/HowToModel-src.zip">here</a> and extract to the target/site folder of the andromda-ejb3 plugin. </p> + <p> + You can download the UML model containing all models for all sections + <a href="howto/HowToModel.xml.zip">here</a>. + </p> </subsection> </section> <section name="Next"> 1.2 +1 -1 cartridges/andromda-ejb3/src/site/axdoc/project.xml Index: project.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/axdoc/project.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- project.xml 14 Sep 2006 14:31:27 -0000 1.1 +++ project.xml 19 Jan 2007 13:16:59 -0000 1.2 @@ -15,7 +15,7 @@ Using the AndroMDApp generator, simply run the following command </p> <p> - <code>mvn andromdapp:generate</code> + <code>mvn org.andromda.maven.plugins:andromdapp-maven-plugin:generate</code> </p> <p> And follow the process. The following diagram illustrates how to generate a template |
From: Vance K. <va...@us...> - 2007-01-19 13:13:50
|
User: vancek Date: 07/01/19 05:13:47 Modified: andromda-ejb3/src/main/resources/META-INF/andromda profile.xml Log: fix spelling mistake Revision Changes Path 1.34 +1 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml Index: profile.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml,v retrieving revision 1.33 retrieving revision 1.34 diff -u -w -r1.33 -r1.34 --- profile.xml 17 Jan 2007 00:50:56 -0000 1.33 +++ profile.xml 19 Jan 2007 13:13:46 -0000 1.34 @@ -1871,7 +1871,7 @@ Specifies the name of the log category. Default to the name of the component class. </documentation> - <value>@andromda.seam.bjjection.logger.value</value> + <value>@andromda.seam.bijection.logger.value</value> <appliedOnElement>Entity, Session and Java Beans</appliedOnElement> </element> <element name="SEAM_BIJECTION_REQUEST_PARAMETER_VALUE"> |
From: Chad B. <cha...@gm...> - 2007-01-18 14:47:26
|
Walter, Please add comments for any commits you do, otherwise its hard to figure out what you're doing without looking at the entire commit. Walter Mourao wrote: > User: walterim > Date: 07/01/18 02:11:10 > > Modified: andromda-jsf2/src/main/resources/templates/jsf2/views > renderActionFormInput.vm > andromda-jsf2/src/main/resources/templates/jsf2/flow/crud > ViewPopulator.java.vsl > andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/layout > layout.xhtml.vsl > andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/crud > view.xhtml.vsl > andromda-jsf2/src/main/resources/templates/jsf2/forms/crud > SearchForm.java.vsl Form.java.vsl > andromda-jsf2/src/main/resources/templates/jsf2/configuration > web.xml.vsl > andromda-jsf2/src/main/resources/templates/jsf2/controllers/crud > Controller.java.vsl > Log: > > > Revision Changes Path > 1.3 +2 -1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/renderActionFormInput.vm > > Index: renderActionFormInput.vm > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/renderActionFormInput.vm,v > retrieving revision 1.2 > retrieving revision 1.3 > diff -u -w -r1.2 -r1.3 > --- renderActionFormInput.vm 11 Dec 2006 13:44:00 -0000 1.2 > +++ renderActionFormInput.vm 18 Jan 2007 10:11:07 -0000 1.3 > @@ -32,7 +32,7 @@ > #end > #elseif ($parameter.inputCheckbox) > <tr:selectBooleanCheckbox id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="$parameter.required" readOnly="$parameter.readOnly"/> > -#elseif ($parameter.inputSelect || $parameter.type.enumeration) > +#elseif ($parameter.inputSelect) > #set ($multiSelect = $parameter.type.collectionType || $parameter.type.arrayType) > #set ($selectBoxType = "selectOneChoice") > #if ($multiSelect) > @@ -74,6 +74,7 @@ > #set ($selectBoxType = "selectManyListbox") > #end > <tr:$selectBoxType id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="$parameter.required" readOnly="$parameter.readOnly"#if ($multiSelect) size="$defaultMultiSelectSize"#else unselectedLabel=""#end> > + <f:converter converterId="${parameter.type.fullyQualifiedName}"/> > #foreach ($literal in $field.type.literals) > #if ($literal.type.stringType)#set ($quote = '')#else#set ($quote = '"')#end > #set($literalKey = $literal.name) > > > > 1.3 +1 -1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/flow/crud/ViewPopulator.java.vsl > > Index: ViewPopulator.java.vsl > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/flow/crud/ViewPopulator.java.vsl,v > retrieving revision 1.2 > retrieving revision 1.3 > diff -u -w -r1.2 -r1.3 > --- ViewPopulator.java.vsl 11 Jan 2007 17:35:53 -0000 1.2 > +++ ViewPopulator.java.vsl 18 Jan 2007 10:11:07 -0000 1.3 > @@ -89,7 +89,7 @@ > facesContext, > "$manageable.formBeanName"); > // - populate the $manageable.formBeanName with any parameters from the previous form > - ${managedBeansPackage}.${formPopulatorName}.populateForm(form, $manageable.formBeanName); > + ${manageable.formBeanName}.copyFrom((${manageable.formBeanType})form); > } > #if ($formSerialization) > // - serialize the form > > > > 1.4 +5 -5 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/layout/layout.xhtml.vsl > > Index: layout.xhtml.vsl > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/layout/layout.xhtml.vsl,v > retrieving revision 1.3 > retrieving revision 1.4 > diff -u -w -r1.3 -r1.4 > --- layout.xhtml.vsl 30 Dec 2006 20:10:22 -0000 1.3 > +++ layout.xhtml.vsl 18 Jan 2007 10:11:07 -0000 1.4 > @@ -36,21 +36,21 @@ > <f:facet name="navigation1"> > <tr:navigationPane hint="tabs" level="0" var="item" value="#{menuModel.model}"> > <f:facet name="nodeStamp"> > - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> > + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> > </f:facet> > </tr:navigationPane> > </f:facet> > <f:facet name="navigation2"> > <tr:navigationPane hint="bar" level="1" var="item" value="#{menuModel.model}"> > <f:facet name="nodeStamp"> > - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> > + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> > </f:facet> > </tr:navigationPane> > </f:facet> > <f:facet name="navigation3"> > <tr:navigationPane hint="list" level="2" var="item" value="#{menuModel.model}"> > <f:facet name="nodeStamp"> > - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> > + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> > </f:facet> > </tr:navigationPane> > </f:facet> > @@ -59,7 +59,7 @@ > <f:facet name="navigation3"> > <tr:navigationTree var="item" value="#{menuModel.model}"> > <f:facet name="nodeStamp"> > - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> > + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> > </f:facet> > </tr:navigationTree> > </f:facet> > @@ -77,7 +77,7 @@ > <f:facet name="location"> > <tr:breadCrumbs var="item" value="#{menuModel.model}"> > <f:facet name="nodeStamp"> > - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> > + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> > </f:facet> > </tr:breadCrumbs> > </f:facet> > > > > 1.4 +1 -0 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/crud/view.xhtml.vsl > > Index: view.xhtml.vsl > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/crud/view.xhtml.vsl,v > retrieving revision 1.3 > retrieving revision 1.4 > diff -u -w -r1.3 -r1.4 > --- view.xhtml.vsl 11 Jan 2007 17:35:53 -0000 1.3 > +++ view.xhtml.vsl 18 Jan 2007 10:11:08 -0000 1.4 > @@ -52,6 +52,7 @@ > #set ($selectBoxType = "selectManyListbox") > #end > <tr:$selectBoxType id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="false" readOnly="false"#if ($multiSelect) size="$defaultMultiSelectSize"#else unselectedLabel=""#end> > + <f:converter converterId="${field.type.fullyQualifiedName}"/> > #foreach ($literal in $field.type.literals) > #if ($literal.type.stringType)#set ($quote = '')#else#set ($quote = '"')#end > #set($literalKey = $literal.name) > > > > 1.2 +22 -26 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/SearchForm.java.vsl > > Index: SearchForm.java.vsl > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/SearchForm.java.vsl,v > retrieving revision 1.1 > retrieving revision 1.2 > diff -u -w -r1.1 -r1.2 > --- SearchForm.java.vsl 11 Dec 2006 13:44:00 -0000 1.1 > +++ SearchForm.java.vsl 18 Jan 2007 10:11:08 -0000 1.2 > @@ -23,19 +23,6 @@ > implements java.io.Serializable > { > > - public ${manageable.searchFormBeanClassName}(${manageable.formBeanClassName} parent){ > -#foreach ($field in $manageable.manageableSearchAttributes) > -#if ($field.type.dateType) > - java.text.DateFormat ${field.dateFormatter} = new java.text.SimpleDateFormat("$field.format"); > -#set ($lenient = !$field.strictDateFormat) > - ${field.dateFormatter}.setLenient($lenient); > - parent.getDateTimeFormatters().put("search.${field.name}", ${field.dateFormatter}); > -#elseif ($field.type.timeType) > - parent.getDateTimeFormatters().put("search.${field.name}", new java.text.SimpleDateFormat("$field.format")); > -#end > -#end > - } > - > #foreach ($field in $manageable.manageableSearchAttributes) > #if ($field.type.collectionType) > #set ($fieldTypeName = "java.util.List") > @@ -92,23 +79,32 @@ > this.$member.name = $member.name; > } > > -#end > - /** > - * Stores any date or time formatters for this form. > - */ > - private final java.util.Map dateTimeFormatters = new java.util.HashMap(); > + private java.util.Collection $member.backingListName; > > - /** > - * Gets any date and time formatters (keyed by property name) > - * for this form. > - * > - * @return the Map containing any date and time formatters. > - */ > - public java.util.Map getDateTimeFormatters() > +#set ($backingListMethod = $stringUtils.capitalize($member.backingListName)) > + public java.util.Collection get${backingListMethod}(){ > + return ${member.backingListName}; > + } > + > + public void set${backingListMethod}(java.util.Collection ${member.backingListName}){ > + this.${member.backingListName} = ${member.backingListName}; > + } > + > + private ${member.type.searchFormBeanType} ${member.name}SearchForm = null;##não pode inicializar direto senão dá loop > + > + $member.visibility ${member.type.searchFormBeanType} ${member.getterName}SearchForm() > { > - return this.dateTimeFormatters; > + if(this.${member.name}SearchForm == null) > + this.${member.name}SearchForm = new ${member.type.searchFormBeanType}(); > + return this.${member.name}SearchForm; > } > > + $member.visibility void ${member.setterName}SearchForm(${member.type.searchFormBeanType} ${member.name}SearchForm) > + { > + this.${member.name}SearchForm = ${member.name}SearchForm; > + } > +#end > + > /** > * The serial version UID of this class. Needed for serialization. > */ > > > > 1.2 +60 -3 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/Form.java.vsl > > Index: Form.java.vsl > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/Form.java.vsl,v > retrieving revision 1.1 > retrieving revision 1.2 > diff -u -w -r1.1 -r1.2 > --- Form.java.vsl 11 Dec 2006 13:44:00 -0000 1.1 > +++ Form.java.vsl 18 Jan 2007 10:11:08 -0000 1.2 > @@ -30,16 +30,18 @@ > #set ($lenient = !$field.strictDateFormat) > ${field.dateFormatter}.setLenient($lenient); > this.dateTimeFormatters.put("${field.name}", ${field.dateFormatter}); > + this.dateTimeFormatters.put("searchForm.${field.name}", ${field.dateFormatter}); > #elseif ($field.type.timeType) > this.dateTimeFormatters.put("${field.name}", new java.text.SimpleDateFormat("$field.format")); > + this.dateTimeFormatters.put("searchForm.${field.name}", new java.text.SimpleDateFormat("$field.format")); > #end > #end > // - setup the default java.util.Date.toString() formatter > - java.text.DateFormat dateFormatter = new java.text.SimpleDateFormat("EEE MMM dd hh:mm:ss zzz yyyy"); > + java.text.DateFormat dateFormatter = new java.text.SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); > dateFormatter.setLenient(true); > this.dateTimeFormatters.put(null, dateFormatter); > > - searchForm = new ${manageable.searchFormBeanClassName}(this); > + searchForm = new ${manageable.searchFormBeanClassName}(); > > editState=false; > } > @@ -60,7 +62,7 @@ > return searchForm; > } > > - public void setSearch(${manageable.searchFormBeanClassName} searchForm){ > + public void setSearchForm(${manageable.searchFormBeanClassName} searchForm){ > this.searchForm = searchForm; > } > > @@ -196,7 +198,19 @@ > this.${member.backingListName} = ${member.backingListName}; > } > > + private ${member.type.searchFormBeanType} ${member.name}SearchForm = null;##não pode inicializar direto senão dá loop > > + $member.visibility ${member.type.searchFormBeanType} ${member.getterName}SearchForm() > + { > + if(this.${member.name}SearchForm == null) > + this.${member.name}SearchForm = new ${member.type.searchFormBeanType}(); > + return this.${member.name}SearchForm; > + } > + > + $member.visibility void ${member.setterName}SearchForm(${member.type.searchFormBeanType} ${member.name}SearchForm) > + { > + this.${member.name}SearchForm = ${member.name}SearchForm; > + } > #end > /** > * Stores any date or time formatters for this form. > @@ -255,6 +269,49 @@ > } > > /** > + * Gets the current {@link javax.faces.application.FacesMessage} message > + * instances stored within this form, as Map. > + * > + * @return the current Faces messages. > + */ > + public java.util.Map get${stringUtils.capitalize($formMessagesProperty)}Map() > + { > + return this.${formMessagesProperty}; > + } > + > + /** > + * Sets the current {@link javax.faces.application.FacesMessage} message > + * instances stored within this form, as Map. > + * > + * @return the current Faces messages. > + */ > + public void set${stringUtils.capitalize($formMessagesProperty)}Map(java.util.Map ${formMessagesProperty}) > + { > + this.${formMessagesProperty} = ${formMessagesProperty}; > + } > + > + > + public void copyFrom($manageable.formBeanClassName otherForm){ > +#foreach ($field in $manageable.manageableAttributes) > + this.${field.setterName}(otherForm.${field.getterName}()); > +#set ($backingListMethod = $stringUtils.capitalize($field.backingListName)) > + this.set${backingListMethod}(otherForm.get${backingListMethod}()); > +#end > +#foreach ($member in $manageable.manageableAssociationEnds) > + this.${member.setterName}(otherForm.${member.getterName}()); > +#set ($backingListMethod = $stringUtils.capitalize($member.backingListName)) > + this.set${backingListMethod}(otherForm.get${backingListMethod}()); > +#end > + > + this.set${stringUtils.capitalize($formMessagesProperty)}Map(get${stringUtils.capitalize($formMessagesProperty)}Map()); > + > + this.setEditState(otherForm.getEditState()); > + this.setSearchForm(otherForm.getSearchForm()); > + this.${manageable.listSetterName}(otherForm.${manageable.listGetterName}()); > + this.setSelectedRows(otherForm.getSelectedRows()); > + } > + > + /** > * The serial version UID of this class. Needed for serialization. > */ > private static final long serialVersionUID = ${manageable.formSerialVersionUID}L; > > > > 1.5 +4 -0 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl > > Index: web.xml.vsl > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -u -w -r1.4 -r1.5 > --- web.xml.vsl 11 Jan 2007 17:35:19 -0000 1.4 > +++ web.xml.vsl 18 Jan 2007 10:11:09 -0000 1.5 > @@ -28,6 +28,10 @@ > <param-name>facelets.VIEW_MAPPINGS</param-name> > <param-value>*.xhtml</param-value> > </context-param> > + <context-param> > + <param-name>facelets.DEVELOPMENT</param-name> > + <param-value>true</param-value> > + </context-param> > > <context-param> > <param-name>facelets.LIBRARIES</param-name> > > > > 1.3 +9 -7 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/controllers/crud/Controller.java.vsl > > Index: Controller.java.vsl > =================================================================== > RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/controllers/crud/Controller.java.vsl,v > retrieving revision 1.2 > retrieving revision 1.3 > diff -u -w -r1.2 -r1.3 > --- Controller.java.vsl 11 Jan 2007 17:35:53 -0000 1.2 > +++ Controller.java.vsl 18 Jan 2007 10:11:10 -0000 1.3 > @@ -52,14 +52,14 @@ > ## saveMaxResultsWarning(); > ## > ###end > -###if (!$manageable.manageableAssociationEnds.empty) > -## final java.util.Map backingLists = ${manageable.manageableServiceAccessorCall}.readBackingLists(); > -###foreach ($member in $manageable.manageableAssociationEnds) > -## form.${member.setterName}BackingList((java.util.Collection)backingLists.get("${member.name}")); > -###end > -## > -###end > ###end > +#if (!$manageable.manageableAssociationEnds.empty) > + final java.util.Map backingLists = ${manageable.manageableServiceAccessorCall}.readBackingLists(); > +#foreach ($member in $manageable.manageableAssociationEnds) > + form.${member.setterName}BackingList((java.util.Collection)backingLists.get("${member.name}")); > +#end > + > +#end > form.setEditState(false); > } > > @@ -267,6 +267,8 @@ > > if(form.${manageable.listGetterName}() != null) //only searches again if there was an old search > doSearch(form); //search again to show the updated item (if it fits the search criteria) > + > + form.setEditState(false); > } > #end > public String search(){ > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Andromdaplugins-cvs mailing list > And...@li... > https://lists.sourceforge.net/lists/listinfo/andromdaplugins-cvs > |
From: Walter M. <wal...@us...> - 2007-01-18 12:37:13
|
User: walterim Date: 07/01/18 04:37:14 Modified: andromda-jsf2/src/main/resources/templates/jsf2/views renderActionFormInput.vm andromda-jsf2/src/main/resources/templates/jsf2/configuration faces-config.xml.vsl Log: Reverting a wrong enumeration code. Correcting a menu text. Revision Changes Path 1.4 +1 -2 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/renderActionFormInput.vm Index: renderActionFormInput.vm =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/renderActionFormInput.vm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- renderActionFormInput.vm 18 Jan 2007 10:11:07 -0000 1.3 +++ renderActionFormInput.vm 18 Jan 2007 12:37:13 -0000 1.4 @@ -32,7 +32,7 @@ #end #elseif ($parameter.inputCheckbox) <tr:selectBooleanCheckbox id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="$parameter.required" readOnly="$parameter.readOnly"/> -#elseif ($parameter.inputSelect) +#elseif ($parameter.inputSelect || $parameter.type.enumeration) #set ($multiSelect = $parameter.type.collectionType || $parameter.type.arrayType) #set ($selectBoxType = "selectOneChoice") #if ($multiSelect) @@ -74,7 +74,6 @@ #set ($selectBoxType = "selectManyListbox") #end <tr:$selectBoxType id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="$parameter.required" readOnly="$parameter.readOnly"#if ($multiSelect) size="$defaultMultiSelectSize"#else unselectedLabel=""#end> - <f:converter converterId="${parameter.type.fullyQualifiedName}"/> #foreach ($literal in $field.type.literals) #if ($literal.type.stringType)#set ($quote = '')#else#set ($quote = '"')#end #set($literalKey = $literal.name) 1.4 +1 -1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/faces-config.xml.vsl Index: faces-config.xml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/faces-config.xml.vsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- faces-config.xml.vsl 19 Dec 2006 09:15:15 -0000 1.3 +++ faces-config.xml.vsl 18 Jan 2007 12:37:13 -0000 1.4 @@ -69,7 +69,7 @@ <managed-bean-scope>application</managed-bean-scope> <managed-property> <property-name>label</property-name> - <value>$useCase.titleValue</value> + <value>$useCase.titleKey</value> </managed-property> <managed-property> <property-name>viewId</property-name> |
From: Manish A. <mag...@us...> - 2007-01-18 12:19:40
|
User: magrawal Date: 07/01/18 04:19:40 Modified: etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/Properties AssemblyInfo.cs Log: updated the assembly version for next release. Revision Changes Path 1.2 +3 -3 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/Properties/AssemblyInfo.cs Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/Properties/AssemblyInfo.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AssemblyInfo.cs 10 Jan 2007 22:57:05 -0000 1.1 +++ AssemblyInfo.cs 18 Jan 2007 12:19:40 -0000 1.2 @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -31,5 +31,5 @@ // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.1.0")] +[assembly: AssemblyFileVersion("1.0.1.0")] |
From: Manish A. <mag...@us...> - 2007-01-18 12:19:28
|
User: magrawal Date: 07/01/18 04:19:27 Modified: etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests/Properties AssemblyInfo.cs Log: updated the assembly version for next release. Revision Changes Path 1.2 +3 -3 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests/Properties/AssemblyInfo.cs Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests/Properties/AssemblyInfo.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- AssemblyInfo.cs 10 Jan 2007 22:56:49 -0000 1.1 +++ AssemblyInfo.cs 18 Jan 2007 12:19:27 -0000 1.2 @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -31,5 +31,5 @@ // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.1.0")] +[assembly: AssemblyFileVersion("1.0.1.0")] |
From: Manish A. <mag...@us...> - 2007-01-18 10:49:49
|
User: magrawal Date: 07/01/18 02:49:49 Modified: etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests TestScenarioHelperTests.cs etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit CodeDataProviderAttribute.cs XMLAsserterAttribute.cs XMLDataProviderAttribute.cs Log: added better error messages for failure conditions while loading data from XML files. Revision Changes Path 1.3 +51 -36 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests/TestScenarioHelperTests.cs Index: TestScenarioHelperTests.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests/TestScenarioHelperTests.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- TestScenarioHelperTests.cs 18 Jan 2007 09:15:22 -0000 1.2 +++ TestScenarioHelperTests.cs 18 Jan 2007 10:49:48 -0000 1.3 @@ -26,14 +26,14 @@ TestScenarioHelper.Invoke("ProcessTestObject", "default", this); } [Test] - [ExpectedException(typeof(FileNotFoundException))] + [ExpectedException(typeof(Exception), "Could not load data for testObj from the file ../../testdata/input\\TestScenarioHelperTests\\ProcessTestObject_NoInputFile_testObj.xml for the test method ProcessTestObject and scenario NoInputFile.")] public void TestInvokeNoInputFile() { TestScenarioHelper.Invoke("ProcessTestObject", "NoInputFile", this); } [Test] - [ExpectedException(typeof(FileNotFoundException))] + [ExpectedException(typeof(Exception), "Could not load the expected output from the file ../../testdata/expected_output\\TestScenarioHelperTests\\ProcessTestObject_NoExpectedOutputFile.xml for the test method ProcessTestObject and scenario NoExpectedOutputFile.")] public void TestInvokeNoExpectedOutputFile() { TestScenarioHelper.Invoke("ProcessTestObject", "NoExpectedOutputFile", this); @@ -402,5 +402,20 @@ } #endregion + #region test missing input or output files + + [Test] + [ExpectedException(typeof(Exception), "Could not write actual output to the file ../../testdata/actual_output\\InvalidPath\\ProcessInvalidOutputPath_InvalidActualOutputPath.xml for the test method ProcessInvalidOutputPath and scenario InvalidActualOutputPath.")] + public void TestInvokeInvalidActualOutputPath() + { + TestScenarioHelper.Invoke("ProcessInvalidOutputPath", "InvalidActualOutputPath", this); + } + + [XMLAsserter(ActualOutputDir = "InvalidPath")] + private TestObject ProcessInvalidOutputPath() + { + return new TestObject(); + } + #endregion } } 1.2 +13 -6 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/CodeDataProviderAttribute.cs Index: CodeDataProviderAttribute.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/CodeDataProviderAttribute.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- CodeDataProviderAttribute.cs 10 Jan 2007 22:56:52 -0000 1.1 +++ CodeDataProviderAttribute.cs 18 Jan 2007 10:49:48 -0000 1.2 @@ -18,14 +18,21 @@ public object GetData(ParameterInfo pInfo, string methodName, string scenarioName, object testFixture) { - if (string.IsNullOrEmpty(DataMethodName)) { DataMethodName = string.Format("{0}_{1}_Data", methodName, pInfo.Name); } + try + { MethodInfo mInfo = testFixture.GetType().GetMethod(DataMethodName, BindingFlags.NonPublic | BindingFlags.Instance| BindingFlags.IgnoreCase); object[] parameters = new object[] { pInfo, methodName, scenarioName }; return mInfo.Invoke(testFixture, parameters); } + catch (Exception e) + { + string errorMessage = string.Format("Could not load data for {0} from the method {1} for the test method {2} and scenario {3}.", pInfo.Name, DataMethodName, methodName, scenarioName); + throw new Exception(errorMessage, e); + } + } } } 1.3 +152 -121 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/XMLAsserterAttribute.cs Index: XMLAsserterAttribute.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/XMLAsserterAttribute.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- XMLAsserterAttribute.cs 18 Jan 2007 09:15:22 -0000 1.2 +++ XMLAsserterAttribute.cs 18 Jan 2007 10:49:48 -0000 1.3 @@ -101,6 +101,8 @@ { string outputFileName = GetFileName(pInfo, methodName, scenarioName); string actualOutputPath = Path.Combine(ActualOutputDir, outputFileName); + try + { XmlSerializer xs = null; if (null == outputObj) { @@ -116,6 +118,13 @@ xs.Serialize(actualOutput, outputObj); } } + catch (Exception e) + { + string errorMessage = string.Format("Could not write actual output to the file {0} for the test method {1} and scenario {2}.", actualOutputPath, methodName, scenarioName); + throw new Exception(errorMessage, e); + } + } + /// <summary> /// Helper method to call NXUnit assertions on the /// output from the test method and comparing the @@ -133,22 +142,45 @@ string expectedOutputPath = Path.Combine(ExpectedOutputDir, outputFileName); string rulesPath = Path.Combine(RulesDir, outputFileName); XmlDocument rules = new XmlDocument(); + try + { if (File.Exists(rulesPath)) { rules.Load(rulesPath); } + } + catch (Exception e) + { + string errorMessage = string.Format("Could not load the assertion rules from the file {0} for the test method {1} and scenario {2}.", rulesPath, methodName, scenarioName); + throw new Exception(errorMessage, e); + } XmlDocument actualXml = new XmlDocument(); + try + { actualXml.Load(actualOutputPath); ApplyRules(actualXml, rules); + } + catch (Exception e) + { + string errorMessage = string.Format("Could not load the actual output from the file {0} for the test method {1} and scenario {2}.", actualOutputPath, methodName, scenarioName); + throw new Exception(errorMessage, e); + } XmlDocument expectedXml = new XmlDocument(); + try + { expectedXml.Load(expectedOutputPath); ApplyRules(expectedXml, rules); + } + catch (Exception e) + { + string errorMessage = string.Format("Could not load the expected output from the file {0} for the test method {1} and scenario {2}.", expectedOutputPath, methodName, scenarioName); + throw new Exception(errorMessage, e); + } XMLInput actual = XMLInput.CreateInput(actualXml); XMLInput expected = XMLInput.CreateInput(expectedXml); - AssertStrategy strategy = XMLAssert.DEFAULT_STRATEGY; strategy.IsEmptyAttrSensitive = false; strategy.IsEmptyElementSensitive = false; @@ -195,4 +227,3 @@ #endregion } } - \ No newline at end of file 1.2 +23 -9 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/XMLDataProviderAttribute.cs Index: XMLDataProviderAttribute.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/XMLDataProviderAttribute.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- XMLDataProviderAttribute.cs 10 Jan 2007 22:56:52 -0000 1.1 +++ XMLDataProviderAttribute.cs 18 Jan 2007 10:49:48 -0000 1.2 @@ -14,6 +14,7 @@ public class XMLDataProviderAttribute : Attribute, IDataProvider { + #region member variables and properties. private string _inputDir; public string InputDir @@ -30,18 +31,30 @@ set { _inputDir = value; } } - + #endregion + #region public methods public object GetData(ParameterInfo pInfo, string methodName, string scenarioName, object testFixture) { string inputFileName = GetFileName(pInfo, methodName, scenarioName); string inputPath = Path.Combine(InputDir, inputFileName); + try + { XmlSerializer xs = new XmlSerializer(pInfo.ParameterType); using (StreamReader sr = new StreamReader(inputPath)) { return xs.Deserialize(sr); } } + catch (Exception e) + { + string errorMessage = string.Format("Could not load data for {0} from the file {1} for the test method {2} and scenario {3}.", pInfo.Name, inputPath, methodName, scenarioName); + throw new Exception(errorMessage, e); + } + } + + #endregion + #region private helper methods /// <summary> /// Helper method to determine the XML file name for a parameter. /// </summary> @@ -52,13 +65,14 @@ private static string GetFileName(ParameterInfo pInfo, string methodName, string scenarioName) { string fileName = methodName + "_" + scenarioName; - if (pInfo.Name != string.Empty && pInfo.Name != "" && pInfo.Name != null) + if (!string.IsNullOrEmpty(pInfo.Name)) { fileName += "_" + pInfo.Name; } fileName += ".xml"; return fileName; } + + #endregion } } - \ No newline at end of file |
From: Leif J. <le...@it...> - 2007-01-18 10:29:36
|
On Thursday 18 January 2007 11:11, Walter Mourao wrote: > User: walterim > Date: 07/01/18 02:11:10 > > Modified: andromda-jsf2/src/main/resources/templates/jsf2/views > renderActionFormInput.vm > andromda-jsf2/src/main/resources/templates/jsf2/flow/crud > ViewPopulator.java.vsl > > andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/layout > layout.xhtml.vsl > > andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/crud > view.xhtml.vsl > andromda-jsf2/src/main/resources/templates/jsf2/forms/crud > SearchForm.java.vsl Form.java.vsl > > andromda-jsf2/src/main/resources/templates/jsf2/configuration web.xml.vsl > > andromda-jsf2/src/main/resources/templates/jsf2/controllers/crud > Controller.java.vsl > Log: > > > Revision Changes Path > 1.3 +2 -1 > cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/renderActi >onFormInput.vm > > Index: renderActionFormInput.vm > =================================================================== > RCS file: > /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templa >tes/jsf2/views/renderActionFormInput.vm,v retrieving revision 1.2 > retrieving revision 1.3 > diff -u -w -r1.2 -r1.3 > --- renderActionFormInput.vm 11 Dec 2006 13:44:00 -0000 1.2 > +++ renderActionFormInput.vm 18 Jan 2007 10:11:07 -0000 1.3 > @@ -32,7 +32,7 @@ > #end > #elseif ($parameter.inputCheckbox) > <tr:selectBooleanCheckbox id="$propertyId" > value="#{${formValuePropertyName}}" > label="#{messages['$parameter.messageKey']}:" > required="$parameter.required" readOnly="$parameter.readOnly"/> -#elseif > ($parameter.inputSelect || $parameter.type.enumeration) +#elseif > ($parameter.inputSelect) I don't think that was a good idea... I think it will break support for Enumerations Cheers Leif |
From: Walter M. <wal...@us...> - 2007-01-18 10:11:15
|
User: walterim Date: 07/01/18 02:11:10 Modified: andromda-jsf2/src/main/resources/templates/jsf2/views renderActionFormInput.vm andromda-jsf2/src/main/resources/templates/jsf2/flow/crud ViewPopulator.java.vsl andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/layout layout.xhtml.vsl andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/crud view.xhtml.vsl andromda-jsf2/src/main/resources/templates/jsf2/forms/crud SearchForm.java.vsl Form.java.vsl andromda-jsf2/src/main/resources/templates/jsf2/configuration web.xml.vsl andromda-jsf2/src/main/resources/templates/jsf2/controllers/crud Controller.java.vsl Log: Revision Changes Path 1.3 +2 -1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/renderActionFormInput.vm Index: renderActionFormInput.vm =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/renderActionFormInput.vm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- renderActionFormInput.vm 11 Dec 2006 13:44:00 -0000 1.2 +++ renderActionFormInput.vm 18 Jan 2007 10:11:07 -0000 1.3 @@ -32,7 +32,7 @@ #end #elseif ($parameter.inputCheckbox) <tr:selectBooleanCheckbox id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="$parameter.required" readOnly="$parameter.readOnly"/> -#elseif ($parameter.inputSelect || $parameter.type.enumeration) +#elseif ($parameter.inputSelect) #set ($multiSelect = $parameter.type.collectionType || $parameter.type.arrayType) #set ($selectBoxType = "selectOneChoice") #if ($multiSelect) @@ -74,6 +74,7 @@ #set ($selectBoxType = "selectManyListbox") #end <tr:$selectBoxType id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="$parameter.required" readOnly="$parameter.readOnly"#if ($multiSelect) size="$defaultMultiSelectSize"#else unselectedLabel=""#end> + <f:converter converterId="${parameter.type.fullyQualifiedName}"/> #foreach ($literal in $field.type.literals) #if ($literal.type.stringType)#set ($quote = '')#else#set ($quote = '"')#end #set($literalKey = $literal.name) 1.3 +1 -1 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/flow/crud/ViewPopulator.java.vsl Index: ViewPopulator.java.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/flow/crud/ViewPopulator.java.vsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- ViewPopulator.java.vsl 11 Jan 2007 17:35:53 -0000 1.2 +++ ViewPopulator.java.vsl 18 Jan 2007 10:11:07 -0000 1.3 @@ -89,7 +89,7 @@ facesContext, "$manageable.formBeanName"); // - populate the $manageable.formBeanName with any parameters from the previous form - ${managedBeansPackage}.${formPopulatorName}.populateForm(form, $manageable.formBeanName); + ${manageable.formBeanName}.copyFrom((${manageable.formBeanType})form); } #if ($formSerialization) // - serialize the form 1.4 +5 -5 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/layout/layout.xhtml.vsl Index: layout.xhtml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/layout/layout.xhtml.vsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- layout.xhtml.vsl 30 Dec 2006 20:10:22 -0000 1.3 +++ layout.xhtml.vsl 18 Jan 2007 10:11:07 -0000 1.4 @@ -36,21 +36,21 @@ <f:facet name="navigation1"> <tr:navigationPane hint="tabs" level="0" var="item" value="#{menuModel.model}"> <f:facet name="nodeStamp"> - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> </f:facet> </tr:navigationPane> </f:facet> <f:facet name="navigation2"> <tr:navigationPane hint="bar" level="1" var="item" value="#{menuModel.model}"> <f:facet name="nodeStamp"> - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> </f:facet> </tr:navigationPane> </f:facet> <f:facet name="navigation3"> <tr:navigationPane hint="list" level="2" var="item" value="#{menuModel.model}"> <f:facet name="nodeStamp"> - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> </f:facet> </tr:navigationPane> </f:facet> @@ -59,7 +59,7 @@ <f:facet name="navigation3"> <tr:navigationTree var="item" value="#{menuModel.model}"> <f:facet name="nodeStamp"> - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> </f:facet> </tr:navigationTree> </f:facet> @@ -77,7 +77,7 @@ <f:facet name="location"> <tr:breadCrumbs var="item" value="#{menuModel.model}"> <f:facet name="nodeStamp"> - <tr:commandNavigationItem text="#{item.label}" action="#{item.getAction}"/> + <tr:commandNavigationItem text="#{messages[item.label]}" action="#{item.getAction}"/> </f:facet> </tr:breadCrumbs> </f:facet> 1.4 +1 -0 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/crud/view.xhtml.vsl Index: view.xhtml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/views/facelets/crud/view.xhtml.vsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- view.xhtml.vsl 11 Jan 2007 17:35:53 -0000 1.3 +++ view.xhtml.vsl 18 Jan 2007 10:11:08 -0000 1.4 @@ -52,6 +52,7 @@ #set ($selectBoxType = "selectManyListbox") #end <tr:$selectBoxType id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" required="false" readOnly="false"#if ($multiSelect) size="$defaultMultiSelectSize"#else unselectedLabel=""#end> + <f:converter converterId="${field.type.fullyQualifiedName}"/> #foreach ($literal in $field.type.literals) #if ($literal.type.stringType)#set ($quote = '')#else#set ($quote = '"')#end #set($literalKey = $literal.name) 1.2 +22 -26 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/SearchForm.java.vsl Index: SearchForm.java.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/SearchForm.java.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- SearchForm.java.vsl 11 Dec 2006 13:44:00 -0000 1.1 +++ SearchForm.java.vsl 18 Jan 2007 10:11:08 -0000 1.2 @@ -23,19 +23,6 @@ implements java.io.Serializable { - public ${manageable.searchFormBeanClassName}(${manageable.formBeanClassName} parent){ -#foreach ($field in $manageable.manageableSearchAttributes) -#if ($field.type.dateType) - java.text.DateFormat ${field.dateFormatter} = new java.text.SimpleDateFormat("$field.format"); -#set ($lenient = !$field.strictDateFormat) - ${field.dateFormatter}.setLenient($lenient); - parent.getDateTimeFormatters().put("search.${field.name}", ${field.dateFormatter}); -#elseif ($field.type.timeType) - parent.getDateTimeFormatters().put("search.${field.name}", new java.text.SimpleDateFormat("$field.format")); -#end -#end - } - #foreach ($field in $manageable.manageableSearchAttributes) #if ($field.type.collectionType) #set ($fieldTypeName = "java.util.List") @@ -92,23 +79,32 @@ this.$member.name = $member.name; } -#end - /** - * Stores any date or time formatters for this form. - */ - private final java.util.Map dateTimeFormatters = new java.util.HashMap(); + private java.util.Collection $member.backingListName; - /** - * Gets any date and time formatters (keyed by property name) - * for this form. - * - * @return the Map containing any date and time formatters. - */ - public java.util.Map getDateTimeFormatters() +#set ($backingListMethod = $stringUtils.capitalize($member.backingListName)) + public java.util.Collection get${backingListMethod}(){ + return ${member.backingListName}; + } + + public void set${backingListMethod}(java.util.Collection ${member.backingListName}){ + this.${member.backingListName} = ${member.backingListName}; + } + + private ${member.type.searchFormBeanType} ${member.name}SearchForm = null;##não pode inicializar direto senão dá loop + + $member.visibility ${member.type.searchFormBeanType} ${member.getterName}SearchForm() { - return this.dateTimeFormatters; + if(this.${member.name}SearchForm == null) + this.${member.name}SearchForm = new ${member.type.searchFormBeanType}(); + return this.${member.name}SearchForm; } + $member.visibility void ${member.setterName}SearchForm(${member.type.searchFormBeanType} ${member.name}SearchForm) + { + this.${member.name}SearchForm = ${member.name}SearchForm; + } +#end + /** * The serial version UID of this class. Needed for serialization. */ 1.2 +60 -3 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/Form.java.vsl Index: Form.java.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/forms/crud/Form.java.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- Form.java.vsl 11 Dec 2006 13:44:00 -0000 1.1 +++ Form.java.vsl 18 Jan 2007 10:11:08 -0000 1.2 @@ -30,16 +30,18 @@ #set ($lenient = !$field.strictDateFormat) ${field.dateFormatter}.setLenient($lenient); this.dateTimeFormatters.put("${field.name}", ${field.dateFormatter}); + this.dateTimeFormatters.put("searchForm.${field.name}", ${field.dateFormatter}); #elseif ($field.type.timeType) this.dateTimeFormatters.put("${field.name}", new java.text.SimpleDateFormat("$field.format")); + this.dateTimeFormatters.put("searchForm.${field.name}", new java.text.SimpleDateFormat("$field.format")); #end #end // - setup the default java.util.Date.toString() formatter - java.text.DateFormat dateFormatter = new java.text.SimpleDateFormat("EEE MMM dd hh:mm:ss zzz yyyy"); + java.text.DateFormat dateFormatter = new java.text.SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); dateFormatter.setLenient(true); this.dateTimeFormatters.put(null, dateFormatter); - searchForm = new ${manageable.searchFormBeanClassName}(this); + searchForm = new ${manageable.searchFormBeanClassName}(); editState=false; } @@ -60,7 +62,7 @@ return searchForm; } - public void setSearch(${manageable.searchFormBeanClassName} searchForm){ + public void setSearchForm(${manageable.searchFormBeanClassName} searchForm){ this.searchForm = searchForm; } @@ -196,7 +198,19 @@ this.${member.backingListName} = ${member.backingListName}; } + private ${member.type.searchFormBeanType} ${member.name}SearchForm = null;##não pode inicializar direto senão dá loop + $member.visibility ${member.type.searchFormBeanType} ${member.getterName}SearchForm() + { + if(this.${member.name}SearchForm == null) + this.${member.name}SearchForm = new ${member.type.searchFormBeanType}(); + return this.${member.name}SearchForm; + } + + $member.visibility void ${member.setterName}SearchForm(${member.type.searchFormBeanType} ${member.name}SearchForm) + { + this.${member.name}SearchForm = ${member.name}SearchForm; + } #end /** * Stores any date or time formatters for this form. @@ -255,6 +269,49 @@ } /** + * Gets the current {@link javax.faces.application.FacesMessage} message + * instances stored within this form, as Map. + * + * @return the current Faces messages. + */ + public java.util.Map get${stringUtils.capitalize($formMessagesProperty)}Map() + { + return this.${formMessagesProperty}; + } + + /** + * Sets the current {@link javax.faces.application.FacesMessage} message + * instances stored within this form, as Map. + * + * @return the current Faces messages. + */ + public void set${stringUtils.capitalize($formMessagesProperty)}Map(java.util.Map ${formMessagesProperty}) + { + this.${formMessagesProperty} = ${formMessagesProperty}; + } + + + public void copyFrom($manageable.formBeanClassName otherForm){ +#foreach ($field in $manageable.manageableAttributes) + this.${field.setterName}(otherForm.${field.getterName}()); +#set ($backingListMethod = $stringUtils.capitalize($field.backingListName)) + this.set${backingListMethod}(otherForm.get${backingListMethod}()); +#end +#foreach ($member in $manageable.manageableAssociationEnds) + this.${member.setterName}(otherForm.${member.getterName}()); +#set ($backingListMethod = $stringUtils.capitalize($member.backingListName)) + this.set${backingListMethod}(otherForm.get${backingListMethod}()); +#end + + this.set${stringUtils.capitalize($formMessagesProperty)}Map(get${stringUtils.capitalize($formMessagesProperty)}Map()); + + this.setEditState(otherForm.getEditState()); + this.setSearchForm(otherForm.getSearchForm()); + this.${manageable.listSetterName}(otherForm.${manageable.listGetterName}()); + this.setSelectedRows(otherForm.getSelectedRows()); + } + + /** * The serial version UID of this class. Needed for serialization. */ private static final long serialVersionUID = ${manageable.formSerialVersionUID}L; 1.5 +4 -0 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl Index: web.xml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- web.xml.vsl 11 Jan 2007 17:35:19 -0000 1.4 +++ web.xml.vsl 18 Jan 2007 10:11:09 -0000 1.5 @@ -28,6 +28,10 @@ <param-name>facelets.VIEW_MAPPINGS</param-name> <param-value>*.xhtml</param-value> </context-param> + <context-param> + <param-name>facelets.DEVELOPMENT</param-name> + <param-value>true</param-value> + </context-param> <context-param> <param-name>facelets.LIBRARIES</param-name> 1.3 +9 -7 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/controllers/crud/Controller.java.vsl Index: Controller.java.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/controllers/crud/Controller.java.vsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- Controller.java.vsl 11 Jan 2007 17:35:53 -0000 1.2 +++ Controller.java.vsl 18 Jan 2007 10:11:10 -0000 1.3 @@ -52,14 +52,14 @@ ## saveMaxResultsWarning(); ## ###end -###if (!$manageable.manageableAssociationEnds.empty) -## final java.util.Map backingLists = ${manageable.manageableServiceAccessorCall}.readBackingLists(); -###foreach ($member in $manageable.manageableAssociationEnds) -## form.${member.setterName}BackingList((java.util.Collection)backingLists.get("${member.name}")); -###end -## -###end ###end +#if (!$manageable.manageableAssociationEnds.empty) + final java.util.Map backingLists = ${manageable.manageableServiceAccessorCall}.readBackingLists(); +#foreach ($member in $manageable.manageableAssociationEnds) + form.${member.setterName}BackingList((java.util.Collection)backingLists.get("${member.name}")); +#end + +#end form.setEditState(false); } @@ -267,6 +267,8 @@ if(form.${manageable.listGetterName}() != null) //only searches again if there was an old search doSearch(form); //search again to show the updated item (if it fits the search criteria) + + form.setEditState(false); } #end public String search(){ |
From: Manish A. <mag...@us...> - 2007-01-18 09:15:22
|
User: magrawal Date: 07/01/18 01:15:22 Modified: etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests TestScenarioHelperTests.cs etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit XMLAsserterAttribute.cs Log: fixed a problem where null output from a test case caused object reference set to null exception. Revision Changes Path 1.2 +34 -9 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests/TestScenarioHelperTests.cs Index: TestScenarioHelperTests.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit.Tests/TestScenarioHelperTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- TestScenarioHelperTests.cs 10 Jan 2007 22:56:49 -0000 1.1 +++ TestScenarioHelperTests.cs 18 Jan 2007 09:15:22 -0000 1.2 @@ -55,6 +55,7 @@ return testObj; } #endregion + #region TestInvokeMultipleParameters [Test] public void TestInvokeMultipleInputParameters() @@ -70,6 +71,7 @@ } #endregion + #region TestInvokeNoInputParameter [Test] public void TestInvokeNoInputParameter() @@ -85,6 +87,7 @@ } #endregion + #region TestInvokePrimitiveInputParameter [Test] public void TestInvokePrimitiveInputParameter() @@ -101,6 +104,7 @@ } #endregion + #region TestInvokeNoReturnParameter [Test] public void TestInvokeNoReturnParameter() @@ -113,6 +117,7 @@ } #endregion + #region TestInvokeMultipleReturnParameters [Test] public void TestInvokeMultipleReturnParameters() @@ -127,6 +132,22 @@ } #endregion + + #region testInvoke returns null + + [Test] + public void TestInvokeNullReturnParameter() + { + TestScenarioHelper.Invoke("NullReturn", "NullReturnParameter", this); + } + private TestObject NullReturn() + { + return null; + } + + + #endregion + #region TestInvokeCollectionParameters [Test] public void TestInvokeCollectionParameters() @@ -163,6 +184,7 @@ } #endregion + #region TestBusinessException [Test] [ExpectedException(typeof(TestException))] @@ -175,6 +197,7 @@ throw new TestException(); } #endregion + #region TestCodeDataProvider [Test] public void TestCodeDataProvider() @@ -191,6 +214,7 @@ return new TestObject(); } #endregion + #region TestNamedCodeDataProvider [Test] public void TestNamedCodeDataProvider() @@ -221,6 +245,7 @@ } #endregion + #region TestMixedDataProviders [Test] public void TestMixedDataProvider() 1.2 +9 -1 plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/XMLAsserterAttribute.cs Index: XMLAsserterAttribute.cs =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/etc/andromda-dotnet/AndroMDA.ScenarioUnit/AndroMDA.ScenarioUnit/XMLAsserterAttribute.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- XMLAsserterAttribute.cs 10 Jan 2007 22:56:52 -0000 1.1 +++ XMLAsserterAttribute.cs 18 Jan 2007 09:15:22 -0000 1.2 @@ -101,7 +101,15 @@ { string outputFileName = GetFileName(pInfo, methodName, scenarioName); string actualOutputPath = Path.Combine(ActualOutputDir, outputFileName); - XmlSerializer xs = new XmlSerializer(outputObj.GetType()); + XmlSerializer xs = null; + if (null == outputObj) + { + xs = new XmlSerializer(typeof(System.Object)); + } + else + { + xs = new XmlSerializer(outputObj.GetType()); + } using (StreamWriter actualOutput = new StreamWriter(actualOutputPath)) { |
From: Vance K. <va...@us...> - 2007-01-17 15:08:32
|
User: vancek Date: 07/01/17 07:08:25 Modified: samples/booking-seam pom.xml Log: update jboss deps to 4.0.5-GA Revision Changes Path 1.2 +15 -15 plugins/samples/booking-seam/pom.xml Index: pom.xml =================================================================== RCS file: /cvsroot/andromdaplugins/plugins/samples/booking-seam/pom.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- pom.xml 17 Jan 2007 04:48:25 -0000 1.1 +++ pom.xml 17 Jan 2007 15:08:25 -0000 1.2 @@ -136,91 +136,91 @@ <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-j2ee</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossall-client</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3-client</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3x</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>ejb3-persistence</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-annotations-ejb3</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-serialization</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-remoting</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jnp-client</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aop-jdk50-client</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aspect-jdk50-client</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossws-client</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-jaxrpc</artifactId> - <version>4.0.4-GA</version> + <version>4.0.5-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-client</artifactId> - <version>3.2.0-CR2</version> + <version>3.2.0-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> - <version>3.2.0-CR2</version> + <version>3.2.0-GA</version> <scope>provided</scope> </dependency> <dependency> |
From: Vance K. <va...@us...> - 2007-01-17 04:48:26
|
User: vancek Date: 07/01/16 20:48:26 Added: samples/booking-seam/app pom.xml samples/booking-seam .project readme.txt .classpath pom.xml samples/booking-seam/mda/src/main/config/mappings WebMergeMappings.xml samples/booking-seam/web pom.xml samples/booking-seam/web/src/main/properties messages.properties samples/booking-seam/mda/src/main/config andromda.xml samples/booking-seam/core pom.xml samples/booking-seam/common pom.xml samples/booking-seam/app/src/main/config booking-seam-ds.xml samples/booking-seam/app/src/main/application/META-INF jboss-app.xml samples/booking-seam/mda pom.xml samples/booking-seam/mda/src/main/uml booking-seam.xmi Log: JBoss Seam booking system sample project (ejb3) Revision Changes Path 1.1 plugins/samples/booking-seam/app/pom.xml Index: pom.xml =================================================================== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.andromda.test.hotelbooking</groupId> <artifactId>booking-seam</artifactId> <version>1.0-SNAPSHOT</version> </parent> <artifactId>booking-seam-app</artifactId> <packaging>ear</packaging> <name>Seam Booking Application</name> <dependencyManagement> <dependencies> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <exclusions> <exclusion> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-mda</artifactId> </exclusion> <exclusion> <groupId>org.andromda.profiles.uml14</groupId> <artifactId>andromda-profile</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <version>${pom.version}</version> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-core</artifactId> <version>${pom.version}</version> <type>ejb</type> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-web</artifactId> <version>${pom.version}</version> <type>war</type> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </dependency> </dependencies> <build> <finalName>${application.id}-${pom.version}</finalName> <resources> <resource> <directory>src/main/config</directory> <targetPath>../</targetPath> <filtering>true</filtering> </resource> <resource> <directory>src/main/application</directory> <targetPath>../${application.id}-${pom.version}</targetPath> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.1</version> <configuration> <includes>**/*.xml</includes> <excludes>**/jboss-app.xml</excludes> <version>1.4</version> <modules> <javaModule> <groupId>org.jboss</groupId> <artifactId>jboss-seam</artifactId> <includeInApplicationXml>true</includeInApplicationXml> </javaModule> <javaModule> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <includeInApplicationXml>true</includeInApplicationXml> </javaModule> <ejbModule> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-core</artifactId> </ejbModule> <webModule> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-web</artifactId> <contextRoot>/${application.id}</contextRoot> </webModule> </modules> </configuration> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <executions> <execution> <goals> <goal>deploy</goal> </goals> </execution> </executions> <configuration> <deployLocation>${jboss.home}/server/default/deploy</deployLocation> <!-- include the generated data source file --> <includes> <include>*ds.xml</include> </includes> </configuration> </plugin> </plugins> </build> </project> 1.1 plugins/samples/booking-seam/.project Index: .project =================================================================== <projectDescription> <name>booking-seam</name> <comment/> <projects/> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments/> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> 1.1 plugins/samples/booking-seam/readme.txt Index: readme.txt =================================================================== A n d r o M D A - 3.3-SNAPSHOT AndroMDA is an open-source MDA framework distributed under the BSD license. Go to http://www.andromda.org/ for more information. The project located in this directory has been generated by Vance Karimi using the andromdapp:generate Maven plugin. You should at least be running Maven 2.0.1 if you want to build your project without any Maven-related problems, below is a summary of what has been generated and a list of example goals to call from the command line. The generated project structure is well-tailored for use in the development of J2EE projects. The build process itself makes use of Maven, dependencies and often-used goals have been added for your convenience. Custom configuration can be done by updating the root pom.xml file. /booking-seam J2EE project | | The root of the project contains a few files that control the overall | build process and common properties (in the pom.xml). | |-- pom.xml | contains information about this project, you may add more information | as long as you do not violate the Maven POM schema, see | http://maven.apache.org/reference/project-descriptor.htmlt | +-- /mda | | | | The MDA module is the heart of this project, this is where | | AndroMDA is configured to generate the files needed to | | assemble the application | | | +-- pom.xml | | contains the AndroMDA dependencies and configuration (cartridges, translation-libraries, etc) | +-- /src | | additional sources such as merge-mappings can be | | placed here, check out the /main/uml directory, it contains | | the UML model from which AndroMDA will generate code | +-- /src/main/config/andromda.xml | configures AndroMDA and its components, most | importantly the cartridges which are listed in | their own namespace; global settings are done in the | 'default' namespace | +-- /common | | | | The COMMON module collects those resources and classes | | that are shared between the other modules. | | | +-- pom.xml | | lists common dependencies | +-- /target | shared resources and java classes are generated here, | such as value objects and exceptions | +-- /core | | | | The CORE module collects those resources and classes | | that use the EJB framework | | | +-- pom.xml | | lists EJB[3.0] dependencies | +-- /src/main/java | | EJB[3.0] classes that need manual implementation are | | generated here, they will not be overwritten upon | | regeneration | +-- /target | the EJB[3.0] classes here will be overwriten each time | AndroMDA generates new code using the EJB[3.0] cartridge | +-- /web | | | | The WEB module collects those resources and classes | | that make up the presentation layer. | | | +-- pom.xml | | lists WebApp dependencies | +-- /src/main/java | | controller implementations and editable resource bundles | | will be generated here, | | you might consider putting your own JSPs here to | | be copied over the generated ones when bundling the | | .war file | +-- /target | any JSF classes, JSPs, resource bundles and | configuration files are generated here | +-- /webservice | | | | The WEBSERVICE module collects those resources and | | classes that use the AXIS framework | | | +-- pom.xml | | lists any dependencies for webservices | +-- /target | generated files are emitted here | +-- /app | | The APP module collects those resources and classes | that are required to actually build the .ear bundle | +-- pom.xml | lists dependencies to be bundles into the | root of the .ear +-- /src | any custom resources that should be deployed | together with the application | (eg. server deployment descriptors) +-- /target a deployable application is bundled here In order to succesfully build your project you will need to know how to invoke the build process for the existing modules, here's a list of examples: %> mvn install simply builds all modules %> mvn -f app/pom.xml -Ddeploy collects all artifacts and builds a deployable .ear which is then deployed %> mvn clean cleans all generated files from each target directory %> mvn install -Ddeploy rebuilds the entire application and deploys %> mvn install -Denv=prod builds the entire application for the production environment, possible 'env' property values are 'prod' for production, 'val' for validation and 'dev' for development; not specifying any value for this property will build the application for the local configuration (more info at http://maven.apache.org/guides/introduction/introduction-to-profiles.html) %> mvn -f web/pom.xml andromdapp:undeploy -o undeploys the ear from your app server %> mvn -N andromdapp:build -Dmodules=core (or mvn -f core/pom.xml) only build the core module %> mvn -N andromdapp:build -Dmodules=web (or mvn -f web/pom.xml) only build the web module %> mvn nuke cleans out all /target directories and removes all Java classes with names ending with 'Impl' from the source directories (from the common, core and web modules); this goal asks for confirmation, but be careful calling it anyway as you will lose your manually edited files %> mvn -f core/pom.xml andromdapp:schema -Dtasks=create generates the DDL create code and subsequently tells the database to create the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=drop generates the DDL drop code and subsequently tells the database to drop the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=drop,create generates the drop and create DDL code and subsequently tells the database to drop and then create the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=update attempts to update the database schema with incremental changes, might not work with all JDBC drivers see http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#toolsetguide-s1-6 %> mvn -f core/pom.xml andromdapp:schema -Dtasks=validate validates the current Hibernate mappings against the database, you can also use this to simply check whether or not the mappings have been properly generated (in case of customizations) %> mvn -N andromdapp:build -Dmodules=mda:[andromda:start-server] (or mvn -f mda/pom.xml andromda:start-server) starts the AndroMDA server, with this server running you will be able to significantly speedup the generation process although it will require you to use another console while it is running %> mvn -N andromdapp:build -Dmodules=mda:[andromda:stop-server] (or mvn -f mda/pom.xml andromda:stop-server) stops the AndroMDA server %> mvn -N andromdapp:build -Dmodules=mda (or mvn -f mda/pom.xml) runs AndroMDA on your model and thereby generating files in the subdirectories of the existing modules %> mvn -N andromdapp:build -Dmodules=mda -Dfilter=java,hibernate (or mvn -f mda/pom.xml -Dfilter=java,hibernate) runs AndroMDA, but this time only using the Java and Hibernate cartridges (in that order) %> mvn -N andromdapp:build -Dmodules=mda -Dfilter=~java,hibernate (or mvn -f mda/pom.xml -Dfilter=~java,hibernate) runs AndroMDA, but this time using all cartridges *except* the Java and Hibernate cartridges %> mvn -N andromdapp:build -Dmodules=mda,core,web,app -Dfilter=java -Ddeploy runs AndroMDA using only the Java cartridge, rebuilds the core module and web module and deploys afterwards %> mvn -N andromdapp:build -Dconsole runs the AndroMDApp build goal in 'console' mode, once running, this allows you to execute any goal or subproject goal in the manner described above without having to specify the andromdapp:build goal or restarting maven (i.e. you can run the mda goal by typing 'mda', build the core module by type 'core', etc). Please note that you may use the '-o' flag at any time to avoid having Maven downloading any SNAPSHOT dependencies. Each module will install its artifact into the local Maven repository, this might be a directory looking like this: (Windows) C:\Documents and Settings\Vance Karimi\.m2\repository\booking-seam\ (*nix) /home/Vance Karimi/.maven/repository/booking-seam/ For questions or feature requests please use our forum: http://forum.andromda.org/ Good luck! -- The AndroMDA Team 1.1 plugins/samples/booking-seam/.classpath Index: .classpath =================================================================== <classpath> <classpathentry kind="src" path="common/target/src"/> <classpathentry kind="src" path="core/src/main/java"/> <classpathentry kind="src" path="core/target/src"/> <classpathentry kind="src" path="web/target/src"/> <classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/> <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/> <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/> <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/> <classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar"/> <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/> <classpathentry kind="var" path="M2_REPO/org/andromda/andromda-core/3.3-SNAPSHOT/andromda-core-3.3-SNAPSHOT.jar"/> <classpathentry kind="var" path="M2_REPO/org/andromda/andromda-utils/3.3-SNAPSHOT/andromda-utils-3.3-SNAPSHOT.jar"/> <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.2.0-CR2/hibernate-annotations-3.2.0-CR2.jar"/> <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-client/3.2.0-CR2/hibernate-client-3.2.0-CR2.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3-persistence/4.0.4-GA/ejb3-persistence-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-annotations-ejb3/4.0.4-GA/jboss-annotations-ejb3-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-aop-jdk50-client/4.0.4-GA/jboss-aop-jdk50-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-aspect-jdk50-client/4.0.4-GA/jboss-aspect-jdk50-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-ejb3-client/4.0.4-GA/jboss-ejb3-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-ejb3x/4.0.4-GA/jboss-ejb3x-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-j2ee/4.0.4-GA/jboss-j2ee-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-remoting/4.0.4-GA/jboss-remoting-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-seam/1.1.0-GA/jboss-seam-1.1.0-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jbossws-client/4.0.4-GA/jbossws-client-4.0.4-GA.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/adf-faces-api.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/andromda-jsf-cartridge-components.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/myfaces-api.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/tomahawk.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="target/classes"/> </classpath> 1.1 plugins/samples/booking-seam/pom.xml Index: pom.xml =================================================================== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.andromda.test.hotelbooking</groupId> <artifactId>booking-seam</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <name>Seam Booking</name> <description>The Seam Booking Project.</description> <scm> <connection></connection> <url></url> </scm> <organization> <name></name> <url></url> </organization> <ciManagement> <system>continuum</system> <notifiers> <notifier> <type>mail</type> <configuration> <address></address> </configuration> </notifier> </notifiers> </ciManagement> <developers> <developer> <id></id> <name>Vance Karimi</name> <email></email> <organization></organization> <roles> <role>Developer</role> </roles> <timezone></timezone> </developer> </developers> <dependencyManagement> <dependencies> <dependency> <groupId>org.andromda.profiles.uml14</groupId> <artifactId>andromda-profile</artifactId> <version>3.3-SNAPSHOT</version> <type>xml.zip</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.profiles.uml14</groupId> <artifactId>andromda-profile-seam</artifactId> <version>1.1-SNAPSHOT</version> <type>xml.zip</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-ejb3-cartridge</artifactId> <version>1.0-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-java-cartridge</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-jsf-cartridge</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-utils</artifactId> <version>3.3-SNAPSHOT</version> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> </exclusion> <exclusion> <groupId>xalan</groupId> <artifactId>xalan</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.andromda.translationlibraries</groupId> <artifactId>andromda-ocl-query-library</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <!-- This dependency provides the ability to implement your business logic in an interpreted manner during development on your local machine --> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-script-wrappers</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.7.0</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-j2ee</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossall-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3x</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>ejb3-persistence</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-annotations-ejb3</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-serialization</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-remoting</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jnp-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aop-jdk50-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aspect-jdk50-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossws-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-jaxrpc</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-client</artifactId> <version>3.2.0-CR2</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.2.0-CR2</version> <scope>provided</scope> </dependency> <dependency> <groupId>antlr</groupId> <artifactId>antlr</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>1.7</version> <scope>runtime</scope> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-validator</groupId> <artifactId>commons-validator</artifactId> <version>1.1.4</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.0</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>itext</groupId> <artifactId>itext</artifactId> <version>0.99</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.1.2</version> <scope>runtime</scope> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.1</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> <version>2.0.8</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.3</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-seam</artifactId> <version>1.1.0-GA</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <defaultGoal>install</defaultGoal> <pluginManagement> <plugins> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromda-multi-source-plugin</artifactId> <version>3.3-SNAPSHOT</version> <executions> <execution> <goals> <goal>add-source</goal> </goals> <configuration> <sourceDirectories> <directory>target/src</directory> </sourceDirectories> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromda-maven-plugin</artifactId> <version>3.3-SNAPSHOT</version> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <version>3.3-SNAPSHOT</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </pluginManagement> </build> <modules> <module>mda</module> <module>common</module> <module>core</module> <module>web</module> <module>app</module> </modules> <properties> <!-- Change this to generate to the correct MDA database mappings, For MySql use: MySQL For Hypersonic use: HypersonicSql For Oracle9i use: Oracle9i For DB2 use: DB2 For Informix use: InformixDB For MSSQL use: MSSQL For Pointbase use: PointBase For Postgres use: PostgreSQL For Sybase use: Sybase For SapDB use: SapDB For Derby use: Derby --> <sql.mappings> MySQL </sql.mappings> <!-- Change this for the appropriate database For MySql use: org.hibernate.dialect.MySQLDialect For MySql InnoDB use: org.hibernate.dialect.MySQLInnoDBDialect For MySql MyISAM use: org.hibernate.dialect.MySQLMyISAMDialect For Hypersonic use: org.hibernate.dialect.HSQLDialect For Oracle any version use: org.hibernate.dialect.OracleDialect For Oracle9i/10g use: org.hibernate.dialect.Oracle9Dialect For DB2 use: org.hibernate.dialect.DB2Dialect For Informix use: org.hibernate.dialect.InformixDialect For MSSQL use: org.hibernate.dialect.SQLServerDialect For Pointbase use: org.hibernate.dialect.PointbaseDialect For Postgres use: org.hibernate.dialect.PostgreSQLDialect For Sybase use: org.hibernate.dialect.SybaseDialect For Sybase Anywhere use: org.hibernate.dialect.SybaseAnywhereDialect For SapDB use: org.hibernate.dialect.SAPDBDialect For Progress use: org.hibernate.dialect.ProgressDialect For Derby use: org.hibernate.dialect.DerbyDialect --> <hibernate.dialect> org.hibernate.dialect.MySQLInnoDBDialect </hibernate.dialect> <!-- Change this to the correct database type mappings (for Jboss) For MySql use: mySQL For Hypersonic use: Hypersonic SQL For Oracle9i use: Oracle9i For DB2 use: DB2 For Informix use: InformixDB For MSSQL use: MS SQLSERVER2000 For Pointbase use: PointBase For Postgres use: PostgreSQL 7.2 For Sybase use: Sybase For SapDB use: SapDB For Derby use: Derby --> <jboss.typeMappings> mySQL </jboss.typeMappings> <jboss.home>${env.JBOSS_HOME}</jboss.home> <application.id>booking-seam</application.id> <application.package>org.andromda.test.hotelbooking</application.package> <application.name>Seam Booking</application.name> <application.version>1.0-SNAPSHOT</application.version> <dataSource.name>jdbc/${application.id}</dataSource.name> <dataSource>java:/${dataSource.name}</dataSource> </properties> <profiles> <profile> <id>local</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- Change driver jar for appropriate database For MySQL use: mysql-connector-java-X-bin.jar For Hypersonic use: hsqldb.jar --> <jdbc.driver.jar>${jboss.home}/server/default/lib/hsqldb.jar</jdbc.driver.jar> <!-- Change driver for appropriate database For MySQL use: com.mysql.jdbc.Driver For Hypersonic use: org.hsqldb.jdbcDriver For Oracle9i use: oracle.jdbc.driver.OracleDriver For DB2 use: COM.ibm.db2.jdbc.app.DB2Driver For Informix use: com.informix.jdbc.IfxDriver For MSSQL use: com.microsoft.jdbc.sqlserver.SQLServerDriver For Pointbase use: com.pointbase.jdbc.jdbcUniversalDriver For Postgres use: org.postgresql.Driver For Sybase use: com.sybase.jdbc2.jdbc.SybDataSource For SapDB use: com.sap.dbtech.jdbc.DriverSapDB For Progress use: com.progress.sql.jdbc.JdbcProgressDriver For Derby use: org.apache.derby.jdbc.EmbeddedDriver --> <jdbc.driver> com.mysql.jdbc.Driver </jdbc.driver> <!-- Change connection url for appropriate database For MySQL use: jdbc:mysql://localhost:3306/booking-seam For Hypersonic use: jdbc:hsqldb:hsql://127.0.0.1:1701 For Oracle9i use: jdbc:oracle:thin:@localhost:1521:yoursid For DB2 use: jdbc:db2:booking-seam For Informix use: jdbc:informix-sqli://localhost:1557/booking-seam:INFORMIXSERVER=myserver For MSSQL use: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=booking-seam For Pointbase use: jdbc:pointbase:server://@pointbase.server@:@pointbase.port/pointbase.booking-seam@,new For Postgres use: jdbc:postgresql://localhost/booking-seam For Sybase use: jdbc:sybase:Tds:localhost:5000/booking-seam?JCONNECT_VERSION=6 For SapDB use: jdbc:sapdb://127.0.0.1/booking-seam For Progress use: jdbc:JdbcProgress:T:localhost:3305:booking-seam --> <jdbc.url> jdbc:mysql://localhost:3306/booking-seam </jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password></jdbc.password> <!-- Change exception sorder class name for appropriate database For MySQL use: org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter For Hypersonic use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Oracle9i use: org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter For DB2 use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Informix use: org.jboss.resource.adapter.jdbc.vendor.InformixExceptionSorter For MSSQL use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Pointbase use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Postgres use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Sybase use: org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter For SapDB use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Progress use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter --> <jdbc.exception.sorter> org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter </jdbc.exception.sorter> <!-- Change this to the host on which your webservice will be deployed --> <webservice.host>localhost</webservice.host> <!-- Change this the port on which your webservice will be deploy --> <webservice.port>8080</webservice.port> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <version>3.3-SNAPSHOT</version> <!-- provides the injection of the script wrapper support into the class files (this should only be done when developing locally), uncomment this executions element to enable <executions> <execution> <id>instrument-scripts</id> <goals> <goal>instrument-scripts</goal> </goals> </execution> </executions> --> <configuration> <scriptWrapper>org.andromda.scriptwrappers.GroovyScriptWrapper</scriptWrapper> <locations> <location> <rootPath>${pom.basedir}/src/main/java</rootPath> <!-- adjust these to include or exclude specific files, by default all files found in the rootPath are considered <includes> <include>relative/path/to/file/to/include/SomeClass.java</include> </includes> <excludes> <exclude>relative/path/to/file/to/include/SomeClass.java</exclude> </excludes> --> </location> </locations> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>development</id> <activation> <property> <name>env</name> <value>dev</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> <profile> <id>validation</id> <activation> <property> <name>env</name> <value>val</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> <profile> <id>production</id> <activation> <property> <name>env</name> <value>prod</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> </profiles> <repositories> <repository> <id>andromda</id> <name>AndroMDA Repository</name> <url>http://team.andromda.org/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>andromda</id> <name>AndroMDA Repository</name> <url>http://team.andromda.org/maven2</url> </pluginRepository> </pluginRepositories> <prerequisites> <maven>2.0.1</maven> </prerequisites> </project> 1.1 plugins/samples/booking-seam/mda/src/main/config/mappings/WebMergeMappings.xml Index: WebMergeMappings.xml =================================================================== <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- This is used to map merge patterns in files generated by Bpm4Struts to new patterns. Just add content to the CDATA sections of the <to/> elements in order to use the following merge points. --> <mappings name="WebMerge"> <mapping> <from><![CDATA[<!-- context-param merge-point -->]]></from> <to> <![CDATA[ <!-- uncomment if you want to add your own project specific facelet tags (and of course make sure "/WEB-INF/custom.taglib.xml" is the actual path to your facelet tag descriptor) <context-param> <param-name>facelets.LIBRARIES</param-name> <param-value> /WEB-INF/custom.taglib.xml; </param-value> </context-param> --> ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- filter merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- filter-mapping merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- listener merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- error-page merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- servlet merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- servlet-mapping merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- welcome-file-list merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- security-constraint merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- security-role merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- global-forwards merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- mime-type merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <!-- This next mapping will merge the entire messages.properties into the generated messages.properties --> <mapping> <from><![CDATA[# custom-messages merge-point]]></from> <to> <path>../../../../../web/src/main/properties/messages.properties</path> </to> </mapping> </mappings> 1.1 plugins/samples/booking-seam/web/pom.xml Index: pom.xml =================================================================== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.andromda.test.hotelbooking</groupId> <artifactId>booking-seam</artifactId> <version>1.0-SNAPSHOT</version> </parent> <artifactId>booking-seam-web</artifactId> <packaging>war</packaging> <name>Seam Booking Web</name> <dependencies> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <version>${pom.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-core</artifactId> <version>${pom.version}</version> <type>ejb</type> <scope>provided</scope> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>commons-validator</groupId> <artifactId>commons-validator</artifactId> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> </dependency> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> </dependency> <dependency> <groupId>org.apache.myfaces</groupId> <artifactId>myfaces-api</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/myfaces-api.jar</systemPath> </dependency> <dependency> <groupId>org.apache.myfaces</groupId> <artifactId>tomahawk</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/tomahawk.jar</systemPath> </dependency> <dependency> <groupId>oracle.adf.view.faces</groupId> <artifactId>adf-faces-api</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/adf-faces-api.jar</systemPath> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-jsf-cartridge-components</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/andromda-jsf-cartridge-components.jar</systemPath> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> </dependency> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-utils</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-seam</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <dependency> <groupId>itext</groupId> <artifactId>itext</artifactId> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> </dependency> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-script-wrappers</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-j2ee</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3-client</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3x</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>ejb3-persistence</artifactId> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <targetPath>../${pom.artifactId}-${pom.version}</targetPath> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>process-resources</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <configuration> <tasks> <copy todir="${pom.basedir}/target/src" overwrite="true" failonerror="false"> <fileset dir="${pom.basedir}/src/main/xhtml"> <include name="**/*"/> </fileset> <fileset dir="${pom.basedir}/src/main"> <include name="css/**"/> <inclu... [truncated message content] |
From: Vance K. <va...@us...> - 2007-01-17 04:47:48
|
User: vancek Date: 07/01/16 20:47:48 plugins/samples/booking-seam/web/src/main/properties - New directory |
From: Vance K. <va...@us...> - 2007-01-17 04:47:48
|
User: vancek Date: 07/01/16 20:47:48 plugins/samples/booking-seam/web/src - New directory |
From: Vance K. <va...@us...> - 2007-01-17 04:47:48
|
User: vancek Date: 07/01/16 20:47:48 plugins/samples/booking-seam/web/src/main - New directory |
From: Vance K. <va...@us...> - 2007-01-17 04:47:47
|
User: vancek Date: 07/01/16 20:47:47 plugins/samples/booking-seam/mda/src/main/uml - New directory |
From: Vance K. <va...@us...> - 2007-01-17 04:47:47
|
User: vancek Date: 07/01/16 20:47:47 plugins/samples/booking-seam/web - New directory |
From: Vance K. <va...@us...> - 2007-01-17 04:47:46
|
User: vancek Date: 07/01/16 20:47:47 plugins/samples/booking-seam/mda/src/main/config/mappings - New directory |
From: Vance K. <va...@us...> - 2007-01-17 04:47:46
|
User: vancek Date: 07/01/16 20:47:47 plugins/samples/booking-seam/mda/src/main/config - New directory |