[Rife-users] AspectJ bis
Geert, I'm still trying to get AspectJ working with Rife. Atm, as far as joinpoints are in my projects it's ok. But when I try to define a poincut with some joinpoints in rife-1.3-snapshot-jdk15.jar, it doesn't work, with errors from inside rife jar... So I tried to compile rife from svn repository. And then I get this error with build-1.5.xml: precompileSqlTemplates: [echo] Precompiling sql templates: [java] The path '.project' is not a directory. BUILD FAILED C:\DEV\Rife\rife-svn\build-1.5.xml:347: Java returned: 1 I'm working with Eclipse+Subclipse under Windows XP. Even if I add some "-e" parameter, I get System.exit from TemplateDeployer's ctor with file name as ".project". In fact TemplateDeployer checks directory names in its ctor, before the exclusion step in its execute function. May I suggest to replace the exit instructions in the ctor by continue ones (just keep the warnings). Other issue: in target "precompileSqlTemplates", there is an include parameter, This pattern becomes ".classpath" in TemplateDeployer.main. I don't really understand this behavior. May be because ${dbdriver}= "*", so the final pattern is equivalent to ".*"? Anyhow with the pattern ".classpath", none of the sql templates are found by TemplateException execute. Is it at purpose, to avoid taking in account any sql files if no driver is specified? Regards Pierre ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] fill inbean into template (2)
Hi Matthias, you're getting the String representation of the serialized version of the date instance there. There are several ways to format, you can use your bean: template.setValue("INPUT:pqeDt", simple_date_formatter.format (mybean.getPqeDt())); or deserialize yourself: Date pqedt = (Date)SerializationUtils.deserializeFromString(getInput ("INPUT:pqeDt")); template.setValue("INPUT:pqeDt", simple_date_formatter.format(pqedt)); It's probably best to then remove the "INPUT:" prefix for clarity, thought you can leave it there too. In general though, if you're working with non-primitive bean properties, it's a better idea to do everything through the bean. A lot will be automated for you then. You're able to attach a format constraint to each property, and if it's not there, the toString() method will be called. The values will also automatically be HTML encoded for you. The steps then simply are: YourBean bean = getInputBean(YourBean.class); template.setBean(bean); You have to remove the "INPUT:" prefix for this though, or call the setBean method as follows: template.setBean(bean, "INPUT:"); Best regards, Geert On 13-nov-05, at 10:45, Matthias Schmitt wrote: Hello, i've got another question: You have to set them through the Template setBean method, or prefix the name of each property with 'INPUT:'. Like this: DruckLog für Auftrag: KennungZeitstempelDruckerHost Nachricht The second parameter "pqeDt" of my inbean is of type java.util.Date. Instead of displaying the date, the template engine gives me something like an hashcode "ADFR4FD8" How can i display the date, and how can i set the format of this date? -- gruss, Matthias ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] fill inbean into template (2)
Hello, i've got another question: You have to set them through the Template setBean method, or prefix the name of each property with 'INPUT:'. Like this: DruckLog für Auftrag: KennungZeitstempelDruckerHost Nachricht The second parameter "pqeDt" of my inbean is of type java.util.Date. Instead of displaying the date, the template engine gives me something like an hashcode "ADFR4FD8" How can i display the date, and how can i set the format of this date? -- gruss, Matthias ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users