Re: [appfuse-user] user login: how to change it

2007-12-07 Thread Matt Raible
In 2.0, we use the userDao bean for Acegi's userDetailsService. So modifying it's annotations or the UserDao is probably the best way to configure this. Matt On 12/7/07, René Günther <[EMAIL PROTECTED]> wrote: > In appfuse 1.8 there was applicationContext-security.xml and one part of it > was: >

Re: [appfuse-user] failed after mvn appfuse:full-source

2007-12-07 Thread Matt Raible
I was successfully able to reproduce this. Removing the following bean definition in core/src/main/resources/applicationContext-service.xml seems to fix the problem: If this works for you, can you please enter an issue for this in JIRA? http://issues.appfuse.org/browse/AP

Re: [appfuse-user] user login: how to change it

2007-12-07 Thread Michael Horwitz
The ACEGI configuration is stored in security.xml - the easiest is probably if you copy the file from the target directory in your web project over to src/webapp/WEB-INF. Mike On Dec 7, 2007 7:35 AM, René Günther <[EMAIL PROTECTED]> wrote: > In appfuse 1.8 there was applicationContext-security.x

Re: [appfuse-user] Tapestry EventListener doesn't seem to submit form

2007-12-07 Thread caarney
As you said - the problem was in using "elements" instead of "targets" - I didn't find this information in @EventListener documentation. This is the response by Jessek from Tapestry forum: Using elements="elementId" only targets and listens to dom nodes. You only get the majority of automated fu

RE: [appfuse-user] Acegi Security LDAP

2007-12-07 Thread Ding, Qin
Mike: Thank you for the info. However, login is bit different. Please let me explain. We have single sign-on for the company. The appfuse application contact the company's signon via url, which challenges by providing a login box and sends back header if authorized. So, actually, the appli

Re: [appfuse-user] user login: how to change it

2007-12-07 Thread sumatran_rat_monkey
Just found it out: UserDetailsService is an acegi interface not an appfuse one. So the connection is clear to me now. René sumatran_rat_monkey wrote: > > Thanks Matt. > I guess I am able to change the SQL now. But I am still curious to know > how does Acegi know that it has to call the method

Re: [appfuse-user] user login: how to change it

2007-12-07 Thread sumatran_rat_monkey
Thanks Matt. I guess I am able to change the SQL now. But I am still curious to know how does Acegi know that it has to call the method loadUserByUsername? There is no reference to loadByUsername in security.xml René mraible wrote: > > In 2.0, we use the userDao bean for Acegi's userDetailsSe

Re: [appfuse-user] Acegi Security LDAP

2007-12-07 Thread Gareth Davis
just done something similar for my application. It's basically a case of implementing the correct Acegi classes. there are three core classes for implementing a custom SSO authentication in acegi. first you will need your own AuthenticationToken, this is used to transport the credentials (

Re: [appfuse-user] Appfuse and SOA.

2007-12-07 Thread jclagache
So, what is a SOA project ? Flavio Froes wrote: > > Well it is not a real question acctually. > Acctualy it was just something I was thinking about and I would like to > know > your thoughs about it. > > Is Appfuse a SOA based project? I mean, appfuse uses the concept of > services > to encap

Re: [appfuse-user] failed after mvn appfuse:full-source

2007-12-07 Thread Michael Horwitz
It sounds as if the 2.0.5 dependencies are being pulled in transitively. Run maven with the -X switch and pipe the output to a file. The contents of the file will show you which dependency is pulling in the wrong spring version. Mike On Dec 7, 2007 12:13 PM, yuke <[EMAIL PROTECTED]> wrote: > > >

Re: [appfuse-user] AppFuse 2 + Struts + Hibernate - sorting on date column

2007-12-07 Thread Ealden Escañan
Hi Rob, I've encountered the same thing below and went with your option 1, as I was manually handling pagination and thus couldn't sort based on your option 2. >From what I infer, a field needs to be mapped in order for Hibernate to make use of it. I'm not aware of another way to do this. On Dec

Re: [appfuse-user] AppFuse 2 + Struts + Hibernate - sorting on date column

2007-12-07 Thread Michael Horwitz
On Dec 7, 2007 5:37 PM, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi All, > > This is really a Hibernate column, but hopefully someone here will know > more about it than I do, which wouldn't be hard. > > I have a model class that includes an attribute "departureTime" of type > java.util.Date and the

Re: [appfuse-user] AppFuse 2 + Struts + Hibernate - sorting on date column

2007-12-07 Thread Rob Hills
Hi Michael, Michael Horwitz wrote: On Dec 7, 2007 5:37 PM, Rob Hills <[EMAIL PROTECTED] > wrote: Hi All, This is really a Hibernate column, but hopefully someone here will know more about it than I do, which wouldn't be hard. I have a model cl

