Re: [appfuse-user] Having trouble getting Dependency Injection to work @Configurable - Newbie Help

2007-05-03 Thread Matt Raible
Here's the configuration that I've used for the aspectj-maven-plugin: org.codehaus.mojo aspectj-maven-plugin 1.0-beta-2 1.5 true 1.5 true

[appfuse-user] Having trouble getting Dependency Injection to work @Configurable - Newbie Help

2007-05-03 Thread Pramod Mahadev
Hi there, I am new to appfuse, spring, maven and aspect oriented programming. I am trying to do the following. I have a simple domain object called Project. I'd like to inject a hierarchyService (spring bean) into the object. However, when I run the app, hierarchyService is null. I am attaching

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-03 Thread J. David Mendoza
Thomas, once you rename the action mappings you don't have to extract the struts content... just get rid of the StaticFilter in the web.xml and it should work with the standard struts2 ajax tags...Cheers...David M.On 3/05/07 02:27 AM, Matt Raible <[EMAIL PROTECTED]> wrote:Here's an issue for the da

Re: [appfuse-user] Excluding certain pages from the default menu

2007-05-03 Thread Nathan Anderson
I believe that the menu is added to the page using SiteMesh. One option would be to have two sitemesh decorators--one with the menu and one without. Then make all the pages that should not have the menu match some pattern so SiteMesh can apply the proper decorator. Nathan - Original Mes

[appfuse-user] Excluding certain pages from the default menu

2007-05-03 Thread Stelios Togias
Hi, I need to have some pages excluded from having the default appfuse menu. Actually not having anything added to them. Just do them manualy. I've seen that in menu-config.xml is where the menus are defined but not thats all I found. Any ideas? thanks stelios

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Haotian Sun
Furthermore, I think it would be useful for you to know that I changed the filterInvocationInterceptor in the security.xml, the following is my beans definitions. class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> ref="resourceDefinitionSource"/>

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Haotian Sun
*The following is the old menu-config.xml, basically I removed the "roles" from each menu item and use "url" as a reference to retrieve entitled roles for each menu item. The reason why I have "*" at the end of each URL is that I noticed in security.xml, when you denfie a URL, you have to follo

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Matt Raible
If you compare your new menu-config.xml to your old one, what's changed? Also, why do you end some URLs with *? Matt On 5/3/07, Haotian Sun <[EMAIL PROTECTED]> wrote: well, I don't touch anything in web.xml but changed something in the other two. The following is the menu-config.xml

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Haotian Sun
well, I don't touch anything in web.xml but changed something in the other two. The following is the menu-config.xml type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> page="/mainMenu.html" url="/mainManu.html"/> forward="editProfile" url="/editProfil

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-03 Thread Nathan Anderson
before I go re-opening any tickets I want to make sure the problem isn't on my end ;) And of course it would be nice if I had a solution if it is a real problem. Nathan - Original Message - From: "Matt Raible" <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Thursday, May 3, 2

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Matt Raible
There's 3 places it's configured: web.xml: MenuListener menu-config.xml menu.jsp I'd check to see if something looks out of whack in those files after you change everything. Matt On 5/3/07, Haotian Sun <[EMAIL PROTECTED]> wrote: right, I'll try that later. But for my question about why the st

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Haotian Sun
right, I'll try that later. But for my question about why the struts menu disappears in the case that I described previously, do you have any idea? Thanks Haotian Matt Raible wrote: You might be able to look at the "new" target and change it's logic so it doesn't apply it to **/*.java files.

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Matt Raible
You might be able to look at the "new" target and change it's logic so it doesn't apply it to **/*.java files. Matt On 5/3/07, Haotian Sun <[EMAIL PROTECTED]> wrote: Hi Matt, Regarding to "it changes my current source code package structure", I mean it change the package name in my source code

Re: [appfuse-user] How to query in Hibernate 3

2007-05-03 Thread Matt Campbell
Oh sorry, just noticed your Class name is Category in your first post. Do you have another class called Categories? I assume not. This query should work: public List getMaleCategories() { return getHibernateTemplate().find("from Category cat where cat.male_only=?", Boolean.TRUE); } On 5/

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Haotian Sun
Hi Matt, Regarding to "it changes my current source code package structure", I mean it change the package name in my source code, for example if my old project is called AAA and new one is named BBB, it changes from something like "org.AAA.dao" to "org.BBB.dao". What I want is to keep the old

Re: [appfuse-user] How to query in Hibernate 3

2007-05-03 Thread Matt Campbell
Does this work for you? public List getMaleCategories() { return getHibernateTemplate().find("from Categories cat where cat.male_only=?", Boolean.TRUE); } On 5/3/07, sionsmith <[EMAIL PROTECTED]> wrote: Funny enough it was already present in the hibernate.cfg.xml file as this statement

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Matt Raible
What do you mean by "it changes my current source code package structure"? What does it change it from/to? Matt On 5/3/07, James Sun <[EMAIL PROTECTED]> wrote: Well, if I do ant new , it will satisfy my goal but changes my current source package structure, which I'm not willing to see. So stil

Re: [appfuse-user] How to query in Hibernate 3

2007-05-03 Thread sionsmith
Funny enough it was already present in the hibernate.cfg.xml file as this statement works & returns the correct result set back to me: public List getCategories(){ return getHibernateTemplate().find("from Category cat order by upper(cat.name)"); } That statement works fine - its just

Re: [appfuse-user] problem about renaming a webapp name

2007-05-03 Thread James Sun
Well, if I do ant new , it will satisfy my goal but changes my current source package structure, which I'm not willing to see. So still needs suggestions... Cheers Haotian Haotian Sun wrote: Hello guys, I've developed a webapp using Appfuse 1.9.4 with Struts for sometime, now I just want t

Re: [appfuse-user] Workflow in appfuse

2007-05-03 Thread Jonathan Tse
Hi Nico, Maybe i ask in this way... which one is better to be integrated into appfuse? Best regards, Jonathan Nicolas Modrzyk wrote: Hi Jonathan, There is a very nice newbie guide archive for OpenWfe at the following place: http://web.archive.org/web/20060207025750/web.openwfe.org/displ

[appfuse-user] problem about renaming a webapp name

2007-05-03 Thread Haotian Sun
Hello guys, I've developed a webapp using Appfuse 1.9.4 with Struts for sometime, now I just want to change the name of my webapp rather than touching anything in my src package structure so far. What I think the easitest way to test is to copy everything that is working in the current webapp

Re: [appfuse-user] LazyInitializationException in XXManagerTestCase

2007-05-03 Thread ayan
Great input Sir. I haven't got deeper on the appfuse and spring, If I had time to look on those Spring Test classes, I'll try. ;-) My archi just decided to load the collection from the DAO and use it on Service layer test case, as you have suggest, we leave it out temporarily those mappings we

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-03 Thread Matt Raible
Here's an issue for the datepicker - feel free to re-open it or add to it if there's things we can improve. http://issues.appfuse.org/browse/APF-739 FWIW, we still include Matt Kruse's JavaScript calendar (in scripts/calendar.js). http://www.mattkruse.com/javascript/calendarpopup/ We could cha

Re: [appfuse-user] LazyInitializationException in XXManagerTestCase

2007-05-03 Thread Matt Raible
On 5/3/07, ayan <[EMAIL PROTECTED]> wrote: Hi, We have tried to rewrite the built-in UserManager of appfuse, and came up with our own UserManager. For the test case of our UserManager, given a code which accesses a collection field, it returns LazyInitializationException, i.e. user.getAccounts(