Re: [appfuse-user] Appfuse 2 and JSF

2010-05-26 Thread Hantsy Bai
On 05/26/2010 08:52 PM, ErEcTuS wrote: Hello I want to ask what is the JSF components library used by appfuse 2. Is it tomahawk? Can we use another libraries like icefaces or richfaces? thanks I think adding iceface or richfaces dependencies to pom.xml is not diffcult. -- Hantsy Bai Gua

Re: [appfuse-user] Appfuse 2 and JSF

2010-05-26 Thread Matt Raible
Yes, you can use other libraries, it just might take some work on your part to integrate them. I'd suggest searching the mailing list archives to see what others have done. I believe both libraries have been integrated successfully and there's even an ICEfaces version. http://code.google.com/p/ice

Re: [appfuse-user] Appfuse 2 and netbeans

2010-05-14 Thread Matt Raible
You should be able to pull in the root pom.xml and use that for your IDE integration. If that doesn't work, use IDEA. ;-) On Fri, May 14, 2010 at 5:48 PM, ErEcTuS wrote: > > Hello Everybody > > I have to developp a web test case management application and after > hesitating between Spring Roo and

Re: [appfuse-user] Appfuse 2 -Manager calling manager?

2008-12-02 Thread Michael Duergner
Maybe have a look at http://static.springframework.org/spring/docs/2.5.x/reference/transaction.htmland especially at http://static.springframework.org/spring/docs/2.5.x/reference/transaction.html#tx-propagationwhich shows the different transaction propagation methods. On Mon, Dec 1, 2008 at 8:48 P

Re: [appfuse-user] Appfuse 2 -Manager calling manager?

2008-12-01 Thread Michael Horwitz
If you get CotizacionManager to call ArticuloManager as a dependency, then the transaction should propagate and Spring will not start a new transaction. This does depend on the settings of the transaction manager, but I believe the default is to only start a new transaction if one is not already pr

Re: [appfuse-user] Appfuse 2 -Manager calling manager?

2008-12-01 Thread Derlon Aliendres
Sergio, Well, have u ever think of BPM management (BPEL for instance)??! When modeling by it, it's common to see BusinessProcess (usually manager Class exposed as WebService) trigging (or even making a call of) other Process. But, in this case the manager FaçadesClasses are what actually are

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-15 Thread Rob Hills
Hi All, Rob Hills wrote: > > > Rob Hills wrote: >> >> In my AppFuse 2 + Struts app, I have one Form JSP (with one Action class) >> that is accessed from two different lists. When the user quits the form >> (save, cancel etc.) they need to return to the list they came from... >> > > I still

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-14 Thread Dustin Pearce
Rob, You can add a parameter in your Form action called "next" or something like that. Then in your link to the Form, you can include next=listOne or next=listTwo. Then in the success and cancel in the action config do .. ${next}.action or ${action} Just be sure you have both the

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-14 Thread JG Flowers
Rob Hills wrote: > > Hi All, > > > Rob Hills wrote: >> >> In my AppFuse 2 + Struts app, I have one Form JSP (with one Action class) >> that is accessed from two different lists. When the user quits the form >> (save, cancel etc.) they need to return to the list they came from... >> > > I

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-14 Thread Heath Eldeen
Rob, I think you are looking for dynamic results: http://struts.apache.org/2.0.11.2/docs/result-configuration.html Heath On Tue, Oct 14, 2008 at 9:48 AM, Rob Hills <[EMAIL PROTECTED]>wrote: > > Hi All, > > > Rob Hills wrote: > > > > In my AppFuse 2 + Struts app, I have one Form JSP (with one Ac

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-14 Thread Rob Hills
Hi All, Rob Hills wrote: > > In my AppFuse 2 + Struts app, I have one Form JSP (with one Action class) > that is accessed from two different lists. When the user quits the form > (save, cancel etc.) they need to return to the list they came from... > I still haven't been able to work this on

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-05 Thread Rob Hills
Hi again, Some of the XML in my last post got scrambled, I'll try again. Is there any way to format code in the web interface of Nabble? Couldn't see anything in the help pages. Rob Hills wrote: > > method="listSomeThings"> > /WEB-INF/pages/listSomeThings.jsp > > > method="listOth

