Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Sanjiv Jivan
please note the typo getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { StatelessSession statelessSession = session.getSessionFactory().openStatelessSession(); S

[appfuse-user] Problem with IE on windows using velocity menu

2007-04-20 Thread davidhay
Hi I've got a strange issue that only started happening a couple of days ago when I did my latest deployment to live. I'm using velocity menus and have a left hand menu like so: This is displaying fine in firefox and IE however when accessing some of the menu items its showing up in status bar o

Re: [appfuse-user] How to run AppFuse web app on Jetty in IDEA

2007-04-20 Thread swordfish
Yes, that's exactly what I want. Please kindly give me the details. Thanks millions in advance! Will Berger wrote: > > I assume you are doing this to debug your appfuse app inside IDEA. If so, > there is an easier way to do enable debugging in IDEA. Let me know if > interested and ill give

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Sanjiv Jivan
On 4/20/07, Jason Brice <[EMAIL PROTECTED]> wrote: >> However if would still like to use Hibernate for your read-only DB2 data, make sure you're using Hibernate's StatelessSession API or else you'll just be paying a huge CPU and memory overhead using Hiberanate. Hi Sanjiv, Is there a way to us

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Nathan Anderson
Turns out adding a Jar isn't that hard at all [which may be why no one bothered replying to that part of the question ;)] http://maven.apache.org/general.html#importing-jars I ran that on jt400.jar, and added a new dependency in my pom.xml and *poof* the jar is in my webapp next time I ra

Re: [appfuse-user] Appfuse maven plugin

2007-04-20 Thread Chris Love
k. The m4 db 2 pojo is working. The m5 has issues. I will look at doing the needed work and get back too you. We need it asap. Chris On 4/19/07, Matt Raible <[EMAIL PROTECTED]> wrote: The technical problems are mainly that it's not finished. The one in trunk gets you a generated POJO from

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Jason Brice
With Spring you can use any pooled (poolable?) datasource... for example c3p0's ComboPooledDataSource or Apache's DBCP BasicDataSource. Proxool is also an option. By the way, I have had a terrible day or two struggling with Spring + Hibernate + Apache's DBCP + WebSphere closing the socket in the

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Jason Brice
However if would still like to use Hibernate for your read-only DB2 data, make sure you're using Hibernate's StatelessSession API or else you'll just be paying a huge CPU and memory overhead using Hiberanate. Hi Sanjiv, Is there a way to use the StatelessSession API and still have Spring managi

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Nathan Anderson
I probably just need to read more, but in case you know off the top of your head... ;) I hope that spring is using some sort of connection pooling? And is there a way that you know of to configure a cache? The DB2 database connection will be going over the Internet, so I want to minimize it

Re: [appfuse-user] datepicker problems in appfuse 2m4

2007-04-20 Thread Will Berger
I tried both these things and it did not help. It is very odd. When you click on the display the datepicker shows the month/time screen, above it you see the application name header and then it has the footer. when you select a day. the 2nd header and footer disappear. I turned off sitemesh di

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Sanjiv Jivan
If you're not planning on using Hibernate for fetching data from the second datasource, then you dont need to define a second SessionFactory bean. Just define a second DataSource bean and inject it into your DAO's. You can then use the Spring JDBC helper classes by utilizing the DB2 DataSource tha

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Nathan Anderson
Hi Sanjiv, I wasn't sure what I would use to fetch the data from the DB2 database. Hibernate crossed my mind, but then it seemed like it would not be worth the difficulty of just getting the object to map correctly. I haven't used iBATIS before, so I was starting to look at what JDBC templat

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Sanjiv Jivan
You just need to define a second SessionFactory bean and inject it in the DAO's that you need access to it. You'll have to manage this second session opening and closing manually since the OpenSessionInViewFilter manages just the the bean names "sessionFactory". You could setup a second OSIV filte

Re: [appfuse-user] implementing breadcrumbs

