Re: [appfuse-user] a few struts2.x tag don't work within appfuse2.0M4

2007-05-16 Thread Ömer Başar
1 - Add the dojo directory under WEB-INF/scripts (you can download it from http://dojotoolkit.org/) 2 - Exclude pattern in decorators.xml /resources/* /scripts/dojo/* 3 - in the default jsp change the order and add the dojo. Now you can see your date

答复: [appfuse-user] Two questions about PersonActionTest

2007-05-16 Thread chino fish
On 5/16/07, chino fish <[EMAIL PROTECTED]> wrote: > > > > > 1. the test is function test, not unit test. Isn't it ? b/c it uses > real service object, but mock objects. Yes. > > 2. the method followed is a bit of useless..b/c personManager andd > person are not used by other test a

Re: [appfuse-user] Basic One-To-Many

2007-05-16 Thread Thomas Ramapuram
You should remove the old hibernate xdoclet tags and use the new JPA annotations. The Person Class and the Address Class should be marked as @Entity. paulie wrote: I have been looking through the forum and user guides trying to piece together the code for putting together a one-to-many relat

Re: [appfuse-user] Debugging an Appfuse application via Eclipse?

2007-05-16 Thread Matt Raible
Do you want to debug it when running in Jetty, Tomcat (via Cargo) or when running tests? I generally set a MAVEN_OPTS environment variable with my debug settings, and then setup a remote debugging configuration in Eclipse or IDEA that matches. export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler

[appfuse-user] Debugging an Appfuse application via Eclipse?

2007-05-16 Thread pcberg
Hi, I am having a hard time debugging my appfuse project. I think my confusion is twofold: 1) I'm familiar how to debug an old time struts 1 application with Eclipse WTP and tomcat. What I'm struggling with in appfuse is (what I perceive as) a disconnect between eclipse and maven/jetty. 2) I'm

Re: [appfuse-user] Two questions about PersonActionTest

2007-05-16 Thread Matt Raible
On 5/16/07, chino fish <[EMAIL PROTECTED]> wrote: 1. the test is function test, not unit test. Isn't it ? b/c it uses real service object, but mock objects. Yes. 2. the method followed is a bit of useless..b/c personManager andd person are not used by other test at all. It'

Re: [appfuse-user] a few struts2.x tag don't work within appfuse2.0M4

2007-05-16 Thread GBSGBSGBS
welldoes anyone can help me... does anyone get the "datetimepicker" tag working? -- View this message in context: http://www.nabble.com/a-few-struts2.x-tag-don%27t-work-within-appfuse2.0M4-tf3756059s2369.html#a10658152 Sent from the AppFuse - User mailing list archive at Nabble.com. ---

Re: [appfuse-user] sitemesh and decorator exclude tag not working

