Re: [appfuse-user] generics and DAO

2006-12-21 Thread Georg Henzler
Hi Luiz, You can't get the type of a generic type because the type information is lost in the bytecode. The probably best solution for your problem is to overload the method so you can either go getObject(myExample) or getObject(MyClass.class) to make this possible you have to make sure y

Re: [appfuse-user] JSF Backing bean's application-specific class type attributes get nulled

2006-12-21 Thread Ron Anderson
What is happening is when you submit the form by selecting save, your request scoped stuff which was displayed to the browser on your edit isn't going to survive unless you have a way of carrying it across. On input fields in your jsp it gets carried across, if you want to bring other stuff tha

Re: [appfuse-user] Error doing ACL example

2006-12-21 Thread Richard Oss
I've followed the example and have hit the same wall as the post below. Any idea where I can start poking around? Anybody has a copy of the original source? The link for the source in the tutorial doe not work. Thanks for your help. springRookie wrote: > > I have completed the first six steps

[appfuse-user] JSF Backing bean's application-specific class type attributes get nulled

2006-12-21 Thread contact1981
I am using Appfuse with JSF. I generated DAOs, xhtml pages, Managers and much more using Appfuse. I have a backing bean for a form webpage. Using sample-data.xml, I load up pre-existing data. Therefore, there will be a backing bean containing pre-existing data for that particular form webpage

Re: [appfuse-user] tab issue in main page

2006-12-21 Thread Matt Raible
There is no tab character in HTML. You could use a combination or use   4 times to be a 4-space tab. Matt On 12/21/06, kkus <[EMAIL PROTECTED]> wrote: In 1.9.4 Spring MVC I modified message as below, mainMenu.message=Congratulations, you have logged in successfully! Now that you've logged

[appfuse-user] tab issue in main page

2006-12-21 Thread kkus
In 1.9.4 Spring MVC I modified message as below, mainMenu.message=Congratulations, you have logged in successfully! Now that you've logged in, you have the following options:\r\r \ \tTest1\r \ \tTest2 But in main page it sill me"... have the following options: Test1 Test2", which means tab isn'

Re: [appfuse-user] Question on class casting

2006-12-21 Thread maskkkk
I understand why, I just don't know what to do about it. It's because the OSBObject I wish to cast using ploymorphism is really just the proxy and not an actual object. So I guess I just need to find out how to tell the poxy to cast the OSBBaseObject it is proxying into a Chapter Object. Gojir

Re: [appfuse-user] Question on class casting

2006-12-21 Thread maskkkk
It is defined in sample-data.xml, I am running a JUnit test on the dao of Verse to retrieve a Chapter from the Verse. > = > | OSBBaseObj | > | > | id : Long| > | parent: OSBBaseObj| (@many-to-one) > | | > ---

Re: [appfuse-user] DaoUtil Error

2006-12-21 Thread Matt Raible
Here's the code from that class for your convenience: package org.appfuse.dao.jpa; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import javax.persistence.EmbeddedId; import javax.persistence.Id; import javax.persistence.PersistenceException; import org.ap

[appfuse-user] generics and DAO

2006-12-21 Thread Luiz Fernando Rodrigues
Hi, I was developing a generic method to get objects by example. The problem is that I have to inform the Class object, so I can search for all objects in case of a null parameter. Is it possible to get the object class from the generic type T? public List getObject(final T o, final Class claz

Re: [appfuse-user] Is the appgen eclipse plugin project dead?

2006-12-21 Thread Matt Raible
We should be able to offer similar support in an Eclipse Plugin as part of AppFuse 2. However, we have to finish it first, and then find someone interested in writing such a plugin. ;-) The good news is AppFuse 2.0 is much more "standard" (because it uses Maven and plugins) so it should be easie

Re: [appfuse-user] Role permissions

2006-12-21 Thread nutanc
Hi, Thanks that fixed it. -Chaitanya Matt Raible-3 wrote: > > You'll need to rename applicationContext-security.xml to security.xml > and change web.xml to have: > > > contextConfigLocation > > /WEB-INF/applicationContext-*.xml,/WEB-INF/security.xml > > > Instead of:

