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 |