Re: [appfuse-user] newbie: redirect to another page instead of mainMenu.html

2008-08-04 Thread odmax
Hi, Thanks for the advice. It is working now. Cheers, Kropp, Henning wrote: > > Hi, > > in appfuse html is the action extension! So it looks for a corresponding > action in struts.xml. Thats the place you should look and probably > change the page which is rendered. > > regards > > odmax

[appfuse-user] Webwork validation interger

2008-08-04 Thread shendel
hello, im new appfuse user. Im using webworks tags in my jsp. I have textfield field name intNumberCount and it must accept only interger values. In my action i have declared intNumberCount as interger. When the form submits what usually happens it that it call the method that is declared in the j

[appfuse-user] Problems trying to deploy AppFuse on JBoss

2008-08-04 Thread ensoreus
Hi, I am using AppFuse version 2.0.2. When I try to deploy the application on JBoss I get the following error: ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interc

Re: [appfuse-user] the set up and learning cure is crazy high

2008-08-04 Thread Martin Homik
AppFuse is complex. AppFuse is not easy. AppFuse is great. @Tim: AppFuse is a great introduction to Spring, Hibernate, Struts2, Maven, JPA. Only then I dived deeper into the technologies behind AppFuse. So, from a newbie perspective, I strongly recommend the AppFuse tutorial. You can quickly go

Re: [appfuse-user] Webwork validation interger

2008-08-04 Thread Dustin Pearce
Struts2/Webwork includes an interceptor in the default stack called conversionError. This interceptor will throw a validation error if it fails to convert one of the web request values to your action setters. When a validation error like this is thrown then Struts2 will return the input r

Re: [appfuse-user] Problems trying to deploy AppFuse on JBoss

2008-08-04 Thread Dustin Pearce
It smells like there is a different version of Hibernate deployed with your JBoss installation that is being used rather than the Appfuse libraries. I am not sure how that happens, but I know JBoss and Hibernate are really close friends and could be packaged together. Do you get a similar

Re: [appfuse-user] Oracle Sequences

2008-08-04 Thread Matt Raible
It depends on how you annotate your classes. For the classes that use a generated identity, it's usually some sort of increment. If you want sequences, you'll need to annotate your classes appropriately. Matt On Sat, Aug 2, 2008 at 9:10 PM, Michael Gasche <[EMAIL PROTECTED]> wrote: > Hi > > What

Re: [appfuse-user] Test for entity exists exception always fails

2008-08-04 Thread Matt Raible
If you want name to be a unique column, you need to annotate it appropriately. @Column(nullable=false,length=50,unique=true) Matt On Sat, Aug 2, 2008 at 7:53 PM, Alc4man <[EMAIL PROTECTED]> wrote: > > Hiya. > > When I run my ItemExistsExceptionTest it never fails like it's supposed to, > even th

Re: [appfuse-user] Oracle Sequences / Learning curve / Project Structure

2008-08-04 Thread Michael Gasche
Hi Thanks for your answer. I've to look more detailed into this. I wanted to make my app running on MySql and Oracle. Maybe other people are interesetd into this: I currently made the following workaround: I didn't wanted to use one sequence (hibernate_sequence) on Oracle which leads into stra

Re: [appfuse-user] Oracle Sequences / Learning curve / Project Structure

2008-08-04 Thread Dustin Pearce
I like your workaround. I have a similar setup where I develop locally in MySQL and then need to deploy to Oracle. In my case I have existing records and so I want my fancy new Appfuse records to start somewhere out in the 5 range. Sadly the Hibernate Annotation does not support initi

Re: [appfuse-user] Oracle Sequences / Learning curve / Project Structure

