Re: [appfuse-user] How to customize Struts2 action extention ".html" to ".pdf" or ".xls" for reports?

2007-03-27 Thread Matt Raible
Just to warn you - if you're depending on the functionality of the StaticFilter in 2.0 M4 - I haven't tested if it will work when Struts intercepts the forward. Matt On 3/28/07, wnqq <[EMAIL PROTECTED]> wrote: Dear Matt, Many thanks. The following config works: web.xml: struts

Re: [appfuse-user] How to customize Struts2 action extention ".html" to ".pdf" or ".xls" for reports?

2007-03-27 Thread wnqq
Dear Matt, Many thanks. The following config works: web.xml: struts /* REQUEST FORWARD urlrewrite.xml: ^/report(.*)List.xls /report$1ListXLS.html mraible wrote: > > Make sure you have FORWARD on your struts > filter to cat

Re: [appfuse-user] How to get rid of log4j warning?

2007-03-27 Thread Matt Raible
FWIW, I tried adding src/main/resources to the taskdef classpath and putting a log4j.xml in that directory. No dice. Matt On 3/28/07, David Bernard <[EMAIL PROTECTED]> wrote: The error is reported from ant/maven running web test. This has nothing

Re: [appfuse-user] How to get rid of log4j warning?

2007-03-27 Thread David Bernard
I tried setting the property log4j.configuration in the pom.xml but that didn't work either. Matt Raible wrote: FWIW, I tried adding src/main/resources to the taskdef classpath and putting a log4j.xml in that directory. No dice. Matt On 3/28/

Re: [appfuse-user] How to customize Struts2 action extention ".html" to ".pdf" or ".xls" for reports?

2007-03-27 Thread Matt Raible
Make sure you have FORWARD on your struts filter to catch the forward. Matt On 3/28/07, wnqq <[EMAIL PROTECTED]> wrote: Sorry, my previous post uses a "redirect" which is not the best solution. I am still trying to use a "forward". (not luck yet...) wnqq wrote: > > Thank you very much. I g

Re: [appfuse-user] How to customize Struts2 action extention ".html" to ".pdf" or ".xls" for reports?

2007-03-27 Thread wnqq
Sorry, my previous post uses a "redirect" which is not the best solution. I am still trying to use a "forward". (not luck yet...) wnqq wrote: > > Thank you very much. I got the following to work nicely. :) > > > ^/report(.*)List.xls > /report$1ListXLS.html > > > >

Re: [appfuse-user] How to get rid of log4j warning?

2007-03-27 Thread David Bernard
The error is reported from ant/maven running web test. This has nothing to do with src/main/resource/log4j.xml. You need to set a property which defines where the log4j config file for the running of maven/ant is located. Create a new log4j.properties (or .xml) file with "log4j.logger.com.ca

Re: [appfuse-user] How to customize Struts2 action extention ".html" to ".pdf" or ".xls" for reports?

2007-03-27 Thread wnqq
Thank you very much. I got the following to work nicely. :) ^/report(.*)List.xls /report$1ListXLS.html mraible wrote: > > The easiest way is probably to add an entry to the UrlRewriteFilter > (WEB-INF/urlrewrite.xml). > > http://tuckey.org/urlrewrite/manual/2.6/ >

Re: [appfuse-user] appfuse with HTML Frameset?

2007-03-27 Thread Matt Raible
The implications is your pages won't be decorated with header/footer/etc. Of course, you could use includes, but that gets old. If it works w/o the filter, I'd compare your project with the frameset sample that SiteMesh has - it's likely they have frames setup in their decorator or something. A

Re: [appfuse-user] appfuse with HTML Frameset?

2007-03-27 Thread PSI
Matt: Thanks for the reply, i think removing siteMesh filter does render the frameset! :) now i guess i need to find out implications for removing that filter :( PSI mraible wrote: > > If you comment out the from web.xml, does it render > correctly? If so, then it's probably something to do

Re: [appfuse-user] Possible to load two set of ApplicationResources.properties ?

2007-03-27 Thread Matt Raible
On 3/27/07, Fan <[EMAIL PROTECTED]> wrote: 1) Yes I am using struts as the web framework, I have the following lines inside the struts.xml, so how could I change that to make loading two set of ApplicationResources.properties ? what does this mean ? It means load ApplicationResources.properti

Re: [appfuse-user] appfuse with HTML Frameset?

2007-03-27 Thread Matt Raible
If you comment out the from web.xml, does it render correctly? If so, then it's probably something to do with the decorator or sitemesh.xml. Matt On 3/27/07, PSI <[EMAIL PROTECTED]> wrote: Matt: This is our third project based on appfuse, this time we are using struts/spring... About issue

Re: [appfuse-user] appfuse with HTML Frameset?

2007-03-27 Thread PSI
Matt: This is our third project based on appfuse, this time we are using struts/spring... About issue, Thanks for reply, actually i am having problems while using frameset on appfuse. But if i try sample project from SiteMesh it does render frameset correctly, if correct decorators are setup for

Re: [appfuse-user] How to customize Struts2 action extention ".html" to ".pdf" or ".xls" for reports?

2007-03-27 Thread Matt Raible
The easiest way is probably to add an entry to the UrlRewriteFilter (WEB-INF/urlrewrite.xml). http://tuckey.org/urlrewrite/manual/2.6/ Matt On 3/27/07, wnqq <[EMAIL PROTECTED]> wrote: Environment: * Appfuse v2M4 with struts basic archetype * Firefox 2.x * JasperReports I integrated JasperRep

[appfuse-user] How to customize Struts2 action extention ".html" to ".pdf" or ".xls" for reports?

2007-03-27 Thread wnqq
Environment: * Appfuse v2M4 with struts basic archetype * Firefox 2.x * JasperReports I integrated JasperReports with Appfuse v.2M4 with Struts basic archetype. The steps I did include: * add jasper dependencies in pom.xml * prepare PersonAction.java * prepare personList.jasper as generated by iR

[appfuse-user] Re: [ANN] AppFuse 2.0 M4 Released

2007-03-27 Thread Matt Raible
FYI... I did notice an issue with war overlay in my application today. Because AppFuse 2.0 M4's JSP files had a newer timestamp, they overrode my local ones in the final war. Running "touch" on all my local files fixed this problem. I've added this to the Upgrade Guide for M4. Matt On 3/24/07

Re: [appfuse-user] Extending GenericManager - Spring MVC

2007-03-27 Thread whyme
If you do get a chance to check it out and you find out what the problem is please let me know. Thanks Other than this issue I'm finding Appfuse to be an excellant solution to streamline app. development. mraible wrote: > > I didn't write the tutorial, so I can't confirm its accuracy. I gues

Re: [appfuse-user] Extending GenericManager - Spring MVC

2007-03-27 Thread Matt Raible
I didn't write the tutorial, so I can't confirm its accuracy. I guess it's time I do it and make sure it works. ;-) Matt On 3/27/07, whyme <[EMAIL PROTECTED]> wrote: The error is: The type PersonManager is not generic; it cannot be parameterized with arguments When I change > private Ge

Re: [appfuse-user] Extending GenericManager - Spring MVC

2007-03-27 Thread whyme
The error is: The type PersonManager is not generic; it cannot be parameterized with arguments When I change > private GenericManager personManager = null; > to > private PersonManager personManager = null; I would zip it up to you but it is exactly the same as the tutorial. I've zipp

Re: [appfuse-user] Extending GenericManager - Spring MVC

2007-03-27 Thread Matt Raible
What error are you getting? If you'd like, you can send me your project (zip it up and send it to [EMAIL PROTECTED]) and I can look at it later tonight. Matt On 3/27/07, whyme <[EMAIL PROTECTED]> wrote: Yeah and they are exactly as they are in the tutorial. Then there is the note The Web app

Re: [appfuse-user] Extending GenericManager - Spring MVC

2007-03-27 Thread whyme
Yeah and they are exactly as they are in the tutorial. Then there is the note The Web application tutorials assume that you will be using the GenericManager. If you follow them after making this change, you will need to change all the references in their code from the GenericManager to your new P

Re: [appfuse-user] Extending GenericManager - Spring MVC

2007-03-27 Thread Matt Raible
If you're extending GenericManager, you should have access to the CRUD methods. Did you look at the bottom of the tutorial, where you write a PersonManager.java and PersonManagerImpl.java? Matt On 3/27/07, whyme <[EMAIL PROTECTED]> wrote: Confused?? Trying to implement GenericMangerImpl to t

Re: [appfuse-user] Testing security during unit tests.

2007-03-27 Thread Matt Raible
This is the expected way to add new config files. If you have a more elegant solution, don't be afraid to suggest it. Matt On 3/27/07, donleyp <[EMAIL PROTECTED]> wrote: Ok, I answered my own question. After writing that post I dug a little further and finally found an overridable method in B

[appfuse-user] Extending GenericManager - Spring MVC

2007-03-27 Thread whyme
Confused?? Trying to implement GenericMangerImpl to take advantage of CRUD methods public class PersonManagerImpl extends GenericManagerImpl implements PersonManager{ In doing so I now need to create an instance of PersonManager in my PersonController but not sure how. Tutorial shows: priv

Re: [appfuse-user] Testing security during unit tests.

2007-03-27 Thread donleyp
Ok, I answered my own question. After writing that post I dug a little further and finally found an overridable method in BaseDaoTestCase that solved my problem: protected String[] getConfigLocations() { return (String[]) ArrayUtils.add(super.getConfigLocations(), "classpa

[appfuse-user] Testing security during unit tests.

2007-03-27 Thread donleyp
I am having trouble using Acegi inside my unit tests. The following is a unit test for my "AccountDao" class. public class AccountDaoTest extends BaseDaoTestCase { private AuthenticationManager authenticationManager; private AccountDao accountDao; private UserDao

Re: [appfuse-user] Simply separation

2007-03-27 Thread Matt Raible
You could use AppFuse to do this. If you're using 2.0, you could use a modular setup and have the backend guys work on the "core" module and the front-end folks use the "web" module. You'll have to setup some central (internal) repository so you can "mvn deploy" when you have updates from the co

Re: [appfuse-user] security in appfuse...

2007-03-27 Thread Matt Raible
For the security stuff, you could read Acegi Security's documentation: http://acegisecurity.org/reference.html Matt On 3/2/07, some screen1 <[EMAIL PROTECTED]> wrote: Hi all, I am using appfuse 1.9.4 with ant 1.6.5. I am using struts framework but appfuse using Some spring framework classes i

Re: [appfuse-user] How to set more than one parameter in a display tag column?

2007-03-27 Thread Matt Raible
If you remove the "property" attribute, you'll have full control over what's produced in the column, so you can write your own link and use , etc. in the body of the tag. Matt On 3/27/07, Jesfre <[EMAIL PROTECTED]> wrote: I need more than one parameter in the url of my id column... I tried

Re: [appfuse-user] different problems with 1.0-m4-SNAPSHOT

2007-03-27 Thread Matt Raible
I've seen this problem with h2 and other embedded databases. Basically, since the database is created in a relative directory, it's not available when you're in the "web" directory because it was created (by the hibernate3 plugin) in the "core" module. You could change your jdbc.url in the h2 pro

[appfuse-user] How to set more than one parameter in a display tag column?

2007-03-27 Thread Jesfre
I need more than one parameter in the url of my id column... I tried with the tags, but don't work... maybe some example?? :( where I must place this? -- View this message in context: http://www.nabble.com/How-to-set-more-than-one-parameter-in-a-display-tag-column--tf3476452s236

Re: [appfuse-user] Bypassing XDoclet

2007-03-27 Thread Richard G. Reyes
thanks Matt. On 3/27/07, Matt Raible <[EMAIL PROTECTED]> wrote: From the FAQ: http://raibledesigns.com/wiki/AppFuseSupport.html#ref-AppFuseSupport-9 Do I have to use XDoclet to generate my *.hbm.xml files? Is it possible to override a single hbm.xml file and create it by hand? If you have an

Re: [appfuse-user] appfuse with HTML Frameset?

2007-03-27 Thread Matt Raible
SiteMesh has a FrameSet decorator you could probably use. I've tried to stay away from frames as much as possible - haven't used them in a couple years. Matt On 3/27/07, PSI <[EMAIL PROTECTED]> wrote: Any suggestions using FrameSet instead of DIV. Cause default.jsp is related to DIV and decor

[appfuse-user] appfuse with HTML Frameset?

2007-03-27 Thread PSI
Any suggestions using FrameSet instead of DIV. Cause default.jsp is related to DIV and decorator setup. Any help would be appreciated. Thanks, PSI -- View this message in context: http://www.nabble.com/appfuse-with-HTML-Frameset--tf3475949s2369.html#a9702307 Sent from the AppFuse - User mail

Re: [appfuse-user] corrupt db vague error message

2007-03-27 Thread tibi
jep now i get your role is not ok... which is right... so the common messages is braking it it should be simple to reproduce: just add this to the semple-data.xml and login as milan/tomcat 3 milan 536c0b339345616c1b33caf454454d8b8a190d6c milan milan Denver

Re: [appfuse-user] corrupt db vague error message

2007-03-27 Thread Matt Raible
What about if you remove the include from your decorators/default.jsp? Are you using 2.0-M4? On 3/27/07, tibi <[EMAIL PROTECTED]> wrote: tried it now it get: Yikes! but no stack trace and no stack trace in my console... tibi Matt Raible wrote: > Try removing the following line

Re: [appfuse-user] corrupt db vague error message

2007-03-27 Thread tibi
tried it now it get: Yikes! but no stack trace and no stack trace in my console... tibi Matt Raible wrote: Try removing the following line from error.jsp to see if that helps: <%@ include file="/common/messages.jsp" %> It should be hitting /WEB-INF/pages/dataAcces

Re: [appfuse-user] corrupt db vague error message

2007-03-27 Thread Matt Raible
Try removing the following line from error.jsp to see if that helps: <%@ include file="/common/messages.jsp" %> It should be hitting /WEB-INF/pages/dataAccessFailure.jsp - maybe there's something wrong with that file? Matt On 3/27/07, tibi <[EMAIL PROTECTED]> wrote: hi, i no

[appfuse-user] corrupt db vague error message

2007-03-27 Thread tibi
hi, i noticed that when i have a corrupt database the error message are not clear. luckaly i expected it at forehand but i'm not sure i would have found it if i did not. exaple: there is a record with a xxxid of 170 but in table xxx there is no record with is 170. the model has a oneToMany r

Re: [appfuse-user] Maven behind a proxy

2007-03-27 Thread Matt Raible
On Windows, you'll want to unzip this to c:\Documents and Settings\yourusername\.m2\repository. On *nix, you'll want to use ~/.m2/repository. Matt On 3/27/07, Fan <[EMAIL PROTECTED]> wrote: 1)Where does this path "m2 directory directly below your home directory" refer to ? 2)If I am going t

Re: [appfuse-user] Re: Appfuse 2.0 - Struts 2 - Error 500 - /error.jsp

2007-03-27 Thread Matt Raible
If you enter an issue for it, I'll remove it. ;-) Matt On 3/27/07, Benoit Moraillon <[EMAIL PROTECTED]> wrote: It works. Thanks ! Do you plan to remove it in the maven archetype ? Matt Raible a écrit : > I would try removing the messages.jsp include in error.jsp - if that > helps, leave it o

Re: [appfuse-user] Appfuse PB creating an app from an existing table

2007-03-27 Thread Matt Raible
Can you try moving your project to a directory that doesn't have spaces in it? For example, use "c:\source" instead of "c:\program files". Thanks, Matt On 3/27/07, Nitram <[EMAIL PROTECTED]> wrote: Hi, I have ran ant test-dao I will send you the traces. May be I wrongly understand the "confi

[appfuse-user] Struts validation rules

2007-03-27 Thread Stine, Matt
Anyone had trouble w/ your validation rules not being cleared out w/ each request in Struts 2? With each submit I end up getting a long list of error messages above each field that only stops when I correct that field. However, at that point, even if I correct the entire form the previous errors s

[appfuse-user] CreateDAO Javac PB

2007-03-27 Thread Nitram
Hi, having problem to generate my application from a DB table, I try to create from a Java file. >From the createDAO tutorial, #1 I have set the Java file that appfuse generate to me from the previous experience; I give it to you as atteched file. I try to execute ant setup-db and I got the follow

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread Michael Horwitz
The dependencies tag lists the set of dependencies for your project. These are downloaded from the Maven central repository. For more info take a look at the section in the Maven quickstart guide (highly recommended if you are new to Maven): http://maven.apache.org/guides/getting-started/index.htm

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread Michael Horwitz
Unfortunately Maven steps into the fray here. Maven will use the dependency with the shortest path, so we have: 1) myproject -> appfuse-struts -> appfuse-web-common -> commons-collections 3.2 2) myproject -> jasperreports -> commons-collection old version. As the path in two is shorter, it wins

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread Fan
Can anyone tell me what does tag mean in maven ? in the following example from pom.xml , 1)what does mean ? 2)where & how to look up the ${web.framework} or ${appfuse.version} ? org.appfuse appfuse-${web.framework} ${appfuse.version} w

Re: [appfuse-user] How to create separate transaction from Spring's

2007-03-27 Thread Matt Raible
John, Are you using 1.9.0 or 1.9.4? 1.9.0 uses Spring 1.x whereas 1.9.4 uses 2.x. With 2.x, we're using AspectJ's pointcut expression language. To exclude a certain manager from being intercepted by txAdvice, you could change it from: to: HTH, Matt On 3/26/07, dayspringjohn <[EMAIL PROT

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread Matt Raible
That's strange you're getting this error - 2.0 M4 has an explicit dependency on commons-collections 3.2 in the common-web project. commons-collections commons-collections ${commons.collections.version} Matt On 3/27/07, wnqq <[EMAIL PROTEC

Re: [appfuse-user] Possible to load two set of ApplicationResources.properties ?

2007-03-27 Thread Fan
1) Yes I am using struts as the web framework, I have the following lines inside the struts.xml, so how could I change that to make loading two set of ApplicationResources.properties ? what does this mean ? 2) In fact, I want to have both english & chine

Re: [appfuse-user] Re: Appfuse 2.0 - Struts 2 - Error 500 - /error.jsp

2007-03-27 Thread Benoit Moraillon
It works. Thanks ! Do you plan to remove it in the maven archetype ? Matt Raible a écrit : I would try removing the messages.jsp include in error.jsp - if that helps, leave it out. Matt On 3/27/07, Benoit Moraillon <[EMAIL PROTECTED]> wrote: If i remove : 500 /error.jsp

Re: [appfuse-user] Bypassing XDoclet

2007-03-27 Thread Matt Raible
From the FAQ: http://raibledesigns.com/wiki/AppFuseSupport.html#ref-AppFuseSupport-9 - *Do I have to use XDoclet to generate my *.hbm.xml files? Is it possible to override a single hbm.xml file and create it by hand?* If you have an @hibernate.class tag on a POJO - hibernatedoclet will gen

Re: [appfuse-user] Appfuse PB creating an app from an existing table

2007-03-27 Thread Nitram
Hi, I have ran ant test-dao I will send you the traces. May be I wrongly understand the "configuration of the mapping file". Do I need to do it if I need to create POJO from a table ? If Yes, I used to work on : C:\Program Files\PlanningRAO\src\dao\org\thalesInfo\dao\hibernate I add :

Re: [appfuse-user] Possible to load two set of ApplicationResources.properties ?

2007-03-27 Thread Matt Raible
On 3/27/07, Fan <[EMAIL PROTECTED]> wrote: 1)Is that possible to load two set of ApplicationResources.properties ? It depends on the web framework you're using. If it's Struts, the i18n bundles are specified at the top of struts.xml. 2)Is that possible to have two different languages , may

[appfuse-user] Possible to load two set of ApplicationResources.properties ?

2007-03-27 Thread Fan
1)Is that possible to load two set of ApplicationResources.properties ? 2)Is that possible to have two different languages , maybe chinese & english, being used together in Appfuse 2.0 ? 3)How does Appfuse 2.0 chose which ApplicationResource.properties to load ? Hope I can get a pointer to whi

Re: [appfuse-user] How to get rid of log4j warning?

2007-03-27 Thread Matt Raible
I've tried to get rid of this warning too and have been (so far) unsuccessful. Let us know if you figure out the solution. Matt On 3/27/07, wnqq <[EMAIL PROTECTED]> wrote: Environment: v.2M4 + Struts basic archetype When executing mvn integration-test, I got the annoying warning message: "lo

Re: [appfuse-user] Re: Appfuse 2.0 - Struts 2 - Error 500 - /error.jsp

2007-03-27 Thread Matt Raible
I would try removing the messages.jsp include in error.jsp - if that helps, leave it out. Matt On 3/27/07, Benoit Moraillon <[EMAIL PROTECTED]> wrote: If i remove : 500 /error.jsp from web.xml, i can see my error detail. Is there another solution ? HTTP ERROR:

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread wnqq
Many thanks for the direction. Michael Horwitz wrote: > > If it works, it has to be right! ;-) > > Mike > > On 3/27/07, wnqq <[EMAIL PROTECTED]> wrote: >> >> >> >> The following settings in pom.xml can get the application to work. >> However, >> I am not sure if it is the right way to do with

Re: [appfuse-user] Maven behind a proxy

2007-03-27 Thread Fan
1)Where does this path "m2 directory directly below your home directory" refer to ? 2)If I am going to download the dependencies zip file, where should I put it into ? Sorry, I might sound silly, but I am really new to maven mraible wrote: > > On 3/26/07, Matt Raible <[EMAIL PROTECTED]> wrot

[appfuse-user] Re: Appfuse 2.0 - Struts 2 - Error 500 - /error.jsp

2007-03-27 Thread Benoit Moraillon
If i remove : 500 /error.jsp from web.xml, i can see my error detail. Is there another solution ? HTTP ERROR: 500 fr.crb.reservations.webapp.action.OperationReservationAction.save() RequestURI=/saveOperationReservation.html /Powered by Jetty://

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread Michael Horwitz
If it works, it has to be right! ;-) Mike On 3/27/07, wnqq <[EMAIL PROTECTED]> wrote: The following settings in pom.xml can get the application to work. However, I am not sure if it is the right way to do within appfuse's environment. .. jasperreports

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread wnqq
The following settings in pom.xml can get the application to work. However, I am not sure if it is the right way to do within appfuse's environment. .. jasperreports jasperreports 1.3.1

Re: [appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread Michael Horwitz
The easiest way is to add an explicit dependency in your own pom on commons collections which overrides any inherited dependencies. Adding this should solve the problem: commons-collections commons-collections 3.2 Mike. On 3/27/07, wnqq <[EMAIL PROTECTED]> wrote

[appfuse-user] struts-menu dependency conflict of commons-collections

2007-03-27 Thread wnqq
environment: appfuse v2m4 + struts basic archetype My appfuse application originally worked properly until I added the following dependency to pom.xml: .. jasperreports jasperreports 1.3.1 Once the above jas

[appfuse-user] Appfuse 2.0 - Struts 2 - Error 500 - /error.jsp

2007-03-27 Thread Benoit Moraillon
Internal Server Error in appfuse 2.0 should be treated by /error.jsp but jetty don't display this page. HTTP ERROR: 500 INTERNAL_SERVER_ERROR RequestURI=/error.jsp /Powered by Jetty:// / Have you got a solution for this issue ?

Re: [appfuse-user] generic converter

2007-03-27 Thread Benoit Moraillon
Yes it works ! Matt Raible a écrit : This sounds like a reasonable approach. Have you been using it with success? Matt On 3/1/07, Benoit Moraillon <[EMAIL PROTECTED]> wrote: Hi everybody, 1) i'm using jsf converter in order to create a many-to-one relationship from will be replaced by :

Re: [appfuse-user] Maven behind a proxy

2007-03-27 Thread Michael Horwitz
Nigel, I also run Maven on a windows box through a proxy, but without issue. Does your proxy do anything fancy like NTLM authentication? If so that could be an issue. One way to get an idea of what is going on is to run Maven in debug and pipe the output to a log: mvn -X install > mvn.log And p