Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-10 Thread Michael Horwitz
java.sql.Timestamp is a subclass of java.util.Date so it should be accepted by your method. It is probably used as it adds a nanoseconds field to the data and is database friendly. Spring should give you a binding error with more detail in it, more than likely related to validation. Could you pos

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-09 Thread Msarda
Hello, While debuging the test case method,when it was entering in handleRequestInternal() method of AbstractformController at the line, Object command = getCommand(request); In the command object i was getting priorityDate as Timestamp instead of getting java.util.Date. I think this may be the

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-09 Thread Msarda
Hello Mike, Right now i am not in the office so can't get more details about that error. But i think it may be wrong format of priorityDate data in sample-data.xml,that was generated by default. I tried giving different formats,but still problem was not resolved,was getting casting error. . But w

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-09 Thread Michael Horwitz
Do you have some detail on the binding error being thrown? Mike On 7/9/07, Msarda <[EMAIL PROTECTED]> wrote: Thanks for reply. Tried that also,but still same problem. I am getting data binding error,debuging that test case. TryEngagementForm1] INFO [main] EngagementformFormControllerTest.st

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-09 Thread Msarda
Thanks for reply. Tried that also,but still same problem. I am getting data binding error,debuging that test case. TryEngagementForm1] INFO [main] EngagementformFormControllerTest.startNewTransaction(323) | Began transaction (1): transaction manager [EMAIL PROTECTED]; default rollback = true [Tr

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-09 Thread fadhli
Hello, For date values, date values should looks like this... On 7/9/07, Msarda <[EMAIL PROTECTED]> wrote: Thanks Mike for your reply. My application in running now. But still i have one problem regarding validation. I have priorityDate field in my model object.When i am putting validation

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-08 Thread Msarda
Thanks Mike for your reply. My application in running now. But still i have one problem regarding validation. I have priorityDate field in my model object.When i am putting validation for that field in validation.xml,my test caes are getting failed(testRemove() method) I tried changing date pat

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-06 Thread Michael Horwitz
Hi, Just answered a similar question on another thread which I think may help here too. As long as you are using a version of AppFuse which uses Spring 2.0.x you should be using the Spring form tags to do all the hard work for you (I have adjusted the stuff below to match your JSP). I also notice

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-06 Thread Michael Horwitz
Which version of AppFuse are you using? On 7/6/07, Msarda <[EMAIL PROTECTED]> wrote: I tried populating "webSystemImpacted" in EngagementformFormController in following method ,but i am getting jasper exception. protected Map referenceData(HttpServletRequest request) throws Exception {

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-05 Thread Msarda
I tried populating "webSystemImpacted" in EngagementformFormController in following method ,but i am getting jasper exception. protected Map referenceData(HttpServletRequest request) throws Exception { Map model = new HashMap(); model.put("webSystemImpacted",webappssystemManag

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-05 Thread Msarda
Thanks Mike. It's working now after using property editor class. But still there is one problem.I am not able to populate the list of areas and webSystemImpacted in the jsp. In the engagementformform.jsp i am doing like this...

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-03 Thread Michael Horwitz
Quoted from the thread mentioned: You are going to need to provide Spring MVC with a way to get from an id to a country and vice-versa. As you correctly point out this is done by registering a custom property editor in your controller. To do this you need to: 1) Extend the class PropertyEditorS

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-02 Thread Msarda
Thanks Mike for your reply. Actually i am not getting a clear idea about how to implement PropertyEditorSupport Class excatly in my form controller. It will be very helpful if u can explore about it a bit more. Michael Horwitz wrote: > > You need to register a custom editor inside your form co

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-02 Thread Michael Horwitz
You need to register a custom editor inside your form controller so that Spring can convert your model object to/from text. Please see this thread for further details: http://www.nabble.com/Add-ManyToOne-relationship-between-user-and-a-new-pojo-tf3993393s2369.html Mike. On 7/2/07, Msarda <[EMA

[appfuse-user] Problem with ManyToMany Mapping

2007-07-01 Thread Msarda
Hi, I have three model objects Engagementform,Areasimpacted,Webappssystem. I have many to many mapping in Engagementform & Areasimpacted and Engagementform & Webappssystem. I have used following in Engagementform.java Set systems; Set areasImpacted; I want to take the data for this t