2008-08-04 Thread Michael Gasche
No problemo, here it is (Make sure to patch it in the /web-project, not the /core, it's easier to debug in eclipse): Adjustment of method 'configure' in class org.hibernate.id.SequenceGenerator: public void configure(Type type, Properties params, Dialect dialect) throws MappingExce

Re: [appfuse-user] 1.9.4 upgrade

2008-08-04 Thread Richard G. Reyes
Hi Guys, Any comments, please? On Aug 4, 2008, at 1:03 PM, Richard G. Reyes wrote: Hi All, We are still using webwork appfuse 1.9.4, and is thinking if its time to upgrade to version 2. There's really no need of upgrading, just wondering if there are adavntages in using maven over ant?

Re: [appfuse-user] 1.9.4 upgrade

2008-08-04 Thread Dustin Pearce
Now lets not get sexist. Guys, gals? There has to be one woman using Appfuse. Right? Anyways. I have not taken an app through the upgrade path from 1.9 to 2.0. I think I practiced and tried it when 2.0 was being developed. But I can't attest to how easy or successful the upgrade is.

Re: [appfuse-user] Oracle Sequences / Learning curve / Project Structure

2008-08-04 Thread Dustin Pearce
You da man Mike! -D On Aug 4, 2008, at 11:32 AM, Michael Gasche wrote: No problemo, here it is (Make sure to patch it in the /web-project, not the /core, it's easier to debug in eclipse): Adjustment of method 'configure' in class org.hibernate.id.SequenceGenerator: public void configur

Re: [appfuse-user] Webwork validation interger

2008-08-04 Thread shendel
Wow, great tip dusty. I have one more question, I noticed before i added the validation.xml.. I am already having sort validation messages saying "Invalid field value for field "intNumberCount "". Im confused i still didn't add any validation in the particular class/field but im already having thi

Re: [appfuse-user] 1.9.4 upgrade

2008-08-04 Thread Richard G. Reyes
Dusty, Am very thankful for all your inputs, but I don't exactly get what you said below nor can I appreciate it? On Aug 5, 2008, at 9:11 AM, Dustin Pearce wrote: Now lets not get sexist. Guys, gals? There has to be one woman using Appfuse. Right? Anyways. -

Re: [appfuse-user] How to have secure files?

2008-08-04 Thread Matt Raible
The orders of these entries is important. You should also make sure and use /secure/** instead of /secure/*. Matt On Sun, Jul 27, 2008 at 8:20 AM, alibehzadian <[EMAIL PROTECTED]> wrote: > > Hi there, > > I want to secure my upload directory so not logged-in users can not see the > files. > I add

Re: [appfuse-user] how to read a new config file

2008-08-04 Thread Matt Raible
classpath:/filename.xml should work. Matt On Sun, Jul 27, 2008 at 12:47 PM, brantman <[EMAIL PROTECTED]> wrote: > > Hi, > > In my appfuse application, I need read a xml config file:myapp.xml in a > service bean:mymanagerImpl.java, I put it in src/main/resources, after run > mvn jetty:run-war, i

Re: [appfuse-user] DriverManagerDataSource with appfuse

2008-08-04 Thread Matt Raible
Overriding onSetUpBeforeTransaction might be what you're looking for. http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/test/AbstractTransactionalSpringContextTests.html Matt On Mon, Jul 28, 2008 at 5:15 AM, Miguel Romero <[EMAIL PROTECTED]> wrote: > //[email protected]

Re: [appfuse-user] Can't resolve taglib in taglibs.jsp

2008-08-04 Thread Matt Raible
Because you're using Spring, not Struts? ;-) Matt On Mon, Jul 28, 2008 at 9:41 AM, Martin Homik <[EMAIL PROTECTED]> wrote: > > H ... fixed. But why? > > Changed > <%@ taglib uri="http://www.appfuse.org/tags/struts"; prefix="appfuse" %> > To > <%@ taglib uri="http://www.appfuse.org/tags/sp

Re: [appfuse-user] tomcat cluster

2008-08-04 Thread Matt Raible
Sticky sessions are required in AppFuse as it contains nothing to replicate the session between servers. Matt On Mon, Jul 28, 2008 at 9:49 AM, nch <[EMAIL PROTECTED]> wrote: > > Hi, there. > I'm developing an appfuse (spring modular) based app. > I have a requirement to deploy this app on a

Re: [appfuse-user] Problem with dbUnit test data import from file

2008-08-04 Thread Matt Raible
I would try MM/dd/ as your date format. Matt On Wed, Jul 30, 2008 at 5:22 AM, pjames <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying to import a 'datetime' value to my mysql db from > sample-data.xml using dbUnit. Here is the file sample >

Re: [appfuse-user] AppFuse conventions for package naming

2008-08-04 Thread Matt Raible
Our recommended package naming conventions are: http://appfuse.org/display/APF/FAQ#FAQ-packagenaming However, I've seen people change this to be more domain specific (rather than pattern specific) when creating large projects. Personally, I think it might be better to create several small project

Re: [appfuse-user] appfuse:gen-web

2008-08-04 Thread Matt Raible
The problem is we look for ../core/src/main/hibernate.cfg.xml in the AMP plugin. However, looking at the code, it looks like we may no longer hard-code the module name: // for war projects that have a parent pom, don't reset classpath // this is to allow using hibernate.cfg.xml fro

Re: [appfuse-user] Exception in appfuse:gen-model when there's already One-to-Many Relationship

2008-08-04 Thread Matt Raible
Unfortunately, we don't support one-to-many UI generation at this point. The good news is the default scaffolds for Grails and Rails don't either, so we're not that bad. It's something we'd like to fix, just haven't found the time or energy. ;-) Matt On Wed, Jul 30, 2008 at 10:08 AM, Allan DaƱos