Re: [appfuse-user] Appfuse and SOA.

2007-12-07 Thread Nathan Anderson
SOA = Service Oriented Architecture I would say AppFuse *supports* SOA in that it can be both a service provider and consumer. But I wouldn't call AppFuse a "SOA project" because it is not limited to only SOA. Nathan - "jclagache" <[EMAIL PROTECTED]> wrote: > So, what is a SOA project ?

[appfuse-user] AppFuse 2 + Struts + Hibernate - sorting on date column

2007-12-07 Thread Rob Hills
Hi All, This is really a Hibernate column, but hopefully someone here will know more about it than I do, which wouldn't be hard. I have a model class that includes an attribute "departureTime" of type java.util.Date and the data contains both date and time information. In my Dao class, I ob

[appfuse-user] Auto copy data from page to data model other than clicking 'Submit'

2007-12-07 Thread BruceLee
Dear Team, My User form also has a 'Upload' button to upload user's picture. But After user uploads a file and redirects back User form, the changes just made on editbox (like First Name) are gone. Is it any way, when user clicks 'Upload', code logic copies the data on JSP page to data model Use

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

2007-12-07 Thread Matt Raible
On Nov 15, 2007 5:20 AM, Irshad Buchh <[EMAIL PROTECTED]> wrote: > > Matt, > Thanks, but the problem of not getting code completion is solved only using > .jspx extension in Europa. I had a look at: > http://www.thearcmind.com/confluence/display/SHJFT/Getting+started+with+JSF,+Facelets,+Eclipse+WTP

RE: [appfuse-user] Acegi Security LDAP

2007-12-07 Thread Ding, Qin
Thank you, Gareth. Is it possible to have your code as sample? Or do you know where I can find help in implementing these specific steps. Appreciate your help very much. Qin From: Gareth Davis [mailto:[EMAIL PROTECTED] Sent: Friday, December 07, 2007

Re: [appfuse-user] Could not open Hibernate Session for transaction; nested exception is

2007-12-07 Thread Ron Anderson
Finally found the problem. It is in dbcp 1.2.2 version. (see this bug https://issues.apache.org/jira/browse/DBCP-244) The fix is to change dbcp version back to 1.2.1 (in POM). Worked like a champ for me after two days of screwing with various options. Very hard to replicate on a db with any lo

Re: [appfuse-user] Appfuse and SOA.

2007-12-07 Thread Matt Raible
I believe you can develop SOA applications with AppFuse. The question is - where is your endpoint? Is it at the service layer or do you develop it with a web framework? I think if you want validation and such, it might make more sense to develop it at your web layer. For those frameworks th

[appfuse-user] Appfuse and SOA.

2007-12-07 Thread Flavio Froes
Well it is not a real question acctually. Acctualy it was just something I was thinking about and I would like to know your thoughs about it. Is Appfuse a SOA based project? I mean, appfuse uses the concept of services to encapsulate the business logic of the application and it also integrates wit

Re: [appfuse-user] Appfuse 2.0 app that integrates with with crystal reports

2007-12-07 Thread cfoy
Matt Sorry for the delay in coming back to you ... Crystal reports was integrated as follows: * The CR jars were installed manually. The pom.xml was updated to pick up the new dependencies. We are trying to use a local repository and intend make them available in that eventually. * CFConfig.

Re: [appfuse-user] AppFuse 2 + Struts + Hibernate - sorting on date column

2007-12-07 Thread Michael Horwitz
Hi Rob, Whenever I have had to do something like this I resort to using Joda time ( http://joda-time.sf.net) in my model classes. Way easier date/time manipulation, and makes this sort of thing a little easier if you can do it in code. Extra incentive for us is that we use XML in our architect

Re: [appfuse-user] failed after mvn appfuse:full-source

2007-12-07 Thread yuke
unfortunately that still wont work for me. but i found something strange, i found these jar's in \web\target\Lat2-webapp-1.0-SNAPSHOT\WEB-INF\lib: spring-beans-2.0.5.jar spring-core-2.0.5.jar spring-web-2.0.5.jar even the values of spring.version in /pom.xml : 2.5 and after i go through

Re: [appfuse-user] failed after mvn appfuse:full-source

2007-12-07 Thread Matt Raible
The problem appears to be caused by the struts2-spring-plugin, which for some reason thinks spring-context 2.0.5 is newer than 2.5. [DEBUG] Retrieving parent-POM: org.apache:apache::2 for project: org.apache.struts:struts-master:pom:4 from the repository. [DEBUG] org.apache.struts:struts2-spring