Re: Tapestry to generate mails ?

2006-05-03 Thread Mark
I would agree with you if Tapestry would be used for email only and nothing else, but if you have an application that is all Tapestry and in one or two places the application requires sending out an email, I think using Tapestry for that would make more sense than to add (meaning deploy, config

Re: [tapernate] Session-Per-Conversation...

2006-05-03 Thread Mark
I mainly wrote that because you were thinking about annotations for the transaction demarcation... James Carman wrote: I'll have to look at it, but I don't know that I use any 1.5-specific features. I think I only have one place where I use a "typed" collection (in the persistence strategy), b

Re: affiliate program

2006-05-03 Thread Robin Ericsson
Can't we just get rid of this? On 5/4/06, Apache <[EMAIL PROTECTED]> wrote: affiliate-program (http://affiliate-program-.blogspot.com) m2f Sent from www.TapestryForums.com Read this topic online here: <> http://www.tapestryforums.com/viewtopic.php?p

Re: Picking date format in localization using message-binding?

2006-05-03 Thread Mark
Cool idea... So I guess I won't entirely get around writing a few lines of code... Thanks for the ideas MARK Sam Gendler wrote: Or you could store the format string as a localized message, pass it to the SimpleDateFormat object, and format european dates for europeans, us dates for americans,

Re: Weird NoClassDefFoundError

2006-05-03 Thread Istvan Zakar
Hi! I have a somolar problem few weeks ago. Are you using the same version of Java for compiling and running? brg, Istvan On 5/3/06, Rob Dennett <[EMAIL PROTECTED]> wrote: Thanks. Here is the stack trace * model.daos.SessionCreatorImpl.(SessionCreatorImpl.java:14) * sun.reflect.Na

RE: Tapestry to generate mails ?

2006-05-03 Thread albartell
Ah! I hit send before it was ready. Here is the link I meant to send. http://www.stringtemplate.org/ -Original Message- From: albartell [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:04 PM To: Tapestry users; [EMAIL PROTECTED] Subject: RE: Tapestry to generate mails ? He

RE: Tapestry to generate mails ?

2006-05-03 Thread albartell
Here is the tooling I just implemented last week to template emails -Original Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 4:37 PM To: tapestry-user@jakarta.apache.org Subject: Tapestry to generate mails ? Hi, I would like to know if anybody

RE: Tapestry to generate mails ?

2006-05-03 Thread andyhot
True. On the other hand, did you know that there's an email app using Tapestry. They used custom implementations for WebRequest, WebResponse, e.t.c. to abstract the send and receive process. It's a bizarre use of Tapestry, but it's quite interesting, wouldn't you agree? >From James Carman <[EMAI

RE: Tapernate Questions

2006-05-03 Thread James Carman
Ben, Sorry I didn't get back to you. But, with respect to the persistence strategy, that's about right. I think you've got it. The squeezer does squeeze the entities based on their persistent identity also. James -Original Message- From: Ben Dotte [mailto:[EMAIL PROTECTED] Sent: Wed

RE: Tapestry to generate mails ?

2006-05-03 Thread James Carman
Tapestry is for creating interactive HTML, not a static HTML-formatted email (IMHO). I think you're trying to use an elephant gun to hunt squirrel here. Velocity is perfect for generating email text. You can still use your architecture, you just put some helper beans in the VelocityContext. ---

Re: Tapestry to generate mails ?

2006-05-03 Thread andyhot
I had this related link over at my delicious ( http://del.icio.us/andyhot/tapestry ). It's entitled 'Sending Tapestry-generated email with Spring' and it's at: http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html >From Stephane Decleire <[EMAIL PROTECTED]>: > Hi, > > I would l

Re: Picking date format in localization using message-binding?

2006-05-03 Thread Sam Gendler
Or you could store the format string as a localized message, pass it to the SimpleDateFormat object, and format european dates for europeans, us dates for americans, etc. --sam On 5/3/06, Eric Fesler <[EMAIL PROTECTED]> wrote: An easy way would be to use a page property to return the formatted

Tapestry to generate mails ?

2006-05-03 Thread Stephane Decleire
Hi, I would like to know if anybody use Tapestry to generate its email ? Indeed, generate mails based on templates is very similar to generate HTML pages ... As an exemple, i would like to implement the famous "I've forgot my password" by sending the user an email based on a template where the

RE: Tapernate Questions

2006-05-03 Thread Ben Dotte
In thinking about this some more and searching the mailing list, I think I have come to a more logical conclusion about how Tapernate works. But again, it would be great if someone familiar with the project could confirm/deny this: The "entity" persistence strategy is just used to load objects fro

RE: Popup on LinkSubmit

2006-05-03 Thread Wes Bramhall
Well, I just started working on something very similar. I want to submit a form using a LinkSubmit and render the response to that submission in a new window. After looking at it myself for a little bit, I got the window to pop up and the response to render in the parent, so not quite what I had in

[OT] coberta code coverage on tapestry component classes with maven 2

2006-05-03 Thread Dan Adams
Okay, I have a number of modules and I want to generate code coverage for them with cobertura. Some of the classes can be tested with normal unit tests so they are not a problem. Some of the classes, however, are Tapestry components. To test them I have a separate module called integration-tests th

Tapestry, HtmlUnit and HiveMind services

2006-05-03 Thread Rob Dennett
I am trying to create tests for a Tapestry application that injects various services into page classes. How can I tell Tapestry to use mock services inside of my tests? For example, I have a page that displays some data from the database. This page doesn’t work because the database has no dat

tapestry documentation generation for maven 2

2006-05-03 Thread Dan Adams
Does anyone know of some useful plugins for generating tapestry/hivemind related documentation when generating a site in maven 2, specifically for generating component docs? -- Dan Adams Software Engineer Interactive Factory 617.235.5857 -

Re: HTML tables

2006-05-03 Thread Martijn Hinten
I can only agree. Please be aware that most people who answer to this list, do so in their spare time. Konstantin Ignatyev wrote: Such attitude is VERY bad in my opinion because if shows lack of respect for people's time. It is the responsibility of a developer to check a

RE: Weird NoClassDefFoundError

2006-05-03 Thread Rob Dennett
Thanks. Here is the stack trace * model.daos.SessionCreatorImpl.(SessionCreatorImpl.java:14) * sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) * sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) * sun.reflect.Dele

Re: Weird NoClassDefFoundError

2006-05-03 Thread Sergei Dubov
Maybe you're in fact missing a jar then. Send a full stack trace. -Serge Rob Dennett wrote: Thanks for your help, but I don't have a WEB-INF/lib folder. All the hibernate jars are located in shared/lib and my eclipse project links to them there. Are copies or multiple versions of a class di

Re: Tapernate squeezer implementation generates loong sp:s

2006-05-03 Thread Ted Steen
If the entityName and the id where somehow accessible outside EntityIdentity I could just implement an EntityIdentitySqueezer that would behave as the EntityIdentityTransformer you mentioned, but you are right. The id is just a serializable and could also be a composite id, so a nice general solut

RE: Weird NoClassDefFoundError

2006-05-03 Thread Rob Dennett
Thanks for your help, but I don't have a WEB-INF/lib folder. All the hibernate jars are located in shared/lib and my eclipse project links to them there. Are copies or multiple versions of a class disallowed by the Tomcat classloader? If not, what else could be causing the problem? Thanks fo

Tapernate Questions

2006-05-03 Thread Ben Dotte
I was just taking a look at Tapernate for the first time and I was hoping James or someone familiar with it could verify my understanding of how it works and clear up a few things: - Persistent properties are squeezed/unsqueezed based on their Hibernate session identity. - The @Persist("entity

RE: HTML tables

2006-05-03 Thread Konstantin Ignatyev
Sure it would. Personally I do not have issues paying fair price for valuable information or tool. I ma getting paid for my work and I do not ming passing that money to the people and companies which make my job more convenient and meaningful. Provided that they charge

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Schulte Marcus
Firstly, I'm not against merging. But obviously there are a couple of differences in goals and style that need to be addressed properly beforehand, since it implies a lot of (tedious) work. I still hope that we can, at least, factor out common parts (btw. honey-excel is already such a completely in

Re: HTML tables

2006-05-03 Thread Rui Pacheco
Come on, if you come to a mailing list its because you're lost and you need the experience of others. Giving a couple of pointers, some keywords to use with Google, costs nothing, both in terms of money and effort. On 5/3/06, James Carman <[EMAIL PROTECTED]> wrote: Of course, pointing someone t

Re: Weird NoClassDefFoundError

2006-05-03 Thread Sergei Dubov
Classloading issues. You probably have the tapestry related jars (how about the same annotations jar?) in your WEB-INF/lib. I'd remove everything from shared/lib and keep the dependencies application specific. Serge Rob Dennett wrote: I am getting a weird NoClassDefFoundError when I try t

RE: HTML tables

2006-05-03 Thread James Carman
Of course, pointing someone to *free* external resources would be a bit nicer. -Original Message- From: Konstantin Ignatyev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:50 AM To: Tapestry users Subject: Re: HTML tables Such attitude is VERY bad in my

Re: HTML tables

2006-05-03 Thread Konstantin Ignatyev
Such attitude is VERY bad in my opinion because if shows lack of respect for people's time. It is the responsibility of a developer to check and study all the available resources and only then seek for help in the list for something that looks non-trivial. In my opini

Re: HTML tables

2006-05-03 Thread Rui Pacheco
True, but this example is also a good lead to start from. And giving advice like buy Kent's book renders the purporse of the mailing list useless, me thinks. On 5/3/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: On 03. Mai 2006 - 11:29:36, Mike Snare wrote: | Seriously, you need to buy kent's

Re: HTML tables

2006-05-03 Thread Andreas Bulling
On 03. Mai 2006 - 11:29:36, Mike Snare wrote: | Seriously, you need to buy kent's book. Or maybe look at the | documentation for the TableView component and/or the For component. No offence, but all those "buy Kent's book and read it" advices don't help if one needs a _quick_ answer to his questi

Weird NoClassDefFoundError

2006-05-03 Thread Rob Dennett
I am getting a weird NoClassDefFoundError when I try to start my application. The error is thrown when I call new AnnotationConfiguration(). The code compiles and hibernate-annotations.jar is in [tomcat-home]/shared/lib. Any ideas? Below is the relevant code (I think). Thanks for your he

Re: HTML tables

2006-05-03 Thread Mike Snare
Seriously, you need to buy kent's book. Or maybe look at the documentation for the TableView component and/or the For component. -Mike On 5/3/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: But how do you iterate through a recordset to create those tables and keep Tapestry's model of separation of

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
Well, I just posted it to the forum too. -Original Message- From: Konstantin Ignatyev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:27 AM To: Tapestry users Subject: RE: Insert/Update pages and Hibernate HIbernate community practice is to submit issues for filtering in the f

RE: Insert/Update pages and Hibernate

2006-05-03 Thread Konstantin Ignatyev
HIbernate community practice is to submit issues for filtering in the forum first and only after that promote them to JIRA bug tracking if necessary. James Carman <[EMAIL PROTECTED]> wrote: Well, I would still consider it a bug. It's one thing to expect Hibernate to rollback values that I set

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
Well, I would still consider it a bug. It's one thing to expect Hibernate to rollback values that I set on my objects during the course of a transaction. It doesn't do that. But, it's an entirely different thing to expect Hibernate to rollback values that *it* sets on my objects (or not set them

RE: Insert/Update pages and Hibernate

2006-05-03 Thread Konstantin Ignatyev
I see. But still think it is rather feature than 'bug'. Send it to Hibernate forum please I couls be wrong. James Carman <[EMAIL PROTECTED]> wrote: Well, I would consider it a bug. This doesn't just happen on saveOrUpdate(). And, you don't have to flush the session to get it to happen either.

Re: HTML tables

2006-05-03 Thread Rui Pacheco
But how do you iterate through a recordset to create those tables and keep Tapestry's model of separation of concerns? On 5/3/06, Mark Stang <[EMAIL PROTECTED]> wrote: We create tables as just plain html and then embed DirectLinks with parameters. Doesn't have to be that difficult. -Origi

Re: Insert/Update pages and Hibernate

2006-05-03 Thread Paul Cantrell
Konstantin's idea of using the domain object itself as an edit buffer is exactly what I'm saying often leads to trouble. It *can* work -- it just ends up being unnecessarily complicated in most cases. However, I agree with him that this is *really* not a bug in Hibernate. The Hibernate team

RE: HTML tables

2006-05-03 Thread Mark Stang
We create tables as just plain html and then embed DirectLinks with parameters. Doesn't have to be that difficult. -Original Message- From: Steve Lianoglou [mailto:[EMAIL PROTECTED] Sent: Wed 5/3/2006 7:48 AM To: Tapestry users Subject: Re: HTML tables > Well the easiest way would be t

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
Well, I would consider it a bug. This doesn't just happen on saveOrUpdate(). And, you don't have to flush the session to get it to happen either. Check out the main method on this class: http://www.carmanconsulting.com/svn/public/tapernate/trunk/src/test/com/carm anconsulting/tapernate/util/Ses

RE: Insert/Update pages and Hibernate

2006-05-03 Thread Konstantin Ignatyev
Do not think this is a 'bug'. SaveOrUpdate is a 'convenience' feature and if different strategy is necessary then it can be implemented /easily/ in the application DAO layer. Although I personally never needed that, saveOrUpdate magic combined with 'assigned' identifiers work quite well for me.

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
That doesn't avoid the problem where the id can be set, but the row isn't actually written to the database. The next time a request comes in, that object will have its id property set and Hibernate will think it's a persistent object (when you go to merge), when it really is not. This is quite a

RE: Insert/Update pages and Hibernate

2006-05-03 Thread Konstantin Ignatyev
Object itself could be such a buffer (or rather working copy of an object) and later it can be merged with Hibernate session /session.merge() / when necessary For the comparison fairness I simply pointed to the fact that Struts does not require all the object fieds to be duplicated in ActionFor

RE: [tapernate] Session-Per-Conversation...

2006-05-03 Thread Konstantin Ignatyev
Transactions - HibernateTemplate does not propagate transactions, it is roughly equal to the use of autocommit mode in JDBC. Jim Steinberger <[EMAIL PROTECTED]> wrote: What technical arguments from that blog-thread do you find so compelling? -Original Message- From: Konstantin Iignat

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
Well, the only thing Tapernate is missing right now (AFAIK) is the transaction-per-conversation support. I know Marcus has done that already in Honeycomb, so I will be "combing" (couldn't resist) through it to see what I can steal...cough...cough...borrow. ;-) What is needed is a good way to dema

Re: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Hugo Palma
I agree that tapernate feels more hibernish then honeycomb. I guess the suggestion here would be to break honeycomb into several plugable jars each one providing an integration with a different technology. One of these could then could be a merge of tapernate and honeycomb hibernate integration.

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
I am going to be moving it to http://howardlewisship.com/tapestry-javaforge/ soon. So, it will have a website and some documentation. I just need to get around to it. The source code will also be hosted at JavaForge inside the "tapestry" project there. -Original Message- From: Jesse Ku

Re: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Jesse Kuhnert
That's an excellent question :) You can get the actual library via the public svn server at http://carmanconsulting.com/, but if this is supposed to be "the" tapestry hibernate library it certainly is going to need a website + docs. On 5/3/06, Chris Chiappone <[EMAIL PROTECTED]> wrote: I would

Re: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Chris Chiappone
I would be interested in looking into tapernate also. Is there any documentation or website about it? Is it just a drop in jar? And where can I download from? Thanks On 5/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: As much as I'd like to be loyal to honeycomb, when it came down to evalua

Re: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Jesse Kuhnert
As much as I'd like to be loyal to honeycomb, when it came down to evaluating both and choosing one to reccomend to a client I ended up going with tapernate. I feel it most closely fits in with the style of development that tapestry and hivemind both try to achieve. (funny that, considering that

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
I don't know about that, necessarily. We have discussed it in the past. However, the scope of Tapernate is less than what Honeycomb is trying to achieve. Tapernate is supposed to be the "way to do hibernate within tapestry." But, Honeycomb has other pieces (auditing, excel exporting, etc.) to it

Re: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Hugo Palma
I see that. So what you're trying to say is that tapernate and honeycomb approachs are too diferent implementation wise for them to be merged into a single project ? On 5/3/06, James Carman <[EMAIL PROTECTED]> wrote: I chose to use the Spring stuff to manage the current sessions and allow for d

Re: HTML tables

2006-05-03 Thread Steve Lianoglou
Well the easiest way would be to look it up in the documentation. Kent's book, for example. Or you could suggest a whack at some investigation/googling on the contrib:Table component. I think I used the tutorials here [1] when I had to figure it out -- this was back in the Tap3 days ... I

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
I chose to use the Spring stuff to manage the current sessions and allow for declarative transaction demarcation since I know that stuff works quite well. I don't use Spring IoC at all. I just added the Spring stuff into my HiveMind "object soup." -Original Message- From: Hugo Palma [m

Re: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Hugo Palma
That's one of the differences in implementation that i found. But i don't see that as a something that will drive my choice, as long as i don't have to use Spring IOC(hivemind will do just fine) for me it's just another jar in the classpath. On 5/3/06, James Carman <[EMAIL PROTECTED]> wrote: On

Re: HTML tables

2006-05-03 Thread Martijn Hinten
Well the easiest way would be to look it up in the documentation. Kent's book, for example. Rui Pacheco wrote: Hi all I'm new to Tapestry and I've been testing it for a project at work. I was wondering whats the easiest way to create html tables with navigational links. -- Cumprimentos, Rui

HTML tables

2006-05-03 Thread Rui Pacheco
Hi all I'm new to Tapestry and I've been testing it for a project at work. I was wondering whats the easiest way to create html tables with navigational links. -- Cumprimentos, Rui Pacheco

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
One big difference is the usage of the Spring classes within Tapernate. This is just a difference of opinion/direction. -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 9:04 AM To: Tapestry users Subject: Honeycomb vs Tapernate or Honeycomb wit

Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread Hugo Palma
Hi all, i've just started thinking about how Tapestry is going to be used in a new project at work. One of the decisions is how the integration with hibernate is going to be implemented, i'm guessing 95% of Tapestry projects goes through this. With this in mind i took a look at Honeycomb and at T

Re: Picking date format in localization using message-binding?

2006-05-03 Thread Eric Fesler
An easy way would be to use a page property to return the formatted date string. Ex: Current server date and time and on the page class/ public String getCurrentDateTime() { SimpleDateFormat df = new SimpleDateFormat(" d "); return df.format(new java.util.Date()); } --ERic On

Re: PageCallback and login issue (tapestry weakness?)

2006-05-03 Thread Mike Snare
Henri, This same issue has been discussed before (search the archives for my name and authentication), but I'll summarize what I've done and how it works -- and how it doesn't work. I've created an authentication interceptor that I attach to all the major engines. It simply checks for an authen

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
This is exactly what they're trying to avoid, putting "business objects" into their page logic. The problem with that, as pointed out earlier, is that it can leave your business objects in an invalid state (they have an identifier assigned to them, but the record isn't actually in the database). S

RE: [tapernate] Session-Per-Conversation...

2006-05-03 Thread James Carman
I'll have to look at it, but I don't know that I use any 1.5-specific features. I think I only have one place where I use a "typed" collection (in the persistence strategy), but that's not a must. I'll see what I can do. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: We

RE: Tapernate squeezer implementation generates loong sp:s

2006-05-03 Thread James Carman
Ted, I agree with you and the good thing is that the implementation can change without really affecting any of your code. I would like to keep folks from being able to just change a character in the URL and be able to look at something that maybe they're not supposed to. Also, you can't always j

Picking date format in localization using message-binding?

2006-05-03 Thread Mark
Hi, is there an easy way to pick the desired date format when using the message-bindings? In my example I have this in my html file: value="ognl:messages.format('currentServerDateAndTime', new java.util.Date())">Current server date and time: June 26 2005 The german resource entry looks like

RE: [tapernate] Session-Per-Conversation...

2006-05-03 Thread Jim Steinberger
What technical arguments from that blog-thread do you find so compelling? -Original Message- From: Konstantin Iignatyev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 2:04 AM To: Tapestry users Subject: Re: [tapernate] Session-Per-Conversation... Spring Hibernate Template is th

Re: Tapernate squeezer implementation generates loong sp:s

2006-05-03 Thread Ted Steen
Of course, but the url:s would be a lot prettier and, as I like to be picky, there would be a small performance gain too as the squeezer doesn't need to compress and convert to Base64... and also there would be somewhat less data to transfer between client and server :> Anyway, it wouldn't be hard