2007-05-16 Thread Matt Raible
Have you tried the following? /attributePicker.html* On 5/16/07, Will Berger <[EMAIL PROTECTED]> wrote: oops. My decorators.xml file looks as follows. /attributePicker.html /resources/* /scripts/dojo/* /* Hi, I a struts 2 action tha

Re: [appfuse-user] one jmock question: no need for dao.verify() ?

2007-05-16 Thread Matt Raible
Please enter this as a minor issue in JIRA and we'll remove it when we get a chance. http://issues.appfuse.org/browse/APF Thanks, Matt On 5/16/07, chino fish <[EMAIL PROTECTED]> wrote: In every method of PersonManagerImplTest, there is a line dao.verify(); but it seems that the

Re: [appfuse-user] The Constructor GenericManagerImpl is undefined

2007-05-16 Thread Matt Raible
Can you post your code for MyThirdEntityClassManagerImpl? Also, what's your setMyThirdEntityClassManager() method look like? Matt On 5/16/07, sparqle <[EMAIL PROTECTED]> wrote: I am using Appfuse 2.0M4. Following the online documentation, I created my own daos and associated managers for my a

Re: [appfuse-user] BindingResult

2007-05-16 Thread Matt Raible
The first error is likely because you're navigating to the JSP directly, rather than going through a SimpleFormController. As for the 2nd issue, what is your Controller named? The ControllerClassNameHandlerMapping determines how URLs are created for controllers: http://tinyurl.com/3ce2zn Matt O

Re: [appfuse-user] Basic One-To-Many

2007-05-16 Thread Philip Barlow
Try: private Set addresses = new HashSet(); HashSets cannot contain duplicates and are generally a better fit. One thing to note when using HashSets, always implement hashCode in objects that may end up inside a hashSet, this is how they are checked for uniqueness. I learned this the hard way

Re: [appfuse-user] Basic One-To-Many

2007-05-16 Thread Philip Barlow
I see you have used commonclipse to generate the hashcode, great plugin, apologies for not reading all of your post :) paulie wrote: I have been looking through the forum and user guides trying to piece together the code for putting together a one-to-many relationship. In my code, a Person can

[appfuse-user] The Constructor GenericManagerImpl is undefined

2007-05-16 Thread sparqle
I am using Appfuse 2.0M4. Following the online documentation, I created my own daos and associated managers for my application. It worked fine for the first two entities. I followed the same pattern for the third entity, and I get the following error message in Eclipse. The Constructor GenericMan

Re: [appfuse-user] BindingResult

2007-05-16 Thread Aled Rhys Jones
Forgot to say, I'm using Spring MVC with Hibernate. Url has its own daos and managers whilst company uses the generic stuff just for crud. Cheers Aled Aled Rhys Jones wrote: Hi everyone I've started developing with appfuse and so far its been great. I've created two services, url and compan

[appfuse-user] BindingResult

2007-05-16 Thread Aled Rhys Jones
Hi everyone I've started developing with appfuse and so far its been great. I've created two services, url and company, and all the tests pass including the webb ones. I think there's a problem with my jsp's however, as when I click on a url in my url list page (urls.jsp) to go to the urlForm

Re: [appfuse-user] Appfuse 2 : @ManyToOne persistence with a

2007-05-16 Thread Ömer Başar
Send the action class too and I will tell the exact problem. Anyway I will try to help without action method. First change the name of the combobox to "licence.type.id". If there is an object in the action class "Licence licence" the licence.type.id will be populated automaticly. Than you can cal

[appfuse-user] Two questions about PersonActionTest

2007-05-16 Thread chino fish
1. the test is function test, not unit test. Isn't it ? b/c it uses real service object, but mock objects. 2. the method followed is a bit of useless..b/c personManager andd person are not used by other test at all. protected void onSetUpBeforeTransaction() throws Exception {

Re: [appfuse-user] sitemesh and decorator exclude tag not working

2007-05-16 Thread Will Berger
oops. My decorators.xml file looks as follows. /attributePicker.html /resources/* /scripts/dojo/* /* Hi, I a struts 2 action that is mapped to url /attributePicker.html and a exclude entry in my decorator file. Since it is a popup, i d

[appfuse-user] sitemesh and decorator exclude tag not working

2007-05-16 Thread Will Berger
Hi, I a struts 2 action that is mapped to url /attributePicker.html and a exclude entry in my decorator file. Since it is a popup, i don't want it decorated. It needs to look different. When i type in the url /attributePicker.html, it does what i expect does not decorate the url If I put re

[appfuse-user] Appfuse 2 : @ManyToOne persistence with a

2007-05-16 Thread Laurent Dejoux
I'm trying to create 2 objects LicenceType and Licence. Licence have one type and one type belongs to many licenses. http://www.nabble.com/file/8456/LicenceType.gif http://www.nabble.com/file/8457/Licence.gif And i implement an combobox in my licenceForm.jsp to be able to modify or selec

Re: [appfuse-user] AppFuse 1.9.4: Getting leaner default projects

2007-05-16 Thread matthias_k
Hi Chris, Christian Giese wrote: > > Hi Matthias, > > check out Appfuse Light: https://appfuse-light.dev.java.net/ > > quote: > " The major differences between AppFuse and AppFuse Light are that AppFuse > has > the following features: > > * User Management > * Code generation for

[appfuse-user] AppFuse 1.9.4: Sysdeo Tomcat Plugin and JSP compilation errors

2007-05-16 Thread matthias_k
Hi, we are having loads of trouble setting up the project generated by AppFuse with the Sysdeo Tomcat plugin in Eclipse. When running the webapp with a Tomcat 5.5 started by the plugin, we constantly run into Jasper compilation errors. The error message is: java.lang.NoSuchMethodError: javax.ser

Re: [appfuse-user] Is there anybody successful using Candy4Appfuse?

2007-05-16 Thread Eric Fitzsimmons
The plugin seemed to work fine for me on mac and linux, but gave me some hiccups on Windows. Anyone else getting this to work, or having problems? Ashkan Roshanayi wrote: Hi all, This is the Nth time that I try candy4Appfuse with no success in creating appfuse projects. I tried different ve

[appfuse-user] one jmock question: no need for dao.verify() ?

2007-05-16 Thread chino fish
In every method of PersonManagerImplTest, there is a line dao.verify(); but it seems that the line is not necessary, super class MockObjectTestCase will do the verify job automatically ! chinofish

Re: [appfuse-user] RE:[appfuse-users] Nooby Q

2007-05-16 Thread Michael Horwitz
The variable M2_REPO is set inside Eclipse. You can set M2_HOME if you want to, but it is not really necessary if mvn works from the command line. To set the M2_REPO variable you need to run the mvn command: mvn -Declipse.workspace= eclipse:add-maven-repo See http://maven.apache.org/plugins/mave

[appfuse-user] RE:[appfuse-users] Nooby Q

2007-05-16 Thread martinr
Hi Matt, I did use maven to create the project but I have a feeling that I had only a MAVEN_HOME variable set. Should I be able to set the M2_HOME and run this mvn eclipse:eclipse again? I'd just like to take the opportunity to say a personal thanks for appfuse. I used the 1.x versions on various

[appfuse-user] Basic One-To-Many

2007-05-16 Thread paulie
I have been looking through the forum and user guides trying to piece together the code for putting together a one-to-many relationship. In my code, a Person can have many Addresses. The error I am getting is MappingException: Could not determine type for: java.util.List, for columns: [org.hiber

RE: [appfuse-user] RE:[appfuse-users] Nooby Q

2007-05-16 Thread Aled Rhys Jones
Hi Marty I had the same problem. I'm guessing your eclipse build hasn't imported all the libraries in the maven repository. It's not 100% clear in the tutorial where the maven repository is if you're a windows user. http://appfuse.org/display/APF/Eclipse The ~ equates to your user home, so the m

Re: [appfuse-user] RE:[appfuse-users] Nooby Q

2007-05-16 Thread Matt Raible
Did you create your Eclipse project files with "mvn eclipse:eclipse". If so, you'll need to make sure you have a M2_REPO classpath variable setup. Matt On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Aled, Thanks for the assist. I have the imports but on closer examination it seem

[appfuse-user] RE:[appfuse-users] Nooby Q

2007-05-16 Thread martinr
Hi Aled, Thanks for the assist. I have the imports but on closer examination it seems that eclipse cannot resolve them. Could this be a problem with the src folder setup? Are the javax.persistence classes part of the jdk? eclipse seems to also have a problem reolving org.appfuse. I'm sure I ca

RE: [appfuse-user] Nooby Q

2007-05-16 Thread Aled Rhys Jones
Are you importing javax.persistence.Entity in your class? Same goes for Id and Generated value. They are part of javax.persistence. If importing this doesn't seem to work, make sure you're using the maven repository correctly. You don't have to extend BaseObject, but if you do you must override m

[appfuse-user] Nooby Q

2007-05-16 Thread martinr
I'm having a play around with Appfuse 2 but have run into a problem. When I try to compile I get : . . [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compi

Re: [appfuse-user] hsqldb junit -> "already in use by another process"

2007-05-16 Thread Steve Tynor
That works for "mvn clean test" (BUILD SUCCESSFUL), but I still see "locked by other process" errors (and BUILD ERROR) for "mvn clean integration-test". Steve On 5/16/2007 8:19 AM, Matt Raible wrote: You could try removing the 2nd execution that dbunit has - the one that populates the databas

Re: [appfuse-user] hsqldb junit -> "already in use by another process"

2007-05-16 Thread Matt Raible
You could try removing the 2nd execution that dbunit has - the one that populates the database after tests are run: test-compile test-compile operation

Re: [appfuse-user] When I save

2007-05-16 Thread Matt Raible
It looks like you have an object (member) on your form and you're trying to save it. Does your form render correctly? If you comment out the form field that refers to member, does it work? Matt On 5/16/07, Jolly <[EMAIL PROTECTED]> wrote: When I save one form I get these errors. I'm using app

Re: [appfuse-user] hsqldb junit -> "already in use by another process"

2007-05-16 Thread Steve Tynor
The build fails. Surefire reports all tests pass: > Results : > [surefire] Tests run: 57, Failures: 0, Errors: 0 then maven reports build failure: > [INFO] [dbunit:operation {execution: test}] > [INFO] > [ERROR] BUILD

Re: [appfuse-user] AppFuse 1.9.4: Velocity Support

2007-05-16 Thread Matt Raible
AppFuse 1.x and 2.x use Velocity for e-mail templates as well as Struts Menu templates. If you'd like to use it for your view, you'd have to do some work. If you're using Spring MVC, you might look at AppFuse Light - there's a version that uses Velocity for its view. https://appfuse-light.dev.ja

[appfuse-user] Is there anybody successful using Candy4Appfuse?

2007-05-16 Thread Ashkan Roshanayi
Hi all, This is the Nth time that I try candy4Appfuse with no success in creating appfuse projects. I tried different versions but all of them failed in creating a simple JSF appfuse project. Is there anybody successful using this plugin? -Thanks

[appfuse-user] Schema text failed: Could not parse mapping document

2007-05-16 Thread adriel manalansan
Hello to everyone, I made an Image.hbm.xml and save it to src/dao/*/model. The contents of the file is like this: http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";> and my src/dao/

