Re: [appfuse-user] AppFuse 2.0.1 - Problem when changing from MyFaces to Sun's JSF RI

2007-12-10 Thread base7691
Yes I did. mraible wrote: > > Did you modify the JavaScript code in editProfile.xhtml like the > documentation suggests? > > Matt > > On 12/10/07, base7691 <[EMAIL PROTECTED]> wrote: >> >> I switched from MyFaces to Sun's RI as described in the Reference Guide. >> All seems to work well except

AW: [appfuse-user] Problems with Server Roundtrips and Issue in JSF Demo

2007-12-10 Thread René Günther
In my application I didnt switch JavaScript off. I had to switch off the JavaScript for the demo version to force a submit to the server since empty required fields are caught on client side. The lost of userForm.user.version will probably also occur if you delete the v:commonsValidator tags. But w

[appfuse-user] Re: PersonActionTest Oracle and Mysql database get different result !

2007-12-10 Thread 王金胜
Hi, Raible : > > appfuse 2.0.1 AppFuse Modular Application > > > PersonAtionTest.java > public class PersonActionTest extends BaseActionTestCase { >private PersonAction action; >@Override >protected void onSetUpBeforeTransaction() throws Exception { >super.onSetUpBeforeTransa

Re: [appfuse-user] Acegi Security

2007-12-10 Thread dxjsunday
you can select 2. when you use acegi in a appfuse1.9.4 project,you can see the article , the article had detailed the config of acegi.the links of the article under(if you are interesting in the acegi you just try) ===> http://www.pben.cn/main.bbscs?action=read&bid=22&postID=8a8a8a8f16c6af920116c

Re: [appfuse-user] Problems with Server Roundtrips and Issue in JSF Demo

2007-12-10 Thread Matt Raible
On Dec 10, 2007, at 3:08 PM, René Günther wrote: In userForm.xhtml I needed an additional SelectItem component. To be able to reuse this component later I created a new ManagedBean. The value of the selectItem was a property of my new ManagedBean. The property has not being set after submi

Re: [appfuse-user] AppFuse Testing

2007-12-10 Thread Matt Raible
AppFuse's testing framework isn't much more than some base classes (that extend Spring's testing classes in most cases) and JUnit/JMock/ Spring Test dependencies. You could certainly look at the code on how to setup your own test harness, but there really isn't much of a "testing" package yo

Re: [appfuse-user] How to secure a manager's method?

2007-12-10 Thread Michael Horwitz
On Dec 10, 2007 8:33 PM, J. David Mendoza <[EMAIL PROTECTED]> wrote: > sorry Michael... you're right... > I'm using AppFuse 2.0.1, and I was looking at how the UserManager's > methods are secured... was trying to figure it out... so if anyone would > explain that to me it would be great... I wante

[appfuse-user] Problems with Server Roundtrips and Issue in JSF Demo

2007-12-10 Thread René Günther
In userForm.xhtml I needed an additional SelectItem component. To be able to reuse this component later I created a new ManagedBean. The value of the selectItem was a property of my new ManagedBean. The property has not being set after submit. Since it was a required field I got an error. Additiona

[appfuse-user] AppFuse Testing

2007-12-10 Thread Kiran Karnati
Hi Matt, Since I wanted to develop an application with IceFaces. I talked with IceFaces support team and they said it is not worth considering Seam as a helping tool which may just increase the complexity. Instaead I can use the springs capabilities like SpringWebServices and SpringWebFlow and so

Re: [appfuse-user] Acegi Security LDAP

2007-12-10 Thread Gareth Davis
I'm sorry but my implementation is internal to my employer so I can't publish the source. to be honest I found the best source of example and guides to be the acegi source code it's self, it's very well written and well commented. Gareth On 7 Dec 2007, at 22:22, Ding, Qin wrote: Thank you

Re: [appfuse-user] How to secure a manager's method?

2007-12-10 Thread J. David Mendoza
sorry Michael... you're right... I'm using AppFuse 2.0.1, and I was looking at how the UserManager's methods are secured... was trying to figure it out... so if anyone would explain that to me it would be great... I wanted to know if someone knows how to configure acegi's annotation driven

Re: [appfuse-user] How to secure a manager's method?

2007-12-10 Thread Michael Horwitz
So you need to secure against a specific role or does your security need to more complicated, e.g. check the parameters being passed in against the current user? It would also help to know which version of AppFuse you are using? Mike On 12/10/07, J. David Mendoza <[EMAIL PROTECTED]> wrote: > > I

[appfuse-user] How to secure a manager's method?

2007-12-10 Thread J . David Mendoza
I need to secure a manager's methods, what do I need to do? Thanks... David M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] AppFuse and joda-time

2007-12-10 Thread Rob Hills
Hi Michael, Michael Horwitz wrote: On 12/10/07, *Rob Hills* <[EMAIL PROTECTED] > wrote: Any thoughts? Yeah. Me doing things in too much of a rush as per usual! Forgot to mention you need to add the following to your hibernate.cfg.xml in the mappings section:

Re: [appfuse-user] AppFuse and joda-time

2007-12-10 Thread Michael Horwitz
On 12/10/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi Michael, > > I've almost finished my refactoring and I've run into a hbm2ddl problem > that I have a workaround for, but I'm still curious about why it's > happening... > > Michael Horwitz wrote: > > On 12/10/07, *Rob Hills* <[EMAIL PROTECTED

[appfuse-user] AppFuse and joda-time

2007-12-10 Thread Rob Hills
Hi Michael, I've almost finished my refactoring and I've run into a hbm2ddl problem that I have a workaround for, but I'm still curious about why it's happening... Michael Horwitz wrote: On 12/10/07, *Rob Hills* <[EMAIL PROTECTED] > wrote: Hi Michael, Mic

Re: [appfuse-user] error db-export

2007-12-10 Thread Matt Raible
You can modify the Ant task in build.xml to exclude certain table names - or to only include certain names. Matt On 12/10/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > Appfuse 1.9.4/DB2/JSF > > Ant task setup-db and db-load work fine with DB2 database. However, > when I try to do db-export, I g

[appfuse-user] error db-export

2007-12-10 Thread Ding, Qin
Appfuse 1.9.4/DB2/JSF Ant task setup-db and db-load work fine with DB2 database. However, when I try to do db-export, I got the error org.dbunit.dataset.DataSetException: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL 0204N "CWR.ALTOBJ_INFO" is an undefined name. SQLSTATE=42704

RE: [appfuse-user] Acegi Security

2007-12-10 Thread vpacheco
Disregard this question for now. I found some online documentation that I'm refering to. If I have any further questions after reading that, I'll send another email. Thanks, Vanessa Pacheco Programmer Bowman Systems L.L.C 318.213.8780x307 == IMPORTANT WARNING:

Re: [appfuse-user] AppFuse 2.0.1 - Error while testing the tutorial-jpa module from appfuse-demos

2007-12-10 Thread Matt Raible
I don't know why this is happening - all the tests pass in Bamboo. I was able to reproduce your problem, but I don't know what's causing it or how to fix it. Can you please enter an issue in JIRA? http://issues.appfuse.org/browse/APF Thanks, Matt On 12/10/07, base7691 <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] AppFuse 2.0.1 - Problem when changing from MyFaces to Sun's JSF RI

2007-12-10 Thread Matt Raible
Did you modify the JavaScript code in editProfile.xhtml like the documentation suggests? Matt On 12/10/07, base7691 <[EMAIL PROTECTED]> wrote: > > I switched from MyFaces to Sun's RI as described in the Reference Guide. > All seems to work well except if I try to click on the Profile link in the

Re: [appfuse-user] failed after mvn appfuse:full-source

2007-12-10 Thread Matt Raible
Yuke - can you please enter an issue for this in JIRA? http://issues.appfuse.org/browse/APF Thanks, Matt On 12/9/07, yuke <[EMAIL PROTECTED]> wrote: > > > > i add following exclusions and everything works fine. > > > org.apache.struts > struts2-spring-plugin >

RE: [appfuse-user] Acegi Security

2007-12-10 Thread vpacheco
If I'm using Appfuse 1.9.4 which uses Spring 2.0, could I still follow these tutorials to the T or do I need to make changes. For example, I'm wondering about the txProxyTemplate bean definition. Can I use this with Spring 2.0? Vanessa Pacheco Programmer Bowman Systems L.L.C 318.213.8780x307 ===

[appfuse-user] AppFuse 2.0.1 - Error while testing the tutorial-jpa module from appfuse-demos

2007-12-10 Thread base7691
I tried the tutorial-jpa module from appfuse-demos. If you run mvn test -Dtest=PersonDaoTest you get the following error message: --- Test set: org.appfuse.tutorial.dao.PersonDaoTest ---

[appfuse-user] AppFuse 2.0.1 - Problem when changing from MyFaces to Sun's JSF RI

2007-12-10 Thread base7691
I switched from MyFaces to Sun's RI as described in the Reference Guide. All seems to work well except if I try to click on the Profile link in the menu. The following error appear: javax.servlet.ServletException: #{userForm.edit}: java.lang.NumberFormatException: For input string: ""

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] Auto copy data from JSP page to data model other than clicking 'Submit'

2007-12-10 Thread Michael Horwitz
Hi, It may help if you could let us know which web framework and version of AppFuse you are using? Mike On 12/7/07, BruceLee <[EMAIL PROTECTED]> wrote: > > > Dear Team, > > My User form also has a 'Upload' button to upload user's picture. But > After > user uploads a file and redirects back Use