You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Bryan Field-E. <br...@ne...> - 2002-04-23 18:13:39
|
Hehe.. I'm still on the list of course, but have been hit by a surprise, extremely-time-consuming project in the last couple of weeks. I intend to respond to the last few days' posts tonight, as well as do a little bug fixing/refactoring of Simper in the short term. Thanks everyone for the interest and for the kick in the pants for me to do something. Bryan On Tue, 2002-04-23 at 11:40, Jean-Michel Garnier wrote: 1. I answer the Jerry's message : ******************************** =20 > Good Idea. Simper could then be used in other non-Servlet 2.3 (even > standalone) applications. What would the interface look like? =20 As a specification, I am designing UML class diagrams with Together.=20 I will send it to the Simper-dev-list for approval. =20 > Some other To-Dos: > - Rewrite IInet to read tables and queries from XML file(s). > - Allow registration of tables from more than one connection. =20 I agree. But maybe we could wait that Simper works with one single database ?=20 Maybe (sure !) some bugs are remaining. What do you thnik of using Junit to validate the framewrok ? =20 > - Add a registerView method that would use a SQL SELECT thus allowing > databases that do not support views to be used (e.g. mySQL). =20 I don't understand this point, you are talking about =20 > - Add additional data types. what data types are missing ? =20 =20 2. Others suggestions & propositions=20 ************************************ =20 using DynaActionForm -------------------- =20 In the Author class, Bryan wrote "The ActionForm for the Author data entry. Sigh.. Some day we'll use DynaBeans for this." With Struts 1.1, his dream comes true ! We can use DynaActionForm class which implements DynaBean. =20 Using it I have replaced the following classes : - org.netmeme.simper.demo.forms.Author - org.netmeme.simper.demo.forms.Book - org.netmeme.simper.demo.actions.AuthorAdd - org.netmeme.simper.demo.actions.BookAdd =20 by one single generic class : - org.netmeme.simper.demo.actions.AddAction=20 Because I am lazy, I have added a method "copyDynaProperties" to SimperBean which copies=20 the properties of the DynaActionForm for all cases where the property names are the same. This is supposed=20 =20 I have also updated the Sruts-config.xml to handle DynaActionForm, Here is an example : <form-bean name=3D"author" type=3D"org.apache.struts.action.DynaActionForm"> <form-property name=3D"id" type=3D"java.lang.Integer"/> <form-property name=3D"name" type=3D"java.lang.String"/> <form-property name=3D"email" type=3D"java.lang.String"/> </form-bean> =20 Please find a war containing all the source-code on this url : http://rollerjm.free.fr/pro/simper/simper-demo-dyna.war =20 Sorry, it is a "light" warn bc the Web-inf/lib directory does not contain the jars (except the latest commons-beanutils.jar). =20 =20 XML Configuration file ---------------------- =20 In Simper class, Bryan wrote :=20 " Following are registration methods, used by client code to set up the framework. It would be nice at some point to move such stuff to an XML file, rather than client code (currently, the user must create a class which implements ISimperInit)." =20 As I am a newbie in XML, I am volunteer to program this stuff. =20 I am curious, is there anybody else thant Jerry and me in this list ? =20 Regards, Jean-Michel =20 =20 ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran=E7ais ! Yahoo! Mail : http://fr.mail.yahoo.com =20 _______________________________________________ Simper-Development mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simper-development =20 |
From: <gar...@ya...> - 2002-04-23 17:40:12
|
1. I answer the Jerry's message : ******************************** > Good Idea. Simper could then be used in other non-Servlet 2.3 (even > standalone) applications. What would the interface look like? As a specification, I am designing UML class diagrams with Together. I will send it to the Simper-dev-list for approval. > Some other To-Dos: > - Rewrite IInet to read tables and queries from XML file(s). > - Allow registration of tables from more than one connection. I agree. But maybe we could wait that Simper works with one single database ? Maybe (sure !) some bugs are remaining. What do you thnik of using Junit to validate the framewrok ? > - Add a registerView method that would use a SQL SELECT thus allowing > databases that do not support views to be used (e.g. mySQL). I don't understand this point, you are talking about > - Add additional data types. what data types are missing ? 2. Others suggestions & propositions ************************************ using DynaActionForm -------------------- In the Author class, Bryan wrote "The ActionForm for the Author data entry. Sigh.. Some day we'll use DynaBeans for this." With Struts 1.1, his dream comes true ! We can use DynaActionForm class which implements DynaBean. Using it I have replaced the following classes : - org.netmeme.simper.demo.forms.Author - org.netmeme.simper.demo.forms.Book - org.netmeme.simper.demo.actions.AuthorAdd - org.netmeme.simper.demo.actions.BookAdd by one single generic class : - org.netmeme.simper.demo.actions.AddAction Because I am lazy, I have added a method "copyDynaProperties" to SimperBean which copies the properties of the DynaActionForm for all cases where the property names are the same. This is supposed I have also updated the Sruts-config.xml to handle DynaActionForm, Here is an example : <form-bean name="author" type="org.apache.struts.action.DynaActionForm"> <form-property name="id" type="java.lang.Integer"/> <form-property name="name" type="java.lang.String"/> <form-property name="email" type="java.lang.String"/> </form-bean> Please find a war containing all the source-code on this url : http://rollerjm.free.fr/pro/simper/simper-demo-dyna.war Sorry, it is a "light" warn bc the Web-inf/lib directory does not contain the jars (except the latest commons-beanutils.jar). XML Configuration file ---------------------- In Simper class, Bryan wrote : " Following are registration methods, used by client code to set up the framework. It would be nice at some point to move such stuff to an XML file, rather than client code (currently, the user must create a class which implements ISimperInit)." As I am a newbie in XML, I am volunteer to program this stuff. I am curious, is there anybody else thant Jerry and me in this list ? Regards, Jean-Michel ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com |
From: Jerry W. <si...@mt...> - 2002-04-17 15:49:37
|
Jean-Michel, Good Idea. Simper could then be used in other non-Servlet 2.3 (even standalone) applications. What would the interface look like? Some other To-Dos: - Rewrite IInet to read tables and queries from XML file(s). - Add a registerView method that would use a SQL SELECT thus allowing databases that do not support views to be used (e.g. mySQL). - Allow registration of tables from more than one connection. - Add additional data types. Jerry ----- Original Message ----- From: "Jean-Michel Garnier" <gar...@ya...> To: <sim...@li...> Sent: Wednesday, April 17, 2002 8:18 AM Subject: [Simper-Development] Refactoring the Simper class Hi, what do you think of refactoring the Simper class ? - to split up Simper class into a SimperFilter class (with only methods implemting Filter) and one Business class Simper with the others methods. So that you can use Simper even if you don't support for Servlet 2.3. - to transform inner classes TableInfo, QueryInfo and RelationIndo into normal classes. So that Simper class would be simpler to Jean-Michel ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran=E7ais ! Yahoo! Mail : http://fr.mail.yahoo.com _______________________________________________ Simper-Development mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simper-development |
From: <gar...@ya...> - 2002-04-17 12:18:28
|
Hi, what do you think of refactoring the Simper class ? - to split up Simper class into a SimperFilter class (with only methods implemting Filter) and one Business class Simper with the others methods. So that you can use Simper even if you don't support for Servlet 2.3. - to transform inner classes TableInfo, QueryInfo and RelationIndo into normal classes. So that Simper class would be simpler to Jean-Michel ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com |