[appfuse-user] When I save

2007-05-16 Thread Jolly
When I save one form I get these errors. I'm using appfuse 1.9.4 with Jboss. In this form I used drop down box. It shows name and I want to get that Id(primary key). In UI I get this error: - javax.servlet.ServletException: BeanUtils.populate at org.apache.stru

Re: [appfuse-user] AppFuse 1.9.4: Getting leaner default projects

2007-05-16 Thread Christian Giese
Hi Matthias, check out Appfuse Light: https://appfuse-light.dev.java.net/ quote: " The major differences between AppFuse and AppFuse Light are that AppFuse has the following features: * User Management * Code generation for CRUD-based applications * File Upload " IIRC Equinox is

Re: [appfuse-user] AppFuse 1.9.4: Getting leaner default projects

2007-05-16 Thread Thomas Ramapuram
Use appfuse lite or Equinox. matthias_k wrote: Hi, honestly, being new to AppFuse and all that, I found the default projects generated by "ant new" to be slightly confusing and overloaded, as they contain loads of stuff I don't actually need. For example I absolutely positively need no controll

[appfuse-user] AppFuse 1.9.4: Getting leaner default projects

2007-05-16 Thread matthias_k
Hi, honestly, being new to AppFuse and all that, I found the default projects generated by "ant new" to be slightly confusing and overloaded, as they contain loads of stuff I don't actually need. For example I absolutely positively need no controller handling file uploads, I also don't need user

[appfuse-user] AppFuse 1.9.4: Velocity Support

2007-05-16 Thread matthias_k
Hi, I was wondering: I have read a couple of threads about 1.9.4 not having support for Velocity templates. I also found that Wiki-page on the AppFuse Wiki describing how to set up AppFuse to work with Velocity (manual intervention required). On the other hand I spotted a velocity-1.4.jar in the