strutsgenerator-user Mailing List for Karapan Sapi Struts Generator
Brought to you by:
javanovic
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Bernardinus <bbe...@gm...> - 2003-04-23 05:44:27
|
Hi all, I had just a quick pick on latest cvs code, it seems that Roel has recently updated KS to use Struts RC1. Cool :) Also some issues (bugs) have been addressed, in particular wrt Date format on DAO stuff. Great. Thanks Roel. When I look at the build script, there on 'pack' (packaging) target, velocity lib referenced was not correct. --------------------------------------------------- <!-- tar dist --> <delete file="${release.dist.tar.gz}" failonerror="no"/> <tar tarfile="${release.dist.tar}" basedir="${dist.dir}" excludes="layout/lib/*.jar, layout/webroot/WEB-INF/*.dtd, layout/webroot/WEB-INF/*.tld, layout/webroot/WEB-INF/validator-rules.xml, xerces.jar, castor-xml.jar, velocity-dep-1.2.jar, jdom.jar, junit.jar, xalan.jar" /> --------------------------------------------------- The excludes specificly mention velocity-dep-1.2.jar, while the actual one is velocity-dep-1.3.1.jar. Using the script result in being velocity lib included in the distro, while it was supposedly excluded? cheers, /bernard |
From: Bernardinus <bbe...@gm...> - 2003-04-23 05:12:23
|
----- Original Message ----- From: "Juan Pablo Morales" <ju_...@ho...> To: <str...@li...> Sent: Saturday, April 19, 2003 1:44 AM Subject: Re: [Strutsgenerator-user] argument type mismatch > It is indeed the latest build, taken from CVS. Looking into it, I think > I found what could be a fix: > In DAO.java, line 44 it reads > BeanUtils.populate(bean, properties); > However, that method is intended for use with web request parameters, > and cannot distinguish between a date and a String (it can, however tell > a number form a String, and that's why it works with numbers and not > dates) it could be changed for > PropertyUtils.copyProperties(bean, properties); > > Does anybody see hidden side effects that would make this solution > undesirable? > Have you checked the latest cvs version? As far as I can tell DAO is now implemented using BeanUtils.copyProperties(). The latest also seems to cater for date formating as well. See: http://cvs.strutsgenerator.sourceforge.net/cgi-bin/viewcvs.cgi/strutsgenerat or/StrutsGenerator/bin/template/dao/dao-abstract.vm.diff?r1=1.2&r2=1.3 I have reservation of using PropertyUtils.copyProperties() as it does not do type converstion. Hope that helps :) cheers, /bernard |
From: Bernardinus <bbe...@gm...> - 2003-04-21 02:16:44
|
Thanks Juan for trying :) Well, over-writting every single date-related mutator for a generated code seems quite a messy approach. But I don't have a better alternative, though :( Could you log this as bug into KS' sf bug tracker? So it may not lost in mailing list. Others have noticed this sometime ago, but it doesn't seem to have fixed :( Could you also notice KS mailing list at jav...@ya.... That one seems to be more active than the one provided by SF. cheers, /bernard ----- Original Message ----- From: "Juan Pablo Morales" <ju_...@ho...> To: <str...@li...> Sent: Thursday, April 17, 2003 12:12 PM Subject: Re: [Strutsgenerator-user] argument type mismatch > It is indeed the last build. The error can be corrected by tricking > java-jdbc-beanutils in the following way: > For every method that involves a Date as it's parameter the original > getter and setter have to be renamed, for example, setDateDate instead > os setDate, so that the original setDate can be rewritten using Strings > as parameters. > > This fix the problem but I don't think it is a really good approach. Any > ideas? > > thanks > > Juan Pablo Morales > > Bernardinus wrote: > > >Hi Juan, > > > >Are you using the latest build? I think there were talks on this issue back > >sometime ago, and may have been fixed then. I don't know if that is the > >case, but checking out cvs code may help. > > > >cheers, > >/bernard > > > >----- Original Message ----- > >From: "Juan Pablo Morales" <ju-...@un...> > >To: <str...@li...> > >Sent: Tuesday, April 15, 2003 10:52 AM > >Subject: [Strutsgenerator-user] argument type mismatch > > > > > > > > > >>First thanks for such a great product. > >> > >>I have used StrutsGenerator and have generated the whole directory from > >>the database, but whenever I try to perform any operation that involves > >>a date field I get the message > >> > >>22:36:47,594 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot > >>invoke calendar.backend.model.Events.setFechaFin - argument type mismatch > >>22:36:47,599 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBe a > >n.java:1767) > > > > > >>22:36:47,601 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUt i > >lsBean.java:1748) > > > > > >>22:36:47,603 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUt i > >lsBean.java:1643) > > > > > >>22:36:47,604 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBea n > >.java:1672) > > > > > >>22:36:47,606 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1 0 > >31) > > > > > >>22:36:47,607 ERROR [STDERR] at > >> > >> > >> > >org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:820) > > > > > >>22:36:47,609 ERROR [STDERR] at > >>org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343) > >>22:36:47,610 ERROR [STDERR] at > >>calendar.backend.dao.DAO.populate(DAO.java:39) > >> > >> > >>When I look into BeanUtils I see that it gets the date, namely > >>2003-09-03 as a String, instead of as a java.util.Date. Has anybody > >>experienced this problem? > >> > >> > >>Thanks > >> > >>Juan Pablo Morales > >> > >> > >> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Strutsgenerator-user mailing list > Str...@li... > https://lists.sourceforge.net/lists/listinfo/strutsgenerator-user > > |
From: Juan P. M. <ju_...@ho...> - 2003-04-18 18:45:15
|
It is indeed the latest build, taken from CVS. Looking into it, I think I found what could be a fix: In DAO.java, line 44 it reads BeanUtils.populate(bean, properties); However, that method is intended for use with web request parameters, and cannot distinguish between a date and a String (it can, however tell a number form a String, and that's why it works with numbers and not dates) it could be changed for PropertyUtils.copyProperties(bean, properties); Does anybody see hidden side effects that would make this solution undesirable? Thanks Juan Pablo Morales Bernardinus wrote: >Hi Juan, > >Are you using the latest build? I think there were talks on this issue back >sometime ago, and may have been fixed then. I don't know if that is the >case, but checking out cvs code may help. > >cheers, >/bernard > >----- Original Message ----- >From: "Juan Pablo Morales" <ju-...@un...> >To: <str...@li...> >Sent: Tuesday, April 15, 2003 10:52 AM >Subject: [Strutsgenerator-user] argument type mismatch > > > > >>First thanks for such a great product. >> >>I have used StrutsGenerator and have generated the whole directory from >>the database, but whenever I try to perform any operation that involves >>a date field I get the message >> >>22:36:47,594 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot >>invoke calendar.backend.model.Events.setFechaFin - argument type mismatch >>22:36:47,599 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBea >n.java:1767) > > >>22:36:47,601 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUti >lsBean.java:1748) > > >>22:36:47,603 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUti >lsBean.java:1643) > > >>22:36:47,604 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean >.java:1672) > > >>22:36:47,606 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:10 >31) > > >>22:36:47,607 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:820) > > >>22:36:47,609 ERROR [STDERR] at >>org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343) >>22:36:47,610 ERROR [STDERR] at >>calendar.backend.dao.DAO.populate(DAO.java:39) >> >> >>When I look into BeanUtils I see that it gets the date, namely >>2003-09-03 as a String, instead of as a java.util.Date. Has anybody >>experienced this problem? >> >> >>Thanks >> >>Juan Pablo Morales >> >> |
From: Juan P. M. <ju_...@ho...> - 2003-04-17 05:12:48
|
It is indeed the last build. The error can be corrected by tricking java-jdbc-beanutils in the following way: For every method that involves a Date as it's parameter the original getter and setter have to be renamed, for example, setDateDate instead os setDate, so that the original setDate can be rewritten using Strings as parameters. This fix the problem but I don't think it is a really good approach. Any ideas? thanks Juan Pablo Morales Bernardinus wrote: >Hi Juan, > >Are you using the latest build? I think there were talks on this issue back >sometime ago, and may have been fixed then. I don't know if that is the >case, but checking out cvs code may help. > >cheers, >/bernard > >----- Original Message ----- >From: "Juan Pablo Morales" <ju-...@un...> >To: <str...@li...> >Sent: Tuesday, April 15, 2003 10:52 AM >Subject: [Strutsgenerator-user] argument type mismatch > > > > >>First thanks for such a great product. >> >>I have used StrutsGenerator and have generated the whole directory from >>the database, but whenever I try to perform any operation that involves >>a date field I get the message >> >>22:36:47,594 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot >>invoke calendar.backend.model.Events.setFechaFin - argument type mismatch >>22:36:47,599 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBea >n.java:1767) > > >>22:36:47,601 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUti >lsBean.java:1748) > > >>22:36:47,603 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUti >lsBean.java:1643) > > >>22:36:47,604 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean >.java:1672) > > >>22:36:47,606 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:10 >31) > > >>22:36:47,607 ERROR [STDERR] at >> >> >> >org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:820) > > >>22:36:47,609 ERROR [STDERR] at >>org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343) >>22:36:47,610 ERROR [STDERR] at >>calendar.backend.dao.DAO.populate(DAO.java:39) >> >> >>When I look into BeanUtils I see that it gets the date, namely >>2003-09-03 as a String, instead of as a java.util.Date. Has anybody >>experienced this problem? >> >> >>Thanks >> >>Juan Pablo Morales >> >> >> |
From: Bernardinus <bbe...@gm...> - 2003-04-15 04:43:55
|
Hi Juan, Are you using the latest build? I think there were talks on this issue back sometime ago, and may have been fixed then. I don't know if that is the case, but checking out cvs code may help. cheers, /bernard ----- Original Message ----- From: "Juan Pablo Morales" <ju-...@un...> To: <str...@li...> Sent: Tuesday, April 15, 2003 10:52 AM Subject: [Strutsgenerator-user] argument type mismatch > First thanks for such a great product. > > I have used StrutsGenerator and have generated the whole directory from > the database, but whenever I try to perform any operation that involves > a date field I get the message > > 22:36:47,594 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot > invoke calendar.backend.model.Events.setFechaFin - argument type mismatch > 22:36:47,599 ERROR [STDERR] at > org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBea n.java:1767) > 22:36:47,601 ERROR [STDERR] at > org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUti lsBean.java:1748) > 22:36:47,603 ERROR [STDERR] at > org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUti lsBean.java:1643) > 22:36:47,604 ERROR [STDERR] at > org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean .java:1672) > 22:36:47,606 ERROR [STDERR] at > org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:10 31) > 22:36:47,607 ERROR [STDERR] at > org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:820) > 22:36:47,609 ERROR [STDERR] at > org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343) > 22:36:47,610 ERROR [STDERR] at > calendar.backend.dao.DAO.populate(DAO.java:39) > > > When I look into BeanUtils I see that it gets the date, namely > 2003-09-03 as a String, instead of as a java.util.Date. Has anybody > experienced this problem? > > > Thanks > > Juan Pablo Morales > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Strutsgenerator-user mailing list > Str...@li... > https://lists.sourceforge.net/lists/listinfo/strutsgenerator-user > > |
From: Juan P. M. <ju-...@un...> - 2003-04-15 03:53:14
|
First thanks for such a great product. I have used StrutsGenerator and have generated the whole directory from the database, but whenever I try to perform any operation that involves a date field I get the message 22:36:47,594 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot invoke calendar.backend.model.Events.setFechaFin - argument type mismatch 22:36:47,599 ERROR [STDERR] at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1767) 22:36:47,601 ERROR [STDERR] at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1748) 22:36:47,603 ERROR [STDERR] at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1643) 22:36:47,604 ERROR [STDERR] at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1672) 22:36:47,606 ERROR [STDERR] at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1031) 22:36:47,607 ERROR [STDERR] at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:820) 22:36:47,609 ERROR [STDERR] at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343) 22:36:47,610 ERROR [STDERR] at calendar.backend.dao.DAO.populate(DAO.java:39) When I look into BeanUtils I see that it gets the date, namely 2003-09-03 as a String, instead of as a java.util.Date. Has anybody experienced this problem? Thanks Juan Pablo Morales |
From: Azrul A. <jav...@ya...> - 2002-09-06 21:46:00
|
Struts Generator 1.1.0 beta, need to finish example, templates and documentation before release. -- -roel- ________________________ http://www.javanovic.com __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ |
From: Azrul A. <jav...@ya...> - 2002-08-31 16:46:30
|
Karapan Sapi 1.1.0 early access has been released. New feature implemented: - Reverse from database Karapan Sapi xml can be constructed from existing database. from directory dist, run in the command line: *d:\> reverse.bat driver database url user password result.xml* Of course you must first change the database driver path in file reverse.bat - XML & XSLT templating With XML & XSLT templating, you can have your web design whatever you want. Just make your own entry.xls and menu.xsl in directory bin/xslt. Currently only accessible via Anonymous CVS, packages will be released after thorough testing. __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ |