[appfuse-user] How to add a lib into Appfuse 2.0 Netbeans Maven (newbie)

2007-12-05 Thread Jimmy
Thanks for your help.BTW,could you tell me how to add the library into Appfuse2.0 project ( Netbeans and Maven)?Is there any tutorial about it?Thank you. On Dec 5, 2007 10:31 PM, Matt Raible <[EMAIL PROTECTED]> wrote: > You could also look into using the YUI plugin: > http://cwiki.apache.org/S2PL

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

2007-12-05 Thread Mark Rosenthal
Hi Caarney, I'm new to Tapestry 4.1, but checked the docs for the @EventListener annotation. The docs say " The EventListener annotation is attached to listener

Re: [appfuse-user] Problem with jetty:run in Tapestry basic archetype

2007-12-05 Thread TeleMarkR
Matt & M@, Thanks for your work on this issue. I just upgraded to 2.01, and this works like a charm... Matthew Sinclair wrote: > > Matt and Mark, > > I think I may have isolated the problem here (if not completely solved > it). Because the code works as advertised when running jetty:run-war

Re: [appfuse-user] appfuse2 xfire flex

2007-12-05 Thread Fred Forester
Thanx Matt, putting them under WEB-INF is not cast in stone right now. would I have to do the same regardless of where they are or is there a better place to put them? Thanx again Fred Matt Raible wrote: You would have to forward from a servlet/action/controller (or use the UrlRewriteFilt

Re: [appfuse-user] appfuse2 xfire flex

2007-12-05 Thread Matt Raible
You would have to forward from a servlet/action/controller (or use the UrlRewriteFilter) to your files. Since they're under WEB-INF, they're not accessible to the browser. Matt On 12/5/07, Fred Forester <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have some flash mxml files in webapp/WEB-INF/mxml

[appfuse-user] appfuse2 xfire flex

2007-12-05 Thread Fred Forester
Hi All, I have some flash mxml files in webapp/WEB-INF/mxml the compiled swf files will reside in the same place. what would I need to do in web.xml to get make these runnable via http://localhost:8080/myappfuseapp/test.swf? Thanx in advance Fred

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

2007-12-05 Thread Ron Anderson
It will also fail after the mysql variable 'wait_timeout' expires which is defaulted to 8 hours. So if no one access the app overnight, the first user to login in the morning has this error. Will try changing this variable to verify. Have also been trying to catch the exception so users don'

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

2007-12-05 Thread Nathan Anderson
I have an app that has this same problem running on: mysql-server-5.0 5.0.45-1ubuntu3 You are right it appears to be at the first login attempt that it fails, after that the app works normally. I hate bugs that are so hard to test [since they take so long to appear]. Nathan - "Matt Rai

Re: [appfuse-user] Missing xfire-servlet.xml and security.xml contexts

2007-12-05 Thread Łukasz Bachman
Dear Matt, so sorry! I've missed this one. I don't know why, but it seemed so obvious to me to run just "jetty:run". But You are right! After running "jetty:run-war" application is runing smoothly without any warnings or errors. You saved me a lot of time and lost nerves. Cheers! 2007/12/5, Łuk

Re: [appfuse-user] Missing xfire-servlet.xml and security.xml contexts

2007-12-05 Thread Łukasz Bachman
Dear René, I tried CLEAN and INSTALL goal before but unfortunately it didn't help. As it comes to a package name, I've provided appropriate name (as stated before) ;-) I forgot to mention two things though. First one is: I've also ran "mvn eclipse:eclipse" goal before running jetty. The second

Re: [appfuse-user] On Sitemesh and Tiles

2007-12-05 Thread Matt Raible
On Dec 5, 2007, at 1:13 PM, Carlos Ortiz wrote: But this mail refers to Tiles 1 or Tiles 2. Yes, but we use SiteMesh to do the same thing that Tiles used to do for us. By the way, I think Tiles 2 is an enhanced version, but I have to confirm on this! I don't think there's any compel

Re: [appfuse-user] Missing xfire-servlet.xml and security.xml contexts

2007-12-05 Thread Matt Raible
You need to use "mvn jetty:run-war", not "jetty:run". This is explained at the bottom of the QuickStart Guide: # To view your application run mvn jetty:run-war from your project's directory (for a modular project, you'll need to run mvn jetty:run- war from your project's web directory). Mav

Re: [appfuse-user] On Sitemesh and Tiles

2007-12-05 Thread Carlos Ortiz
But this mail refers to Tiles 1 or Tiles 2. By the way, I think Tiles 2 is an enhanced version, but I have to confirm on this! On Dec 5, 2007 10:27 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > Tiles 2 works with Struts 2 and Spring MVC (as far as AppFuse frameworks > are concerned). Yes, you can

AW: [appfuse-user] Missing xfire-servlet.xml and security.xml contexts

2007-12-05 Thread René Günther
You run mvn install too? You might try mvn clean mvn install from your projects directory. Cheers René PS: Your package name is really PackageName? I don't know but I wouldn't use uppercase in package names and something like com.mycompany.app might suite better Von: Łukasz

[appfuse-user] Missing xfire-servlet.xml and security.xml contexts

2007-12-05 Thread Łukasz Bachman
Hello! I'm starting with AppFuse 2.0.1 (used to work on 1.9.8) and I've encountered following error while trying to create basic Spring MVC web-app (error occured during executing mvn jetty:run goal) : (...) ERROR [main] ContextLoader.initWebApplicationContext(206) | Context initialization failed

Re: [appfuse-user] work with excluding set in Hibernate/MySQL

2007-12-05 Thread BruceLee
Thank Nathan a lot! We already figured out the NOT IN part. However your extra 'change other city' is also great! -Bruce melinate wrote: > > Don't know if you already found a solution, but here is what the SQL would > look like... I imagine the HQL would be similar.. > > Here is how to get jus

Re: [appfuse-user] Automatic login with Acegi

2007-12-05 Thread Zakir
I figured it out. You can do something like this: Authentication auth = new UsernamePasswordAuthenticationToken(user, user.getPassword(), user.getAuthorities()); SecurityContextHolder.getContext().setAuthentication(auth); When you create the Authentication object and specify the gratedAu

Re: [appfuse-user] Is Seam project worth while?

2007-12-05 Thread Carlos Ortiz
So, you are telling me that Seam is like Appfuse, but the big difference is man-hour working on it. But I think Appfuse scope is broader, doesn't it? I don't know, perhaps I will look at it these days. On Dec 5, 2007 11:24 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > I believe it is worth playi

AW: [appfuse-user] Tests and Injections

2007-12-05 Thread René Günther
My question is related with the following problem: My userManager is dependent on the bean organisationManager which I created according to the tutorial. Thus it is defined in applicationContext.xml. That’s why UserExistsException fails: bean with name organisationManager cant be found. I don’t kno

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

2007-12-05 Thread Matt Raible
Server version: 5.0.41-community MySQL Community Edition (GPL) On Dec 5, 2007, at 9:48 AM, Ron Anderson wrote: Which mysql server version are the demo's running on? I'm using 5.0.22. - Original Message From: Matt Raible <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Wedne

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

2007-12-05 Thread Ron Anderson
Which mysql server version are the demo's running on? I'm using 5.0.22. - Original Message From: Matt Raible <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Wednesday, December 5, 2007 9:44:17 AM Subject: Re: [appfuse-user] Could not open Hibernate Session for transaction; nest

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

2007-12-05 Thread Matt Raible
I haven't seen this problem on the AppFuse demos, but I'm still using 5.0.5. I'd suggest hanging out in AppFuse's IRC - sometimes Mark Matthews (MySQL JDBC Guy) is there. Doesn't look like he's there now, but maybe later today. You could try posting to the MySQL mailing list. Matt On Dec

AW: [appfuse-user] Tests and Injections