Re: [appfuse-user] Is the appgen eclipse plugin project dead?

2006-12-21 Thread mxc
>I've never heard of this plugin you speak of. Do you have a link? >Are you talking about the AppFuseGenerator project? Hi, Yes, sorry for the confusion. It has the url https://appfusegenerator.dev.java.net/ What I liked about it was its ability to process more than one table or pojo at onc

Re: [appfuse-user] DaoUtil Error

2006-12-21 Thread Matt Raible
It works for me at the following URL: http://tinyurl.com/y63k6w Matt On 12/21/06, André Faria <[EMAIL PROTECTED]> wrote: I was browsing in FishEye with Firefox 2... No SVN Clients... Matt Raible escreveu: > I've seen this with some SVN clients - which one are you using? > > Matt > > On 12/21/

Re: [appfuse-user] DaoUtil Error

2006-12-21 Thread André Faria
I was browsing in FishEye with Firefox 2... No SVN Clients... Matt Raible escreveu: I've seen this with some SVN clients - which one are you using? Matt On 12/21/06, André Faria <[EMAIL PROTECTED]> wrote: I cant see the DaoUtil class in FishEye: SVN Client exception fetching content: svn:

Re: [appfuse-user] DaoUtil Error

2006-12-21 Thread Matt Raible
I've seen this with some SVN clients - which one are you using? Matt On 12/21/06, André Faria <[EMAIL PROTECTED]> wrote: I cant see the DaoUtil class in FishEye: SVN Client exception fetching content: svn: PROPFIND request failed on '/svn/appfuse/sandbox/jpa-hibernate-module/data/jpa-hibern

[appfuse-user] DaoUtil Error

2006-12-21 Thread André Faria
I cant see the DaoUtil class in FishEye: SVN Client exception fetching content: svn: PROPFIND request failed on '/svn/appfuse/sandbox/jpa-hibernate-module/data/jpa-hibernate/src/main/java/org/appfuse/dao/jpa/DaoUtils.java' svn: can not read HTTP status line http://fisheye4.cenqua.com/browse/a

Re: [appfuse-user] Question on class casting

