RE: [appfuse-user] Issue with UserService Webservice

2008-01-02 Thread GAFFAR Abdul Khaliq
Can you point the url where i can log this bug in jira ? Please let me know where i should be inculding the patch? Thanks, Khaliq From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Thu 1/3/2008 12:50 AM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user

Re: [appfuse-user] AspectJ syntax for Appfuse 2

2008-01-02 Thread dev dev
Like always, thank you very much Matt. On Jan 2, 2008 12:41 PM, Matt Raible <[EMAIL PROTECTED]> wrote: > This means any package that ends with service. This article might help: > > http://www.infoq.com/articles/Simplifying-Enterprise-Apps > > Matt > > On 12/26/07, dev dev <[EMAIL PROTECTED]> wrot

Re: [appfuse-user] Web services in Appfuse 2.0

2008-01-02 Thread Matt Raible
On 1/2/08, jackalista <[EMAIL PROTECTED]> wrote: > > I've been pushing this along in background but am having another problem with > this tutorial. I got the problem below fixed but then hit a problem > because of this tag in applicationContext.xml: > > > > Person service got a NoClassDefFoundErr

Re: [appfuse-user] Web services in Appfuse 2.0

2008-01-02 Thread jackalista
I've been pushing this along in background but am having another problem with this tutorial. I got the problem below fixed but then hit a problem because of this tag in applicationContext.xml: Person service got a NoClassDefFoundError. As there is no such PersonService class I tried setting

[appfuse-user] Impressed AppFuse user ;D

2008-01-02 Thread Łukasz Bachman
Well, maybe I shouldn't write it here since it's an e-mail group for developers only, but when I saw the amount of Matt's replies today I thought I will ;-) Well, I just wanted to give a big credit to Matt for making our lives easier. I mean, not only he created (or participated in creation phase

Re: [appfuse-user] Better way to modify User/UserDao/UserManager

2008-01-02 Thread Matt Raible
Your approach sounds reasonable. In reality, I haven't found upgrading very difficult between AppFuse versions. I've upgraded the demos from appfuse-demos 5+ times and it's taken me about 10-20 minutes to do each one. Matt On 1/2/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Duh - sorry. M

Re: [appfuse-user] Better way to modify User/UserDao/UserManager

2008-01-02 Thread [EMAIL PROTECTED]
Duh - sorry. My point was that the "http://appfuse.org/display/APF/AppFuse+Core+Classes"; approach is not so bad as I thought at first. It only involves expanding 5 domain/model classes and a constants class into my source tree. I will keep the "org.appfuse" package names for these 5 domain object

Re: [appfuse-user] acegi security

2008-01-02 Thread Matt Raible
As far as I remember, I believe you only need to change roles in security.xml, as well as sample-data.xml if you're using DbUnit to populate your database. Matt On 1/2/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Matt, > > I checked my *Action.java page, but there were no roles specified th

RE: [appfuse-user] acegi security

2008-01-02 Thread vpacheco
Matt, I checked my *Action.java page, but there were no roles specified there for any @struts.action. I'm guessing that's what you were referring to. My question is this: If I add new roles or change existing role names in the role table (in the db), where would I typically need to make a change

Re: [appfuse-user] seeing todo for select in appfuse genrated jsp pages...plz help

2008-01-02 Thread Matt Raible
You should be able to create a "referenceData" method and put a Collection named "memotypeList" into a Map. http://tinyurl.com/2c4knw Matt On 1/2/08, Mani_N <[EMAIL PROTECTED]> wrote: > > > But am using spring mvc modular archetype, not struts. So what need to be > done to get it work with sprin

Re: [appfuse-user] Better way to modify User/UserDao/UserManager

2008-01-02 Thread [EMAIL PROTECTED]
Yes, and I guess that's what I'm going to do. The next thing I'll need to do is add finders to the DAO or logic to the manager. But, there's no reason I cannot just use standard Java inheritance to build on top of the com.appfuse DAO and manager objects from my own extensions. At least that's the

Re: [appfuse-user] Tests not working after change of table name...

2008-01-02 Thread Matt Raible
What's the error you're seeing? Is it from dbunit? Matt On 12/31/07, J. David Mendoza R. <[EMAIL PROTECTED]> wrote: > Hello everyone... > > I've download the core clases of appfuse into my project and changed the > table names... Everything works except the tests :) > > I'm using Struts 2 in AppF

Re: [appfuse-user] AppFuse 2.0 + Struts 2 - Replaceable Variables in struts.xml

2008-01-02 Thread Matt Raible
In the latest release (2.0.1), we exclude struts.xml from having its variables replaced: src/main/resources ApplicationResources_de.properties ApplicationResources_fr.properties Appli

Re: [appfuse-user] error display in JSF

2008-01-02 Thread Matt Raible
The addMessage() method in AppFuse adds a message to the session that messages.jsp can read. You might look into using JSF's API instead. Matt On 12/31/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > Appfuse 1.9.4/DB2/JSF > > > > I am using the same logic as UserExistsException to do my own ch

Re: [appfuse-user] commons validator and the loginForm

