Re: [appfuse-user] Change default date format

2007-12-16 Thread Rob Hills
Hi ickphum, ickphum wrote: I want to change the default date format from MM/dd/ to /MM/dd and don't want to import the AppFuse code into my project if I can avoid it. Can I avoid it? I created a class with a java.util.Date field and ran the code generator, and the list page came up ok:

[appfuse-user] Change default date format

2007-12-16 Thread ickphum
Hi, I want to change the default date format from MM/dd/ to /MM/dd and don't want to import the AppFuse code into my project if I can avoid it. Can I avoid it? I created a class with a java.util.Date field and ran the code generator, and the list page came up ok: Bu

Re: [appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-16 Thread Alex Coles
The steps to define multiple DAOs in a Manager class are relatively simple. Note though, that you'll have to roll your own a Manager class and not extend GenericManagerImpl (since this only excepts one DAO as a constructor argumernt). You can create one Manager with multiple DAOs. You don't have t

Re: [appfuse-user] why using merge into GenericDaoHibernate ?

2007-12-16 Thread Alexander Coles
FYI. This page outlines the differences between the merge() and saveOrUpdate() methods: http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#objectstate-saveorupdate Alex On 14 Dec 2007, at 17:16, [EMAIL PROTECTED] wrote: Why do you use merge instead of saveOrUpdate ? I think merg

Re: [appfuse-user] Re: Custom binding of SELECT element

2007-12-16 Thread Alexander Coles
Property Editors is the way I've always dealt with this issue. I am not sure whether its best practise or not, but it works. I personally do find having to create a PE each time laboursome though. This has to be one big gripe I've had with creating forms with Spring MVC - I think a simple m

Re: [appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-16 Thread Struts2 Fan
Hi all again, I want to reask the question in a different way. What I want to do is to define another dao in the manager class. What are the steps to define it in the manager and test classes? Thanks fo replies. -- View this message in context: http://www.nabble.com/-Appfuse2.0--Best-Practise

[appfuse-user] Why the GenericManager can not be injected when the model ID is a String ?

2007-12-16 Thread Vachel Chan
hi all: The following code is my model class. Specially, the key property "regionId" is a String, not a Long type. When I use "mvn appfuse:gen -Dentity=DRegion " to generate all the code and run "mvn integration-test", there is an Excepion : java.lang.NullPointerException at com

[appfuse-user] Accessing managers from custom JSP tags

2007-12-16 Thread Łukasz Bachman
Hello, I need to fetch an item from my database and use it to render my custom JSP tag. I want to use my managers, already developed and tested. Unfortunately I have no idea how to inject dependency into my tag, so I cannot use beans declared in application context. I tried to do it manually, crea

Re: [appfuse-user] Re: Custom binding of SELECT element

2007-12-16 Thread Łukasz Bachman
Dear Alejandro, thanks for a reply! You were right, Property Editors are exactly the things that I am looking for. But I have encountered one error while handling my "comment form". This is my property editor for Type class: public class TypeEditor extends PropertyEditorSupport { privat