2006-12-21 Thread Bryan Noll
Looking at the mappings for these would help solve this. mas wrote: I have a base class (OSBBaseObject) which is extended by both Chapter and Verse (The mappings for the parent are defined in the OSBBaseObject) There is a parent-child relationship between Chapter and Verse. (many-to-on

Re: [appfuse-user] Question on class casting

2006-12-21 Thread Jason Brice
How is baseObj getting instantiated? Jason On 12/20/06, mas < [EMAIL PROTECTED]> wrote: I have a base class (OSBBaseObject) which is extended by both Chapter and Verse (The mappings for the parent are defined in the OSBBaseObject) There is a parent-child relationship between Chapter and

Re: [appfuse-user] JPA Template

2006-12-21 Thread Bryan Noll
Yes... I've read that, and I agree with it. Basically, if you don't have to extend an org.springframework.* class in order to get the functionality you want, than you shouldn't. That being said, I don't think it's a huge deal if you do. A small preference to the developer really. I have imp

Re: [appfuse-user] JPA Template

2006-12-21 Thread Matt Raible
Yes, this is what we're doing in the sandbox AFAIK. http://fisheye4.cenqua.com/viewrep/appfuse/sandbox Matt On 12/21/06, André Faria <[EMAIL PROTECTED]> wrote: *Did you read something about this? NOTE: JpaTemplate mainly exists as a sibling of JdoTemplate and HibernateTemplate, to offer the

Re: [appfuse-user] How to implement junction tables with xdoclet?

2006-12-21 Thread Matt Raible
If you know how to do the mapping in an .hbm.xml file, I'd recommend you do it that way. XDoclet is only provided as a convenience, it's not required. From the FAQ: - *Do I have to use XDoclet to generate my *.hbm.xml files? Is it possible to override a single hbm.xml file and create it by

Re: [appfuse-user] Is the appgen eclipse plugin project dead?

2006-12-21 Thread Matt Raible
I've never heard of this plugin you speak of. Do you have a link? Are you talking about the AppFuseGenerator project? I looked at that a while back and was somewhat turned off when I saw it actually packaged the different AppFuse distributions within it. The plugin was a 100 MB+ download. Matt

[appfuse-user] Is the appgen eclipse plugin project dead?

2006-12-21 Thread mxc
Hi there, It seems that the appgen project has not released an update for their eclipse plugin for awhile. Is the project dead? I tried the plugin with 3.2 but got a few errors. I sorted some of them out but eventuall gave up. Its a bit tedious to run ant install-detailed for each table manually

[appfuse-user] JPA Template

2006-12-21 Thread André Faria
Did you read something about this? NOTE: JpaTemplate mainly exists as a sibling of JdoTemplate and HibernateTemplate, to offer the same style for people used to it. For newly started projects, consider adopting the standard JPA style of coding data access objects instead, based on a "shared En

Re: [appfuse-user] OT: Suggestions for flat file library?

2006-12-21 Thread Sib
Regular expressions may be something you could look into. If you can do it with perl for example I would probably go with Apache ORO and probably: import org.apache.oro.text.perl.Perl5Util My 2 cents. Sib On 12/21/06, Bryan Noll <[EMAIL PROTECTED]> wrote: These may be worth p

Re: [appfuse-user] OT: Suggestions for flat file library?

2006-12-21 Thread Bryan Noll
These may be worth peaking at: http://jakarta.apache.org/commons/vfs/ http://jakarta.apache.org/commons/transaction/ (transaction access to data in files) In particularly... this may pique your interest. Problem is, it's still in the sandbox, so they haven't had an official release or anythi

Re: [appfuse-user] Problem with struts-menu template?

2006-12-21 Thread Matt Raible
Can you send a screenshot and the generated HTML or your menu-config.xml? It's tough to fix unless I can reproduce it. Matt On 12/21/06, Jasper Huzen <[EMAIL PROTECTED]> wrote: I am using version 1.9.4 of appfuse. Matt Raible-3 wrote: > > What version of AppFuse are you using? > > Matt > >

Re: [appfuse-user] max_user_connections

2006-12-21 Thread Fan
Opps, i found it at applicationContext-resources.xml Matt Raible-3 wrote: > > That certainly is strange. I'd have your hosting provider create some > sort of script you can run to see how many active connections you > have. I have this at my host and my max_connections are set to 20. I > ha

Re: [appfuse-user] max_user_connections

2006-12-21 Thread Fan
Where could I set the max_connections value ? Is it on tomcat configuration files ? Or on the Appfuse settings or XML ? Matt Raible-3 wrote: > > That certainly is strange. I'd have your hosting provider create some > sort of script you can run to see how many active connections you > have

[appfuse-user] How to implement junction tables with xdoclet?

2006-12-21 Thread mxc
Hi there, I wish to do the following with xdoclets and appfuse. I have a table called "Address" as follows Address == id int, street1 varchar(255), street2 varchar(255) etc I have tables "Customer" and "Emploee" Customer == id int, company varchar(255), etc Employee == id int,

Re: [appfuse-user] Appfuse and JPA

2006-12-21 Thread Michael Horwitz
There is some work going on in ApFuse 2.0 to provide JPA functionality. The work is still in the early phases and uses Hibernate as the persistence manager. If you are interested, search through the developer mailing list on nabble for more info. Mike. On 12/21/06, André Faria <[EMAIL PROTECTED

[appfuse-user] Appfuse and JPA

2006-12-21 Thread André Faria
There is some project to do a BaseDaoJpa or something like? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Problem with struts-menu template?

2006-12-21 Thread Jasper Huzen
I am using version 1.9.4 of appfuse. Matt Raible-3 wrote: > > What version of AppFuse are you using? > > Matt > > On 12/13/06, Jasper Huzen <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I'm using appfuse, with the struts-menu as menu generator. When i tried >> to >> use a sub sub menu, it fail