Re: [appfuse-user] Re: Re: How to create parent objects?

2008-03-31 Thread Dustin Pearce
I think you are both right on the button. When you need to manipulate a series of objects and you want those changes to be in a single transaction, then a Manager is your friend. At one point I found that I kept writing Manager methods that are just reflections of my DAO methods. I foun

Re: [appfuse-user] Re: Re: Appfuse .war in tomcat

2008-03-31 Thread Nathan Anderson
Hi Derek, I remembered (and found) some more issues with Ubuntu 7.10. See the updated OS Specific Issues page for the goods... Nathan - "Derek Broughton" <[EMAIL PROTECTED]> wrote: > Nathan Anderson wrote: > > > Hi Derek, > > > > I don't remember the error message, but I had some issue

Re: [appfuse-user] Has any one ever use Parancoe?

2008-03-31 Thread Le Anh Tuan
Hi Matt, I will try it my self and post result with step-step intruction to the list. Hope this could help simplify our dao layer. Thanks. Matt Raible wrote: I've never heard of this framework until you pointed it out. You may be able to add it's dao layer as a dependency (if it's a Maven arti

Re: [appfuse-user] Has any one ever use Parancoe?

2008-03-31 Thread Matt Raible
I've never heard of this framework until you pointed it out. You may be able to add it's dao layer as a dependency (if it's a Maven artifact). I'm not sure, I haven't tried it myself. Matt On Mon, Mar 31, 2008 at 10:45 PM, Le Anh Tuan <[EMAIL PROTECTED]> wrote: > Hi all, > I happene to know a ve

Re: [appfuse-user] Re: Re: How to create parent objects?

2008-03-31 Thread Rob Hills
Hi Nathan, Nathan Anderson wrote: Derek - the fact that you have an object that has two "parents" is just another way of saying you have a many to many relationship. Every JE has exactly one Account and one Transaction, so it is the "join table" of your many to many relationship. As for the act

[appfuse-user] Has any one ever use Parancoe?

2008-03-31 Thread Le Anh Tuan
Hi all, I happene to know a very useful framework named Parancoe (http://www.parancoe.org/). By using parancoe, we can create dao very easily by only writing interface and desired dao methods, not implementation (see http://www.parancoe.org/articles/2007/08/28/how-to-add-finder-methods-to-para

Re: [appfuse-user] Re: Re: Appfuse .war in tomcat

2008-03-31 Thread Nathan Anderson
Hi Derek, I just remembered the other problem I had. Make sure that all the files in the tomcat directory are owned by the tomcat user (I think it is tomcat55 or something like that). There is a problem where if the /var/lib/tomcat5.5/logs isn't owned by the tomcat user then tomcat won't sta

Re: [appfuse-user] Re: Re: How to create parent objects?

2008-03-31 Thread Nathan Anderson
Hi again, Derek - the fact that you have an object that has two "parents" is just another way of saying you have a many to many relationship. Every JE has exactly one Account and one Transaction, so it is the "join table" of your many to many relationship. As for the action only being able

Re: [appfuse-user] Re: Re: How to create parent objects?

2008-03-31 Thread Rob Hills
Hi, Derek Broughton wrote: Nathan Anderson wrote: Okay, if the DB transactional safety can be ignored in this example. The only way that comes to mind to make this work is to have your JE objects have an option Transaction property. Then after you create the Transaction instance you would

[appfuse-user] Re: Re: How to create parent objects?

2008-03-31 Thread Derek Broughton
Nathan Anderson wrote: > Okay, if the DB transactional safety can be ignored in this example. The > only way that comes to mind to make this work is to have your JE objects > have an option Transaction property. Then after you create the > Transaction instance you would set it on each of the JE'

Re: [appfuse-user] Re: How to create parent objects?

2008-03-31 Thread Nathan Anderson
Okay, if the DB transactional safety can be ignored in this example. The only way that comes to mind to make this work is to have your JE objects have an option Transaction property. Then after you create the Transaction instance you would set it on each of the JE's. Does that work for your

[appfuse-user] Re: Re: Appfuse .war in tomcat

2008-03-31 Thread Derek Broughton
Nathan Anderson wrote: > Hi Derek, > > I don't remember the error message, but I had some issues when I upgraded > to Ubuntu 7.10. See the link for explanation of the problem and the > solution that I used: > > http://appfuse.org/display/APF/OS+Specific+Issues > > If this is not your problem

[appfuse-user] Re: Re: Appfuse .war in tomcat

2008-03-31 Thread Derek Broughton
Nathan Anderson wrote: > Hi Derek, > > I don't remember the error message, but I had some issues when I upgraded > to Ubuntu 7.10. See the link for explanation of the problem and the > solution that I used: > > http://appfuse.org/display/APF/OS+Specific+Issues > > If this is not your problem

[appfuse-user] Re: How to create parent objects?

2008-03-31 Thread Derek Broughton
Nathan Anderson wrote: > Hello all, > > I assume a "JE" is a Journal Entry and in modern accounting practices it > is typical that a single "Transaction" has at least 2 JE's. What I'm not > sure about is why the JE's are required to be created before the > Transaction. This sounds like a case w

[appfuse-user] Re: How to create parent objects?

2008-03-31 Thread Derek Broughton
dusty wrote: > > Yeah Derek, we are not sure what a JE is, and transaction can mean a > number > of things. Can you post your model code and describe what you are trying > to do in a little more detail? > "what" a JE or Transaction is is really irrelevant. They're just records. If this was

Re: [appfuse-user] Re: Appfuse .war in tomcat

2008-03-31 Thread Nathan Anderson
Hi Derek, I don't remember the error message, but I had some issues when I upgraded to Ubuntu 7.10. See the link for explanation of the problem and the solution that I used: http://appfuse.org/display/APF/OS+Specific+Issues If this is not your problem and you find a solution. That wiki pag

[appfuse-user] Re: Appfuse .war in tomcat

2008-03-31 Thread Derek Broughton
Sorry this isn't threaded, it's not on my server anymore. Did anybody figure out the problem in http://www.nabble.com/Re:-Appfuse-.war-in-tomcat-p15061918s2369.html in which Tomcat refuses to load the appfuse project war file with nothing more than a: SEVERE: Error listenerStart message? The us

[appfuse-user] Re: Displaying list (with DisplayTag) starting at last page

2008-03-31 Thread Derek Broughton
dusty wrote: > > I think I get what you are saying. I don't think there is an easy way to > do that in displayTag, but you could do the following instead: > > * Remove DisplayTags paging links and replace with your own. > * Determine what years you want to display and then create a link for ea

Re: [appfuse-user] How to create parent objects?

2008-03-31 Thread Nathan Anderson
Hello all, I assume a "JE" is a Journal Entry and in modern accounting practices it is typical that a single "Transaction" has at least 2 JE's. What I'm not sure about is why the JE's are required to be created before the Transaction. This sounds like a case where you want to use a database

Re: [appfuse-user] How to create parent objects?

2008-03-31 Thread dusty
Yeah Derek, we are not sure what a JE is, and transaction can mean a number of things. Can you post your model code and describe what you are trying to do in a little more detail? Derek Broughton-2 wrote: > > I am s frustrated. > > I have an accounting app, where accounts have JEs, and

Re: [appfuse-user] adding manager class to UserAction.java

2008-03-31 Thread dusty
My guess is that you have entered the correct setter method in the UserAction.java but at runtime the original org.appfuseUserAction code is being run. This has has to do with how you have your project setup. How are you getting UserAction.java into your projects source code? mvn appfuse:fu

Re: [appfuse-user] Displaying list (with DisplayTag) starting at last page

2008-03-31 Thread dusty
I think I get what you are saying. I don't think there is an easy way to do that in displayTag, but you could do the following instead: * Remove DisplayTags paging links and replace with your own. * Determine what years you want to display and then create a link for each year that will filter

[appfuse-user] Re: Re: Displaying list (with DisplayTag) starting at last page

2008-03-31 Thread Derek Broughton
Philip Barlow wrote: > Ok, from experience, if i was displaying transactional data to a user, > (I don't know if your data contains transactions) i would sort by most > recent first, so page 1 is 2007, page 2 is 2006, most people seem fine > with this. This is also how banks show your transactions

Re: [appfuse-user] Re: Displaying list (with DisplayTag) starting at last page

2008-03-31 Thread Philip Barlow
Ok, from experience, if i was displaying transactional data to a user, (I don't know if your data contains transactions) i would sort by most recent first, so page 1 is 2007, page 2 is 2006, most people seem fine with this. This is also how banks show your transactions online and on statements?

[appfuse-user] Re: Displaying list (with DisplayTag) starting at last page

2008-03-31 Thread Derek Broughton
Philip Barlow wrote: > Hi Derek, > > I think you may be over complicating this issue but i am not fully sure > what you are trying to achieve. Is it not as simple as sorting your > list, so the page you want to display first is page 1 of 7 and page 2 of > 7, 3 of 7 etc. contains the relevant foll

[appfuse-user] velocity logging

2008-03-31 Thread Kai Moritz
Hi Folks, I had troubles running my packed Appfuse-Application on my Tomcat-Server. As it turned out, velocity was not able to create its logfile in the "current" directory through the avalon logkit. After an hour of painfull work, I found out, how I have to configure velocity through its prope