2007-04-20 Thread Sanjiv Jivan
I've used it and it works well. On 4/20/07, Will Berger <[EMAIL PROTECTED]> wrote: Thanks for the suggestion. I went and checked out the framework. While it looked pretty interesting, i noticed that it hadn't been updated since 2005. Is this something we should be relying on? I guess I am a

[appfuse-user] Multiple DataSources

2007-04-20 Thread Nathan Anderson
[ You thought I was kidding about the 60 seconds, huh? ;) ] So I need to have 2 data sources in my application. The AppFuse core and my CRUD classes are being persisted to a MySQL database. I also need fetch Read-Only objects from a DB2 database. Being new to maven I'm a little stumped on h

[appfuse-user] Jar upgrade

2007-04-20 Thread kace
Can someone tell me what changes I have to make if I wish to upgrade the tomahawk from 1.1.3 to 1.1.5 without upgrading to m5-SNAPSHOT. I`m not sure where i tell appfuse to download 1.1.5 instead of using 1.1.3. Thanks kace -- View this message in context: http://www.nabble.com/Jar-upgrade-tf3

Re: [appfuse-user] implementing breadcrumbs

2007-04-20 Thread Matt Raible
SiteMesh hasn't been updated since 2004: http://opensymphony.com/sitemesh/download.action Actually, they had a "silent" release in October of last year - but I think the concept stands. Some projects don't need updates. ;-) The question is - will you get a response if you have questions on their

Re: [appfuse-user] How to turn off "remember me"

2007-04-20 Thread Nathan Anderson
Funny... I guess I got ahead of things and was looking for that "common configuration" thing that doesn't exist yet :) Good to know all I have to do is remove the provider and the login.jsp should drop the checkbox. Guess I'll try that out right now. 'Til the next question [which should be

Re: [appfuse-user] implementing breadcrumbs

2007-04-20 Thread Will Berger
Thanks for the suggestion. I went and checked out the framework. While it looked pretty interesting, i noticed that it hadn't been updated since 2005. Is this something we should be relying on? I guess I am asking is this an active project. Will Sanjiv Jivan wrote: > > There was discussion

Re: [appfuse-user] How to turn off "remember me"

2007-04-20 Thread Matt Raible
security.xml - change this: To this: I am open to adding/implementing some sort of common configuration system after 2

[appfuse-user] How to pass/access complete form on menu item click?

2007-04-20 Thread snehalsao
I am using AppFuse and Struts menu 2.4.2 for the first time. When the user logs in and clicks on List Users, a tabular list of users (users.html) is displayed. For each row there is a checkbox that the user can check for that row selection. The user checks the box and clicks on "Edit - Change P

[appfuse-user] How to hide and/or disable menu items on different pages for the same logged in user?

2007-04-20 Thread snehalsao
I am using AppFuse and Struts menu 2.4.2 for the first time. The menu-config.xml looks like: The first page that

[appfuse-user] How to turn off "remember me"

2007-04-20 Thread Nathan Anderson
I'm trying to figure out where the application settings are kept in AppFuse 2.0. I'd like to turn off "Remember Me" for this particular application and I see that login.jsp only renders the "Remember Me" checkbox when the feature is enabled... The problem is I can't seem to find where it is en

Re: [appfuse-user] How to run AppFuse web app on Jetty in IDEA

2007-04-20 Thread Will Berger
I assume you are doing this to debug your appfuse app inside IDEA. If so, there is an easier way to do enable debugging in IDEA. Let me know if interested and ill give you the details. Will swordfish wrote: > > I've created a new modular tapestry+ibatis project (2.0-m5-SNAPSHOT) and > issue

Re: [appfuse-user] is AppFuse primed for large scale production deployment?

2007-04-20 Thread Sanjiv Jivan
I think your question is too generic and broad. I believe AppFuse uses all the right ingredients to scale but that does not mean that once you build a large application, you can kick back and expect the application to handle millions of page views. You will need to profile the application and data

[appfuse-user] How to run AppFuse web app on Jetty in IDEA

2007-04-20 Thread swordfish
I've created a new modular tapestry+ibatis project (2.0-m5-SNAPSHOT) and issued mvn idea:idea command to make IDEA projects...I've excluded those errors in web.xml...I've downloaded & installed Maven-Reloaded & Maven2-Integration...However, when I tried to run jetty:run-war under web POM in IDEA,

Re: [appfuse-user] web.xml errors in IDEA

2007-04-20 Thread swordfish
Yes, it helps. Thanks Matt! mraible wrote: > > I had this same question, so I added it as a FAQ: > > http://appfuse.org/display/APF/FAQ#FAQ-ideacompiling > > How do I tell IDEA to ignore deployment descriptors when compiling? > > Right-click on the file in the messages window and choose "E

Re: [appfuse-user] implementing breadcrumbs

2007-04-20 Thread Sanjiv Jivan
There was discussion about this a long time ago. Matt pointed us to this really cool library http://wfnm.sourceforge.net/ http://www-128.ibm.com/developerworks/library/wa-webflow/?ca=dnt-546 Sanjiv On 4/20/07, Will Berger <[EMAIL PROTECTED]> wrote: Was wondering if anyone had a good soluti

[appfuse-user] implementing breadcrumbs

2007-04-20 Thread Will Berger
Was wondering if anyone had a good solution for implementing breadcrumbs. I suppose I could implement this, but i would bet someone has solved this before. I am looking for some kind of jsp tag. I saw references to SiteMesh being able to do it, but could not find any documentation on how? Any

[appfuse-user] UniversalManager & UserManager questions

2007-04-20 Thread Nathan Anderson
Howdy folks, I have a pretty simple AppFuse 2.0-M4 Struts 2 app that has an object that has a ManyToOne relationship to User. The idea is this object is created by or owned by the user who added it [only an admin can edit the user, yadda yadda]. So in my save method of my action I tried the

Re: [appfuse-user] web.xml errors in IDEA

2007-04-20 Thread Matt Raible
I had this same question, so I added it as a FAQ: http://appfuse.org/display/APF/FAQ#FAQ-ideacompiling How do I tell IDEA to ignore deployment descriptors when compiling? Right-click on the file in the messages window and choose "Exclude From Compile". Hope this helps, Matt On 4/20/07, swo

[appfuse-user] web.xml errors in IDEA

2007-04-20 Thread swordfish
I've created a new modular tapestry+ibatis project (2.0-m5-SNAPSHOT) and issued mvn idea:idea command to make IDEA projects. Everything looks fine, except some errors in the web.xml when I tried to build it and run it on Jetty. IDEA complains "Cannot resolve symbol error.jsp", ...

Re: [appfuse-user] sucessMessages

2007-04-20 Thread Will Berger
Sure enough thats what it was. Thanks. Will mraible wrote: > > You would get this error if you're no longer loading prototype.js in your > page. > > Matt > > On 4/19/07, Will Berger <[EMAIL PROTECTED]> wrote: >> >> Would anyone know why I keep getting this javascript error message, It >> d

[appfuse-user] Using connection pool via JNDI in Appfuse

2007-04-20 Thread uji14
Hi, Am having a datasource and connection pool setup in Websphere server for DB2 database. Wanted to know following things regarding using AppFuse for my project development: 1. What all steps I need to do for accssing this connection pool using the JNDI name, which files I need to use and updat

[appfuse-user] memcached with appfuse app?

2007-04-20 Thread dayspringjohn
Has anyone set up memcached for an appfuse app? I don't quite understand how it fits in with Hibernate level 2 caching. It seems like one or the other, but then I need to write the code to check memcached instead of Hibernate doing it all for me? -- View this message in context: http://www.nab

Re: [appfuse-user] BaseDaoTestCase substitution

2007-04-20 Thread paulie
I see where you are coming from. Especially since BaseDaoTestCase is extending AbstractTransactionalDataSourceSpringContextTests. Sounds like it is more Spring's issue than yours. Seems like they could have come up with a more generic term than 'Test' for this functionality. As for AppFuse, ma