2008-01-02 Thread Matt Raible
What do you mean by malicious characters? What functionality do you need that doesn't already exist? Matt On 12/31/07, reddeagle9 <[EMAIL PROTECTED]> wrote: > > Does commons Validator work on the loginForm.jsp. > > > I have seen the code and it looks like validation is done at a JavaScript > leve

Re: [appfuse-user] How to custom Model directory in appfuse 2.0.1?

2008-01-02 Thread Matt Raible
AMP doesn't support this out of the box. You could create the model objects in the normal package, run appfuse:gen and then refactor to move your model object. If you're using IDEA, it should move everything in Java and XML. Matt On 12/30/07, Ben Alex <[EMAIL PROTECTED]> wrote: > > Hi Everyone! >

Re: [appfuse-user] dao hibernate service not returning pojo class objects

2008-01-02 Thread Matt Raible
I would add a toString() method to your objects to make sure they're printing out what you expect them to print out. Matt On 12/29/07, Fred Forester <[EMAIL PROTECTED]> wrote: > > Hi all. > > when I run getAll via the generic class the log shows I am getting back > pojo classes > DEBUG [http-8080

Re: [appfuse-user] Better way to modify User/UserDao/UserManager

2008-01-02 Thread Matt Raible
If you only want to modify domain objects, you can do that too: http://appfuse.org/display/APF/AppFuse+Core+Classes Matt On 12/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Just to report back. After a couple of hours of changes I got everything to > compile, but the unit tests were fa

Re: [appfuse-user] AspectJ syntax for Appfuse 2

2008-01-02 Thread Matt Raible
This means any package that ends with service. This article might help: http://www.infoq.com/articles/Simplifying-Enterprise-Apps Matt On 12/26/07, dev dev <[EMAIL PROTECTED]> wrote: > what is this wildcard expression "*..service" mean and can someone point me > to the documentation on pointcut

Re: [appfuse-user] xfire defines all fields in wsdl

2008-01-02 Thread Matt Raible
You could try marking your field/method with @XmlTransient so it's not included. Matt On 12/27/07, Fred Forester <[EMAIL PROTECTED]> wrote: > > Thanx for the info. I have getter setter methods for the fields in the > pojo and all the fields are defined in the wsdl. and all that works fine > when

Re: [appfuse-user] How to get a reference to a manager in a custom validator

2008-01-02 Thread Matt Raible
Are you sure your bean is named "personsManager" and not "personManager"? Matt On 12/25/07, sudheerp <[EMAIL PROTECTED]> wrote: > > Hello, > >*** MERRY CHRISTMAS TO ALL *** > >I am using appfusejsf 1.9.4. I have written a custom JSF validator, > in which I want to validate form data again

Re: [appfuse-user] seeing todo for select in appfuse genrated jsp pages...plz help

2008-01-02 Thread Mani_N
But am using spring mvc modular archetype, not struts. So what need to be done to get it work with spring mvc mraible wrote: > > By adding a "getMemotypeList()" method in your Action. > > Matt > > On 12/3/07, Mani_N <[EMAIL PROTECTED]> wrote: >> >> >> please helpwhich is the best way to

Re: [appfuse-user] Issue with UserService Webservice

2008-01-02 Thread Matt Raible
Sounds like a bug - I believe there's annotations we can use on User that allow XFire to exclude certain methods. If you write a test case for this and enter it as an issue in JIRA - we can try to fix it before the next release. If you include a full patch with the fix - I can guarantee it'll get f

Re: [appfuse-user] Ehcache providers and CacheManagers in a modular project

2008-01-02 Thread Richard Brewster
In the core module I decided to use Ehcache's provider for Hibernate and tell it to configure from a file named ehcache-hibernate.xml: hibernate.cache.provider_class=net.sf.ehcache.hibernate.EhCacheProvider net.sf.ehcache.configurationResourceName=/ehcache-hibernat

Re: [appfuse-user] Change default date format

2008-01-02 Thread Matt Raible
In that case, we use a DateConverter: java.util.Date=org.appfuse.webapp.action.DateConverter Source @ http://tinyurl.com/ypk2gt Matt On 12/18/07, ickphum <[EMAIL PROTECTED]> wrote: > > I think this applies to Spring projects only? My bad for not supplying more > details on my project setup, whi

Re: [appfuse-user] Using GenericDao with Inheritance

2008-01-02 Thread Matt Raible
I'd use one DAO and establish the relationship between your model objects using annotations. If that doesn't work, write methods in your DAOs that allow you to manipulate both objects. You can always create bean definition to CRUD any object with a DAO w/o writing any Java code. Matt On 12/17/07,

Re: [appfuse-user] Automatic timestamping of all persisted data

2008-01-02 Thread Matt Raible
This may help: http://markmail.org/message/v3rjvfbvbbhncuod Matt On 12/18/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi Marcel, > > MarcelR wrote: > > I use: > > @Version > > private Timestamp changeDate; > > > > Standard in jpa (that I use most), don't know about hibernate > > >