Re: [appfuse-user] AppFuse 2 + Struts 2 - Why does save action return INPUT for an existing record?

2008-09-09 Thread Rob Hills
Hi Matt, Thanks for the prompt reply as usual! mraible wrote: > > My thought process was that if you're editing an existing record, you > want to visually see the change after you've made it. When adding a > new record, it's likely you don't want to see the change. That was my > thinking when

Re: [appfuse-user] AppFuse 2 + Struts 2 - Why does save action return INPUT for an existing record?

2008-09-09 Thread Matt Raible
My thought process was that if you're editing an existing record, you want to visually see the change after you've made it. When adding a new record, it's likely you don't want to see the change. That was my thinking when I did it this way. Matt On Tue, Sep 9, 2008 at 9:52 AM, Rob Hills <[EMAIL P

Re: [appfuse-user] appfuse 2.x: java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based!

2008-08-27 Thread Miguel Romero
i have used the appfuse wrapper method "findByNamedQuery" because it use findByNamedQueryAndNamedParam and it works perfectly: public List findByNamedQuery( String queryName, Map queryParams) { String []params = new String[queryParams.size()]; Object []values = new O

Re: [appfuse-user] appfuse 2.x: java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based!

2008-08-27 Thread Kan Sun
Hi Miguel I just encountered exactly the same problem yesterday. I notice that in your code there is a line *return getHibernateTemplate().findByNamedQuery("myquery",queryParams);* I think you should alternatively use a counterpart of the findByNamedQuery e.g. *getHibernateTemplate().findByName

Re: [appfuse-user] AppFuse 2 JSF how to setup https switch

2008-08-05 Thread pedro_burglin
Oh well... The approach described on my previous message below works fine with FireFox but I found a weird issue testing it on IE6. Using IE6 I go to the login page (or try to go to a page that requires credentials so it loads the login page), and but when I enter my credentials and click Login it

Re: [appfuse-user] AppFuse 2 JSF how to setup https switch

2008-08-05 Thread pedro_burglin
I still couldn't find the optimal solution to this problem but given my timeframe I had to implement a quick and less flexible shortcut (i.e. a hardcoded hack :P) to make it work. Instead of setting the HTTP/HTTPS switch in security.xml like I wanted to I am setting it in few JSPs like login.jsp.

Re: [appfuse-user] AppFuse 2 JSF how to setup https switch

2008-07-24 Thread pedro_burglin
Yep, using the right package definitely helps but I am still not able to make it work properly. I am not getting any exceptions when I start Jetty (I followed this helpful post to configure Jetty to use SSL too: http://markmail.org/message/nnzgq3yzbkxlvvx2#query:appfuse%20jetty%20ssl+page:1+mid:s

Re: [appfuse-user] AppFuse 2 JSF how to setup https switch

2008-07-23 Thread Matt Raible
I'd try using org.springframework.security.* instead of org.acegisecurity.*. HTH, Matt On Wed, Jul 23, 2008 at 12:33 PM, pedro_burglin <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am trying to setup http/https switch for certain pages of AppFuse 2 JSF. > > I am running Tomcat 6 and I set up the

Re: [appfuse-user] Appfuse 2.x issues

2008-06-25 Thread surein
Just copy the .m2 directory to from C:\Documents and Settings\...\.m2 to some other location give the path of repository in maven/conf/settings.xml (uncomment local repository) /path/to/local/repo give the full path like D:/MyRepo/.m2/repository set the path in system environmental variabl

Re: [appfuse-user] Appfuse 2.x issues

2008-06-24 Thread Matt Raible
The answer is in the QuickStart Guide (http://appfuse.org/display/APF/AppFuse+QuickStart): Bug with Ant 1.7.0 Local repositories and projects on Windows platforms are held in directories whose paths contain no spaces. To fix this issue, modify your $M2_HOME/conf/settings.xml and change you

Re: [appfuse-user] AppFuse 2 Maven Error.

2008-03-18 Thread Matt Raible
This is a bug in the 1.2.0 version of MyFaces - it doesn't contain the DTDs in its JARs. You might try searching the archives of this list for solutions. Matt On 3/18/08, Irshad Buchh <[EMAIL PROTECTED]> wrote: > > Hi, > We are a happy AppFuse 1.9.4/JSF-Hibernate shop and would like to migrate

Re: [appfuse-user] Appfuse 2 JSF - A4J undefined question

2008-03-11 Thread Matt Raible
I believe the script is added by the Ajax4JSFFilter - you might want to make sure your URL pattern matches the filters. Matt On 3/11/08, ycharron <[EMAIL PROTECTED]> wrote: > > Hi Matt, > No I didn't get this from the a demo. We are building a project around > a jsf version of appfuse 2. >

Re: [appfuse-user] Appfuse 2 JSF - A4J undefined question

2008-03-11 Thread ycharron
Hi Matt, No I didn't get this from the a demo. We are building a project around a jsf version of appfuse 2. Everything was working great until we realized that we've lost our ajax functionnality. I went back and build a fresh appfuse jsf to use as a reference project. I then noticed that th

Re: [appfuse-user] Appfuse 2 JSF - A4J undefined question

2008-03-10 Thread Matt Raible
Do you get this on a demo that's hosted on demo.appfuse.org? Thanks, Matt On 3/4/08, ycharron <[EMAIL PROTECTED]> wrote: > > Hi, >I just started getting issues with the ajax demo. I doesn't run anymore > and I'm getting the following ie message ERROR 'A4J' is undefined. I try > to sear

Re: [appfuse-user] Appfuse 2 Spring-Hibernate query result filter question

2008-02-15 Thread Rob Hills
Hi Yves, ycharron wrote: Hello, I'm trying to use a hibernate filter to limit child records of an oneToMany association. @Entity public Class Parent { ... private Set childs = new HashSet(); ... @OneToMany (fetch=FetchType.EAGER) @JoinColumn(name = "fk_parentId")

Re: [appfuse-user] Appfuse 2 SSL switching

2008-01-17 Thread chubi
Thank your Mike, I got it solved thank to the link you gave me. I also found this in some forum which helped me a lot in understanding Acegi configuration. Here it is by copy/paste: chubi wrote: > > --- > Here is a rundown

Re: [appfuse-user] Appfuse 2 SSL switching

2008-01-16 Thread Michael Horwitz
On 1/16/08, chubi <[EMAIL PROTECTED]> wrote: > > > Thank you Mike for your reqply, > > I still don't understand where Acegi stands for here. > Shouldn't it facilitate the process of securing channels by a matter of > quick configuration. > I need some detail steps on how enabling SSL in Acegi. > Is

Re: [appfuse-user] Appfuse 2 SSL switching

2008-01-16 Thread chubi
Thank you Mike for your reqply, I still don't understand where Acegi stands for here. Shouldn't it facilitate the process of securing channels by a matter of quick configuration. I need some detail steps on how enabling SSL in Acegi. Is there any article describing the whole process of doing it?

Re: [appfuse-user] Appfuse 2 SSL switching

2008-01-16 Thread Michael Horwitz
On 1/16/08, chubi <[EMAIL PROTECTED]> wrote: > > > Hi there, > > I searched all over the net for how to configure appfuse use SSL. > The only thing mentioned there is adding addresses that should use SSL > switching in security.xml. > Nothing mentioned on how to get certificate,store keys, ect. > E

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Rob Hills
Hi Dale, Dale Newfield wrote: Rob Hills wrote: A record sitting in the db has the version no 0. User A opens a form to edit the record and hibernate increments the version to 1. As far as hibernate is concerned, I don't understand how there is any difference between "load an object to show

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Dale Newfield
Rob Hills wrote: A record sitting in the db has the version no 0. User A opens a form to edit the record and hibernate increments the version to 1. As far as hibernate is concerned, I don't understand how there is any difference between "load an object to show a view of it" and "load an obje

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Rob Hills
Hi Dale, Dale Newfield wrote: Rob Hills wrote: My problem arises when using this last form. If I watch the database while navigating through the Grandparent edit form to the Parent edit form, I see that the version number for the selected Grandparent record increments once when going to the

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Dale Newfield
Rob Hills wrote: My problem arises when using this last form. If I watch the database while navigating through the Grandparent edit form to the Parent edit form, I see that the version number for the selected Grandparent record increments once when going to the Grandparent edit form and then a

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Rob Hills
Hi All, I believe I've worked out what my problem is, but not how to solve it. The data structure for this part of the app involves 3 tiers of one:many relationships, ie the grandparent record has many parent records which have many child records. The actual entities are Route 1:n Delivery 1:

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

2007-12-10 Thread Rob Hills
Whoa! Glad I asked! Seriously, thanks for the detail, it would have taken me a lot of time to work all that out from scratch. The tip about package-info.java was especially good, I've not seen one of those animals before. Eclipse didn't like the name much either, as soon as I typed in the h

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

2007-12-10 Thread Michael Horwitz
On 12/10/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi Michael, > > Michael Horwitz wrote: > > On 12/10/07, *Rob Hills* <[EMAIL PROTECTED] > > > wrote: > > I use Joda-time everywhere at the moment - complete joy after fighting > > with java.util.Date and java.util.Calend

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

2007-12-10 Thread Rob Hills
Hi Michael, Michael Horwitz wrote: On 12/10/07, *Rob Hills* <[EMAIL PROTECTED] > wrote: I use Joda-time everywhere at the moment - complete joy after fighting with java.util.Date and java.util.Calendar - and that includes the places where I am storing dates/times as i

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

2007-12-10 Thread Michael Horwitz
On 12/10/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi Michael, > > Michael Horwitz wrote: > > 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 lit

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

2007-12-09 Thread Rob Hills
Hi Michael, Michael Horwitz wrote: 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 th

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] 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 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 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 Development Environment Setup

2007-11-28 Thread Matt Raible
On Nov 28, 2007, at 2:56 AM, Dean Hallman wrote: Frank, If you are still hitting this problem, I think I can help... I was getting the exact problem you described in Eclipse (MyEclipse) and this is what I did to resolve: The main problem is, "mvn eclipse:eclipse" sets "bin" as the outpu

Re: [appfuse-user] AppFuse 2 Development Environment Setup

2007-11-28 Thread Dean Hallman
Frank, If you are still hitting this problem, I think I can help... I was getting the exact problem you described in Eclipse (MyEclipse) and this is what I did to resolve: The main problem is, "mvn eclipse:eclipse" sets "bin" as the output directory. However, "target" is really the output direc

Re: [appfuse-user] AppFuse 2 + Struts 2 - JSP logging support?

2007-11-25 Thread Rob Hills
Hi Ram, On 25 Nov 2007 at 7:52, rdr wrote: > I haven't done this myself, but I think it should be as simple as including > a taglib and using existing log4j > configuration. > > > > May be this could help. > http://jakarta.apache.org/taglibs/doc/log-doc/log-1.0/index.html Yeah, that was the p

Re: [appfuse-user] AppFuse 2 + Struts 2 - JSP logging support?

2007-11-25 Thread rdr
Rob, I haven't done this myself, but I think it should be as simple as including a taglib and using existing log4j configuration. May be this could help. http://jakarta.apache.org/taglibs/doc/log-doc/log-1.0/index.html Thanks Ram R Rob Hills wrote: > > Hi All, > > I need to do some loggin

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-19 Thread Rob Hills
Hi Mike, Michael Horwitz wrote: On 11/19/07, *Rob Hills* <[EMAIL PROTECTED] > wrote: Thanks for the reply. [..] I've been doing quite a bit of tracing through the code (via Eclipse) but am having a bit of trouble understanding what I'm looking at.

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-19 Thread Michael Horwitz
Hi Rob, On 11/19/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi Michael, > > Thanks for the reply. > > Michael Horwitz wrote: > > > > On 11/19/07, *Rob Hills* <[EMAIL PROTECTED] > > > wrote: > > > > > > After chipping away at this all weekend I'm still stuck. To > >

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-19 Thread Rob Hills
Hi Michael, Thanks for the reply. Michael Horwitz wrote: On 11/19/07, *Rob Hills* <[EMAIL PROTECTED] > wrote: After chipping away at this all weekend I'm still stuck. To summarise the problem (detailed previously in this thread), I have a form that si

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-19 Thread Michael Horwitz
On 11/19/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > After chipping away at this all weekend I'm still stuck. To summarise the > problem (detailed previously in this thread), I have > a form that simultaneously edits a Parent record and its related child > records (I'm calling the POJ

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-18 Thread Rob Hills
Hi All, After chipping away at this all weekend I'm still stuck. To summarise the problem (detailed previously in this thread), I have a form that simultaneously edits a Parent record and its related child records (I'm calling the POJOs "Parent" and "Child" for simplicity) but when I try and

Re: [appfuse-user] AppFuse 2 Development Environment Setup

2007-11-18 Thread Frank Lawlor
setting M2_REPO managed to cut the number of errors in half. -- View this message in context: http://www.nabble.com/AppFuse-2-Development-Environment-Setup-tf4829541s2369.html#a13824594 Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] AppFuse 2 Development Environment Setup

2007-11-18 Thread Matt Raible
It's not AppFuse's fault - it's Eclipse. You could always use IDEA or NetBeans and probably see less "errors". ;-) I've heard Eclipse 3.3 (Europa) has a much better JSP editor. Matt On 11/18/07, Frank Lawlor <[EMAIL PROTECTED]> wrote: > > > Thanks Mike. > > I understand the the issue of bogus err

Re: [appfuse-user] AppFuse 2 Development Environment Setup

2007-11-18 Thread Frank Lawlor
Thanks Mike. I understand the the issue of bogus errors (I've had to live with it in AppFuse 1), but it seems even worse in AppFuse 2. As a developer I'm concerned that with so many "errors" I can tell what is really an error. I hope there is some plan to resolve this in the future. -- View th

Re: [appfuse-user] AppFuse 2 Development Environment Setup

2007-11-18 Thread Michael Horwitz
On Nov 18, 2007 7:02 PM, Frank Lawlor <[EMAIL PROTECTED]> wrote: > > > > Rob Hills wrote: > > > > ... > > > > HTH, > > > > Rob Hills > > Waikiki, Western Australia > > > > Rob, > > I really do appreciate your taking the trouble to reply, but you basically > just told me to follow the directions wh

Re: [appfuse-user] AppFuse 2 Development Environment Setup

2007-11-18 Thread Frank Lawlor
Rob Hills wrote: > > ... > > HTH, > > Rob Hills > Waikiki, Western Australia > Rob, I really do appreciate your taking the trouble to reply, but you basically just told me to follow the directions which you recognize that I already read. I still have an Eclipse environment with a bunch of

Re: [appfuse-user] AppFuse 2 Development Environment Setup

2007-11-18 Thread Rob Hills
Hi Frank, Frank Lawlor wrote: I am trying to set up AppFuse 2. I followed the instructions at http://appfuse.org/display/APF/AppFuse+QuickStart. Seemed to go ok (but it set up my project in my documents dir w/o even asking me where I REALLY want it!) It's a shame you find it all so confusing.

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-16 Thread dusty
Rob, Its probably that time where you zip up the relevant code and ship it off to me. [EMAIL PROTECTED] It will be easier if I just take a look, if you'd like me to. -Dusty Rob Hills wrote: > > Hi Dusty, > > dusty wrote: >> #1 Can you show me your cancel button? In Appfuse, the Cancel but

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-15 Thread dusty
Hey Rob, #1 Can you show me your cancel button? In Appfuse, the Cancel button is actually a submit button that sends the form to your save method. If your Action extends BaseAction it should catch the cancel and abort the operation and return CANCEL. If for some reason you did not extend Base

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-15 Thread Rob Hills
Hi Dusty, dusty wrote: #1 Can you show me your cancel button? In Appfuse, the Cancel button is actually a submit button that sends the form to your save method. If your Action extends BaseAction it should catch the cancel and abort the operation and return CANCEL. If for some reason you did

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-15 Thread dusty
At some point I will try to create some pretty wiki tutorial write ups on the Appfuse siite for this pattern and some other goodies I use regularly. -D Rob Hills wrote: > > Hi All, > > I have an AppFuse 2 + Hibernate + Struts application that includes two > model classes with a one -> many ent

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-15 Thread Daniel Kibler
I've also been looking for exactly such an example. I think there is one problem, probably caused by the forum. It looks like there should be a link associated with the delete on each row. In the message it is shown as ">Delete Dan dusty wrote: > > So it doesn't happen that often, but it just

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-15 Thread Rob Hills
Hi Dusty, On 14 Nov 2007 at 7:44, dusty wrote: > That is the beauty of this solution. There is no transaction until the user > decides to save the form. Imagine a form with a series of fields and then > this table at the bottom. They are all part of the same form. When I > submit the form to

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-14 Thread Rob Hills
Hi Daniel, Daniel Kibler wrote: I've also been looking for exactly such an example. I think there is one problem, probably caused by the forum. It looks like there should be a link associated with the delete on each row. In the message it is shown as ">Delete Dan dusty wrote: So it doesn

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-14 Thread dusty
That is the beauty of this solution. There is no transaction until the user decides to save the form. Imagine a form with a series of fields and then this table at the bottom. They are all part of the same form. When I submit the form to my add method on the action, the action reconstructs the

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-13 Thread Rob Hills
Hi Dusty, On 13 Nov 2007 at 21:02, dusty wrote: > So it doesn't happen that often, but it just so happens I wrote what you > described today! ;-) > > You create a table with each row representing your child objects. Each html > element should have the name parent.child[%{row.index}].childprope

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-13 Thread dusty
So it doesn't happen that often, but it just so happens I wrote what you described today! ;-) You create a table with each row representing your child objects. Each html element should have the name parent.child[%{row.index}].childpropertyname. The row part comes from Next you need to create

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Save -> "Read-Only" error

2007-11-10 Thread Rob Hills
Hi Michael, Michael Horwitz wrote: The usual culprit here is in the naming of the manager class your are using to do the save/edit. AppFuse ships with the following definitions for the AOP transaction proxy: advice-ref="userManagerTxAdvice" pointcut="execution(* *..service.UserManag

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Save -> "Read-Only" error

2007-11-10 Thread Michael Horwitz
The usual culprit here is in the naming of the manager class your are using to do the save/edit. AppFuse ships with the following definitions for the AOP transaction proxy: In short this says proxy all classes with names ending in 'Manager' that are in package 'se

Re: [appfuse-user] Appfuse 2 + Struts2 + LazyInitializationException in Action tests

2007-11-03 Thread Rob Hills
Hi All, On 4 Nov 2007 at 13:33, Rob Hills wrote: > I'm getting a LazyInitializationException in some of my Action tests and I'd > like to know whether there is something I'm doing wrong or whether I need > to implement one of the fixes I've found while Googling. > > AFAICT, this problem was fi

Re: [appfuse-user] Appfuse 2 + Struts2 + LazyInitializationException in Action tests

2007-11-03 Thread Rob Hills
Hi All, On 4 Nov 2007 at 13:33, Rob Hills wrote: > Finally, in hunting for a good generic solution for this problem, I came > across > a very attractive sounding link on the following page: > > http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSupport > > (see #9 - Hibernate-specific questio

Re: [appfuse-user] Appfuse 2 AcegiUtil improvement

2007-09-20 Thread Matt Raible
I think users should login and vote for it in Acegi's JIRA - then we won't have to add it - it'll be a part of Acegi. ;-) Matt On 9/20/07, benoit moraillon <[EMAIL PROTECTED]> wrote: > I found this add on spring forum in order to manage more easily user granted > authorithies in appfuse webapp: >

Re: [appfuse-user] appfuse 2 - Can I use the @spring.validator tag?

2007-09-09 Thread Matt Raible
We plan on supporting some sort of validation annotations in the future, possibly Hibernate's Validation framework. For now, you'll need to edit validation.xml. If you add specify a property is not-null using JPA annotations - a required rule will be generated for you when using AMP. Matt On 9/10

Re: [appfuse-user] AppFuse 2 - customisting login.jsp

2007-09-06 Thread Matt Raible
On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi Matt, > > On 6 Sep 2007 at 21:00, Matt Raible wrote: > > > If you put it in src/main/webapp and run "mvn clean", it should be picked > > up. > > > > Matt > > > > On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > > > Sorry to

Re: [appfuse-user] AppFuse 2 - customisting login.jsp

2007-09-06 Thread Rob Hills
Hi Matt, On 6 Sep 2007 at 21:00, Matt Raible wrote: > If you put it in src/main/webapp and run "mvn clean", it should be picked up. > > Matt > > On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > Sorry to trouble you with such a basic newbie question during the > > much-more-i

Re: [appfuse-user] AppFuse 2 - customisting login.jsp

2007-09-06 Thread Matt Raible
If you put it in src/main/webapp and run "mvn clean", it should be picked up. Matt On 9/6/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi All, > > Sorry to trouble you with such a basic newbie question during the > much-more-important rush to get 2.0 final released, but... > > How do I customise l

Re: [appfuse-user] AppFuse 2.x with JBoss

2007-07-25 Thread Gary Darnton
Thanks Mike, I put details below into pom.xml and it ran. net.sf.ehcache ehcache 1.3.0-beta2 Michael Horwitz wrote: > > This is normally due to the incorrect version of Ehcache being picked up > in > your classpath.

Re: [appfuse-user] AppFuse 2.x with JBoss

2007-07-24 Thread Michael Horwitz
This is normally due to the incorrect version of Ehcache being picked up in your classpath. In order to work properly AppFuse needs Ehcache 1.3.0. Two things to check: 1) Ehcache 1.3.0 is in the lib directory in your war (if not you will need to set an explicit dependency on Ehcache 1.3.0). 2) Th

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

2007-05-18 Thread Laurent Dejoux
well, i tried to change the name of the combobox to "licence.type.id" but then when I choose an other value, it change in the combobox but not in the field linked to the combobox (and i get a null pointer exception when i click save): http://www.nabble.com/file/8531/licenceForm.gif => http://

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

Re: [appfuse-user] Appfuse 2 - Problem populating DB with sample data

2007-05-15 Thread Matt Raible
If you received "BUILD SUCCESSFUL", it looks like it did succeed. Are you sure you're checking the right database? Matt On 5/15/07, mmaia <[EMAIL PROTECTED]> wrote: Hi, have used appfuse 1.9.4 for a couple of projects and had fun, really like it, life goes on and decided to take a look on appf

Re: [appfuse-user] appfuse 2 rocks

2007-04-09 Thread Matt Raible
On 3/5/07, tibi <[EMAIL PROTECTED]> wrote: hi all, i'm testing and trying your appfuse with most of the time a smile on my face :-D here is what i found.(or not found ;) ) 1) i miss a lot off appfuse (test) 2 docs (but i know its not there officially so i will wait) If you'd like, you ca

Re: [appfuse-user] appfuse 2 rocks

2007-04-09 Thread Matt Raible
On 3/5/07, tibi <[EMAIL PROTECTED]> wrote: and one other thing: can this: protected String[] getConfigLocations() { return new String[] { "classpath*:/applicationContext-resources.xml", "classpath*:/applicationContext-dao.xml", "classpath*:/applicationContext-service.xml",

Re: [appfuse-user] appfuse 2 - webtest - verifypdftext step does not work

2007-04-07 Thread ros
This works for verify PDF documents in webtest: maven-antrun-plugin 1.1

Re: [appfuse-user] appfuse 2 - webtest - verifypdftext step does not work

2007-03-31 Thread Matt Raible
Unfortunately, you're probably on your own here since I've never configured Canoo WebTest to test PDF with Maven. Matt On 3/31/07, ros <[EMAIL PROTECTED]> wrote: I've aded another taksdef with pdf steps description from webtest-1454.jar: ...

Re: [appfuse-user] appfuse 2 - webtest - verifypdftext step does not work

2007-03-31 Thread ros
I've aded another taksdef with pdf steps description from webtest-1454.jar: ...

Re: [appfuse-user] appfuse 2 - webtest - verifypdftext step does not work

2007-03-31 Thread Matt Raible
Here's the part you'll need to change: You should be able to pick a different "r

Re: [appfuse-user] appfuse 2 - webtest - verifypdftext step does not work

2007-03-31 Thread ros
In Appfuse 1.9.x it was webtestTaskdefs.properties to add "verifyPdfText:com.canoo.webtest.plugins.pdftest.PdfVerifyTextStep" and add pdf box and pdf unit in to classpath. In Appfuse 2.x dependencies can be added in pom.xml plugin description, but where to define verifyPdfText step? Thanks. mr

Re: [appfuse-user] appfuse 2 - webtest - verifypdftext step does not work

2007-03-20 Thread Matt Raible
You need to adjust the webtest task to load the pdf tasks. Unfortunately, you'll probably need to add the PDF-related dependencies to the plugin in order for everything to work. Matt On 3/2/07, ros <[EMAIL PROTECTED]> wrote: Hi! How to add support of verifypdftext to appfuse 2 webtests? Tha

Re: [appfuse-user] appfuse 2 rocks

2007-03-05 Thread tibi
and one other thing: can this: protected String[] getConfigLocations() { return new String[] { "classpath*:/applicationContext-resources.xml", "classpath*:/applicationContext-dao.xml", "classpath*:/applicationContext-service.xml", "/WEB-INF/applicationContext*.xml", "

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-20 Thread Matt Raible
This could definitely be a bug. Looking in BasePageTestCase and web.xml, there's no references to classpath*:/applicationContext.xml. http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/action/BasePageTestCase.html Can you please enter a bug in JIRA for this? Thanks, Matt On 2/20/0

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-20 Thread Tuncay A.
I tried without result. Seems like web module doesn't know about applicationContext.xml from core PersonListTest: testSearch(net.company.webapp.bean.PersonListTest) Time elapsed: 0.359 sec <<< ERROR! org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'personManager

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-19 Thread Matt Raible
If you run "mvn install" from the "core" module - this should fix this problem. Matt On 2/15/07, Tuncay A. <[EMAIL PROTECTED]> wrote: Using jsf-modular and having applicationContext.xml inside core/src/main/resources/ - it doesn't work. BasePageTestCase doesn't know about the applicationConte

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-15 Thread Tuncay A.
Using jsf-modular and having applicationContext.xml inside core/src/main/resources/ - it doesn't work. BasePageTestCase doesn't know about the applicationContext.xml. I made modification to PersonListTest to include applicationContext.xml from classpath like other *.xml files the BasePageTestCas

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-15 Thread Matt Raible
Do you have a personManager bean definition in src/main/webapp/WEB-INF/applicationContext.xml? If you're using a modular archetype, this should be in core/src/main/resources/applicationContext.xml. Matt On 2/15/07, Tuncay A. <[EMAIL PROTECTED]> wrote: Hi, Using M4-snapshot and fixing problem

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-15 Thread Tuncay A.
Hi, Using M4-snapshot and fixing problems with dao and manager. Now, I get following error running PersonListTest for generic dao and manager. org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'personManager' is defined at org.springframework.beans.factory.su

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-12 Thread Tuncay A.
Ok. Matt Raible-3 wrote: > > I agree - it would be nice if it worked 100% with the IDEs. The good > news is it works much better than 1.x did (mainly due to XDoclet > issues). I think it *can* work, it's just a matter of figuring out > the configuration. You could probably setup an external

  1   2   >