2007-12-05 Thread René Günther
JSF René -Ursprüngliche Nachricht- Von: Matt Raible [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 5. Dezember 2007 18:42 An: users@appfuse.dev.java.net Betreff: Re: [appfuse-user] Tests and Injections Which web framework are you using? UserFormTest exists in Tapestry and JSF. Matt O

Re: [appfuse-user] Tests and Injections

2007-12-05 Thread Matt Raible
Which web framework are you using? UserFormTest exists in Tapestry and JSF. Matt On Dec 5, 2007, at 9:38 AM, René Günther wrote: In UserFormTest userManager is set via Method super.onSetUp() In UserExistsExceptionTest it is different, seems it is related to getConfigLocations()? In UserSecur

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

2007-12-05 Thread Ron Anderson
Has anyone solved this problem? I've upgraded to latest mysql connector 5.0.8 and have the same problem described here (and on some other posts related to this issue). The way to recreate it is to stop and restart mysqld. The first time you login, you'll see this error. It won't happen again a

[appfuse-user] Tests and Injections

2007-12-05 Thread René Günther
In UserFormTest userManager is set via Method super.onSetUp() In UserExistsExceptionTest it is different, seems it is related to getConfigLocations()? In UserSecurityAdviceTest applicationContext-test.xml is read directly. Can you tell me why it is done in three different ways? Why super.onSetUp()

Re: [appfuse-user] Is Seam project worth while?

2007-12-05 Thread Matt Raible
I believe it is worth playing with - especially if you plan on using JSF. It uses a lot of the same libraries that AppFuse does, but it has a full-time development staff working on the project (from JBoss). It doesn't use Spring, but it allows you to use Spring. It's 2.0 version is no longe

[appfuse-user] Is Seam project worth while?

2007-12-05 Thread Carlos Ortiz
Put it simple. I ask if this project is worth playing with. Is this tied to JSF only? Does it use Spring Framework? These questions are from a person who does not anything about Seam, I am just curious before reading more on the subject.

Re: [appfuse-user] Automatic login with Acegi

2007-12-05 Thread Zakir
I think the code you're referring to is: // log user in automatically Authentication auth = new UsernamePasswordAuthenticationToken(user.getUsername(), user.getConfirmPassword()); try { ProviderManager authenticationManager = (ProviderManager) getBean("authenticationManager");

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

2007-12-05 Thread caarney
Hi, I'm using Tapestry 4.1.3 and the @EventListener functionality. The eventlistener method is called correctly, but I can't get any user-entered values from the form. As I understood from the documentation, the form should submit itself by default and send the values to the server, but it doesn't

Re: [appfuse-user] Automatic login with Acegi

2007-12-05 Thread Matt Raible
If you look in SignupFormController, you can see the code that's used to programmatically login the user. Maybe you can use this? Matt On Dec 5, 2007, at 7:37 AM, Zakir wrote: Hello experts. To preface, I am using Acegi 1.9.4 with Spring. Is there any way I can log a user in automatically

[appfuse-user] Automatic login with Acegi

2007-12-05 Thread Zakir
Hello experts. To preface, I am using Acegi 1.9.4 with Spring. Is there any way I can log a user in automatically without their password? Here is my intended process flow: 1. user signs up to the site, and fills in all the details (email, password, name, etc.) 2. system saves the user info (inc

Re: [appfuse-user] On Sitemesh and Tiles

2007-12-05 Thread Matt Raible
Tiles 2 works with Struts 2 and Spring MVC (as far as AppFuse frameworks are concerned). Yes, you can use it with JSF. We used Tiles for the first couple years of AppFuse, but switched to SiteMesh because we found it easier to use and configure. http://raibledesigns.com/rd/entry/should_i_di

Re: [appfuse-user] On Sitemesh and Tiles

2007-12-05 Thread Carlos Ortiz
Thanks. But I think from what I have been reading these days that Facelet is a JSF solution only (it would be tightly integrated to the JSF rendering mechanism). Tiles 2 is generic to any web based application. On Dec 5, 2007 9:29 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > If you're going to us

[appfuse-user] FishEye and MarkMail

2007-12-05 Thread Matt Raible
All, This e-mail is designed to tell you about some new features we've added to the AppFuse project. The first is we've installed FishEye and Crucible (a code review tool) on AppFuse's server at Contegix. We've used FishEye in the past (at fisheye4.cenqua.com/browse/appfuse), but now we have it on

Re: [appfuse-user] about Date in Appfuse (newbie)

2007-12-05 Thread Matt Raible
You could also look into using the YUI plugin: http://cwiki.apache.org/S2PLUGINS/yui-plugin.html Matt On Dec 5, 2007, at 6:08 AM, John Kwon wrote: Matt put something in 2.0 From APF-268.. Implemented with jscalendar.sf.net (LGPL). To use in 2.0 RC1, perform the following steps: 1. Add tit

Re: [appfuse-user] On Sitemesh and Tiles

2007-12-05 Thread Matt Raible
If you're going to use JSF, don't use JSP with it - it just doesn't work that well. Facelets is much better. http://www.ibm.com/developerworks/java/library/j-facelets/index.html Matt On Dec 5, 2007, at 5:37 AM, Carlos Ortiz wrote: Interesting. I think I should evaluate this items. Sorry for

Re: [appfuse-user] A question on JSF/Tiles

2007-12-05 Thread Matt Raible
On Dec 5, 2007, at 5:32 AM, Carlos Ortiz wrote: Thanks Matt I am just evaluating ways to page decoration, something like Sitemesh/tiles do. I am learning JSF a step at a time. I have heard this Facelet term. Can you kindly point me to a link or elsewhere where I can know more about th

Re: [appfuse-user] about Date in Appfuse (newbie)

2007-12-05 Thread John Kwon
Matt put something in 2.0 >From APF-268.. Implemented with jscalendar.sf.net (LGPL). To use in 2.0 RC1, perform the following steps: 1. Add title="date" to an - for example: 2. Add the calendar scripts to your page: 3. Call Calendar.setup() from JavaScript: Calendar.setup({inputFi

Re: [appfuse-user] On Sitemesh and Tiles

2007-12-05 Thread Carlos Ortiz
Interesting. I think I should evaluate this items. Sorry for the person that eMailed you about Facelets item. JSF/Facelet. Is this new? How is it used? On Dec 5, 2007 12:04 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > Yes, it's true that SiteMesh does not work seamlessly with JSF. > However, the

Re: [appfuse-user] A question on JSF/Tiles

2007-12-05 Thread Carlos Ortiz
Thanks Matt I am just evaluating ways to page decoration, something like Sitemesh/tiles do. I am learning JSF a step at a time. I have heard this Facelet term. Can you kindly point me to a link or elsewhere where I can know more about this. BTW, does Sitemesh page decoration works well with JSF

Re: [appfuse-user] Unidirectional ManyToOne Hibernate save problem: TransientObjectException

2007-12-05 Thread Mike Wille
Michael Horwitz wrote: On 12/5/07, *Mike Wille* <[EMAIL PROTECTED] > wrote: Hi All, I've been playing with Appfuse/Spring WebMVC/Hibernate and made a change to the base User object. I added a many-to-one reference to an Organization object. Ever

Re: [appfuse-user] throw org.apache.commons.beanutils.ConversionException: No value specified

2007-12-05 Thread Milo A. Felipe
In ConvertUtil.convert(...) method, instead of calling BeanUtils.copyProperties(...), try this: BeanUtilsBean beanUtilsBean = BeanUtilsBean.getInstance(); beanUtilsBean.getConvertUtils().register( new org.apache.commons.beanutils.converters.BigDecimalConverter(null), BigDecimal.class); beanUt

Re: [appfuse-user] No value specified

2007-12-05 Thread Milo A. Felipe
In ConvertUtil.convert(...) method, instead of calling BeanUtils.copyProperties(...), try this: BeanUtilsBean beanUtilsBean = BeanUtilsBean.getInstance(); beanUtilsBean.getConvertUtils().register( new org.apache.commons.beanutils.converters.BigDecimalConverter(null), BigDecimal.class); beanUt

Re: [appfuse-user] Unidirectional ManyToOne Hibernate save problem: TransientObjectException

2007-12-05 Thread Michael Horwitz
On 12/5/07, Mike Wille <[EMAIL PROTECTED]> wrote: > > Hi All, > > I've been playing with Appfuse/Spring WebMVC/Hibernate and made a change > to the base User object. I added a many-to-one reference to an > Organization object. Everything works fine in my unit tests for > creating a user, setting

Re: [appfuse-user] Appfuse generated jsp with select box

2007-12-05 Thread Mani_N
The answer is very much understandable. Thanks for that. But am using Spring MVC archetype in other project. Can anyone help how to get same functionality in Spring Rob Hills wrote: > > Hi Mani, > > Mani_N wrote: >> Am seeing the following to do for generated select tag in appfuse >> generat

[appfuse-user] about Date in Appfuse (newbie)

2007-12-05 Thread Jimmy
Hi, I am developing a simple web application with Appfuse. There is a model object with a java.util.Date type member.Is there any example on these problem.I am trying to use the datetimepicker of struts 2 but it doesnot work.Any idea. Thanks in Advance. Best Regards, Jimmy