Re: [appfuse-user] JNDI + Jetty; Strangeness with JNDI Mail Sessions

2008-10-15 Thread Alexander Coles
On Oct 16, 2008, at 5:40 AM, "Matt Raible" <[EMAIL PROTECTED]> wrote: On Wed, Oct 15, 2008 at 9:12 PM, Alex Coles <[EMAIL PROTECTED]> wrote: Just a handful of related issues to my original issue here -- getting JNDI working well with AppFuse. Left on my list is creating the equivalent co

Re: [appfuse-user] JNDI + Jetty; Strangeness with JNDI Mail Sessions

2008-10-15 Thread Alexander Coles
On Oct 15, 2008, at 4:14 AM, Matt Raible wrote: On Tue, Oct 14, 2008 at 7:44 PM, Alex Coles <[EMAIL PROTECTED]> wrote: Setting up with a Mail Session, however, is causing a headache and this is where I would appreciate some help. I did the following: * Moved mailSender bean definition out o

Re: [appfuse-user] problem while porting from struts 2.0.11 to struts 2.1.2

2008-07-10 Thread Alexander Coles
On Jul 10, 2008, at 10:01 AM, Giovanni Azua wrote: hi Ratna, I recommend that you use the Unix patch tool (see instructions here http://en.wikipedia.org/wiki/Patch_(Unix)) as the safe error-free way to apply the posted diff. You would run patch -R on the original AppFuse Struts basic 2.0.2

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread Alexander Coles
On Jul 9, 2008, at 12:19 PM, syg6 wrote: Hmmm ... Shouldn't you also stick 'MyObject1' and 'MyObject2' in the hashCode() and toString() methods, just to be safe (ie. make it easier for Hibernate to uniquely identify the object by giving it more fields as criteria)? Yes, but - what are

Re: [appfuse-user] problem while porting from struts 2.0.11 to struts 2.1.2

2008-07-09 Thread Alexander Coles
On Jul 9, 2008, at 11:34 PM, nani2ratna wrote: Hi, I am new to Appfuse. I am trying to port from struts 2.0.11 to struts 2.1.2. I did all the steps that explained by http://www.nabble.com/-appfuse-user--porting-to-Struts-2.1.2-diff-file-...-td18043037s2369.html#a18043037 Giovanni Please kindly

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread Alexander Coles
On Jul 9, 2008, at 11:53 AM, syg6 wrote: Sure enough it was a hashCode issue. In the stack trace I had the following line: com.myco.myapp.model.Request.hashCode(Request.java:418) When I went to my hashCode method it looked pretty normal: return new HashCodeBuilder().append(code).append(typ

Re: [appfuse-user] porting to Struts 2.1.2 diff file ...

2008-06-30 Thread Alexander Coles
On Jun 21, 2008, at 12:32 PM, Giovanni Azua wrote: Hi, Attached is the full diff: The s20111 folder is the project folder containing AppFuse Struts basic after creating the archetype and doing "mvn appfuse:full-source" The s212 is a copy of s20111 ported to Struts 2.1.2 regards, Giovanni

Re: [appfuse-user] DisplayTag external paging and sorting example

2008-05-23 Thread Alexander Coles
On May 17, 2008, at 8:37 AM, Chris Barham wrote: Hi, I've put together a new Appfuse project which demonstrates how to enhance the List screens. DisplayTag as provided has issues with large datasets, (it retrieves all the records every time), and sorting via column headings does not work

[appfuse-user] Using GenericDao with Inheritance

2007-12-17 Thread Alexander Coles
) dao.save(item); item = (Release) dao.get(-1L); } Any thoughts would be welcome! Thanks! Alex Alexander Coles [EMAIL PROTECTED] www.alexcolesportfolio.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Multiple Dependent Projects

2007-12-17 Thread Alexander Coles
something out. My end goal was to generate one combined web app from project A and B using the jar/war overlay feature. Does that change anything? Thanks! -Mike Alexander Coles wrote: I think so. I am offering this as a purely suggestion - the system I am currently working on -- with tw

Re: [appfuse-user] Problem with PropertyConfigurer/ Compass + JPA + AppFuse 2.0 Integration

2007-12-17 Thread Alexander Coles
On 17 Dec 2007, at 18:37, Matt Raible wrote: On Dec 17, 2007, at 10:21 AM, Alexander Coles wrote: Thanks for your suggestions, Matt. That's what I immediately thought of - but I doubled checked both the spellings, and that BaseDaoTestCase.java loads applicationContext-resources.xml

Re: [appfuse-user] Multiple Dependent Projects

2007-12-17 Thread Alexander Coles
Dec 2007, at 18:49, Mike Wille wrote: Yes, project A is also a stand alone project. It has both Core and Web modules. Thanks for the links. I will take a look. At first glance, it seems that this creates an EAR file and would then require something more then Jetty or Tomcat. Thanks

Re: [appfuse-user] Multiple Dependent Projects

2007-12-17 Thread Alexander Coles
Is Project A also a stand alone project, or does it just provide infrastructure support? If I am understanding your requirement rightly, you could create a shared parent application context: http://blog.interface21.com/main/2007/06/11/using-a-shared-parent-application-context-in-a-multi-war-

Re: [appfuse-user] Problem with PropertyConfigurer/ Compass + JPA + AppFuse 2.0 Integration

2007-12-17 Thread Alexander Coles
if that works. Matt On Dec 15, 2007, at 6:51 PM, Alexander Coles wrote: Hi, Like a couple others on the list, I have a user requirement for full-text searching capabilities in an application that I am developing. As such, I decided to go with Lucene, through its Compass abstraction.

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

2007-12-17 Thread Alexander Coles
The tutorials provide an example of how to write an expectation with JMock too: http://www.appfuse.org/display/APF/Services#Services-managertest Just as every JUnit test needs one or more assertions, a test with JMock needs an expectation. If you stick with JMock (the default), then you jus

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

[appfuse-user] Hibernate/JPA + CollectionOfElements and extending AppFuse's GenericDao

2007-12-15 Thread Alexander Coles
Serializable { ... fields ... ... getters + setters ... @org.hibernate.annotations.Parent public Item getItem() { return item; } public String toString() { .. } public int hashCode() { .. } public boolean equals() { .. } } Thanks for any support

[appfuse-user] Problem with PropertyConfigurer/ Compass + JPA + AppFuse 2.0 Integration

2007-12-15 Thread Alexander Coles
have run appfuse:full-source on the project, but this shouldn't be necessary - it just suited the needs of this particular project. Alexander Coles [EMAIL PROTECTED] www.alexcolesportfolio.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Translation

2007-12-15 Thread Alexander Coles
I have been using poEdit for some PHP/gettext work that I am doing, but as far as Java is concerned, If what you get out of the box in Eclipse isn't to your taste, I remember that Exadel Studio (which I no longer use) had some additional tools for editing property files - but it wasn't exactl