Re: [appfuse-user] Re: PersonActionTest Oracle and Mysql database get different result !

2008-01-02 Thread Matt Raible
I believe if you use negative numbers for the id's it may solve this problem. Has anyone else (using Oracle) had issues with the tutorial? Thanks, Matt On 12/10/07, 王金胜 <[EMAIL PROTECTED]> wrote: > > > > > > Hi, Raible : > > > > appfuse 2.0.1 AppFuse Modular Application > > > > > > PersonAtion

Re: [appfuse-user] Code completion of JSF Facelet pages in Eclipse Europa

2008-01-02 Thread Matt Raible
Yes, I do plan on releasing 1.9.5 eventually. I haven't had much motivation to work on it lately as the snow has been falling and the skiing has been great around here. Here's the current roadmap for 1.9.5 - please let me know if you think anything should be added. http://tinyurl.com/8ln5b Matt

Re: [appfuse-user] Tests and Injections

2008-01-02 Thread Matt Raible
Any beans you create in your project should be added to applicationContext.xml. If you create other files, you will need to override the getConfigLocations() method and web.xml. Matt On 12/5/07, René Günther <[EMAIL PROTECTED]> wrote: > My question is related with the following problem: > My user

Re: [appfuse-user] Acegi Remember me

2008-01-02 Thread Matt Raible
It should be possible with our current Remember Me implementation (a cookie). You might have to dig into Acegi's source code to see how they create the cookie and then copy it. Matt On 12/4/07, jithesh <[EMAIL PROTECTED]> wrote: > > Hi guys, > > Is there a way to set "Remember Me" after the user

Re: [appfuse-user] seeing todo for select in appfuse genrated jsp pages...plz help

2008-01-02 Thread Matt Raible
By adding a "getMemotypeList()" method in your Action. Matt On 12/3/07, Mani_N <[EMAIL PROTECTED]> wrote: > > > please helpwhich is the best way to get this select box populated > > > Mani_N wrote: > > > > Hi, > > > > Am seeing the following to do for generated select tag. Please let me know

Re: [appfuse-user] Is it possible to use parent and child entities with appfuse

2008-01-02 Thread Matt Raible
I think the best way to find out if your approach is reasonable is to try it and see if it works. ;-) Matt On 12/1/07, Mani_N <[EMAIL PROTECTED]> wrote: > > > Please let me know what am thinking is a good approach or not? And please > let me know if there are any better approaches for achieving >

Re: [appfuse-user] canoo web test failed with "Cannot find function findFirstElement"

2008-01-02 Thread Matt Raible
Yes, it's probably a good idea to enter an issue for this in JIRA. Matt On 11/30/07, René Günther <[EMAIL PROTECTED]> wrote: > I got the same error. Maybe this should be changed in the tutorial? > > -Ursprüngliche Nachricht- > Von: tnsilver [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 1.

Re: [appfuse-user] Ehcache providers and CacheManagers in a modular project

2008-01-02 Thread Matt Raible
On 11/30/07, Richard Brewster <[EMAIL PROTECTED]> wrote: > > I am using AppFuse 2.0 and looking at ehcache. It seems that out of the box > AppFuse uses only the Gzip servlet filter from ehcache. What I want to do > is use ehcache with Hibernate in the core module, and also use ehcache for > other

Re: [appfuse-user] acegi security

2008-01-02 Thread Matt Raible
Are you sure the URL to your Action isn't protected? Are you certain the "Access Denied" error is coming from this interceptor? Matt On 1/2/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I'm using Appfuse 1.9.4 with Struts framework. > > > > I'm trying to use 'methodSecurityIntercepto

[appfuse-user] acegi security

2008-01-02 Thread vpacheco
I'm using Appfuse 1.9.4 with Struts framework. I'm trying to use 'methodSecurityInterceptor' to secure access. I have these constants in Constants.java Public static final String SPIES_ADMIN = "SpiesAdmin"; Public static final String ADMIN_ROLE = "admin";

Re: [appfuse-user] CRUD for relational - OneToMany

2008-01-02 Thread Matt Raible
Currently, we don't do very good generation of templates for relationships. If you use 2.0.2-SNAPSHOT (for AMP), you should be able to override the templates in your project. http://issues.appfuse.org/browse/APF-969 Matt On 1/2/08, bilgin <[EMAIL PROTECTED]> wrote: > > Hi all > > I'm wondering h

[appfuse-user] CRUD for relational - OneToMany

2008-01-02 Thread bilgin
Hi all I'm wondering how to do CRUD for the master detail relationship between customer and orders?. After creating the POJOs and run the following commands, new testcases fail. mvn test-compile hibernate3:hbm2ddl mvn appfuse:gen (for customer and orders) mvn appfuse:install(for custom

[appfuse-user] CRUD for relational - OneToMany

2008-01-02 Thread bilgin yazar
Hi all I'm wondering how to do CRUD for the master detail relationship between customer and orders?. After creating the POJOs and run the following commands, new testcases fail. mvn test-compile hibernate3:hbm2ddl mvn appfuse:gen mvn appfuse:install mvn jetty:run-war