Re: [appfuse-user] [Appfuse2][S2]Anyone who used s:tabbedPanel?

2007-06-13 Thread Struts2 Fan
Hi Matt, Thanks for reply. But I already have s:datetimepicker working. I couldn't work the s:tabbedPanel. mraible wrote: > > Here's a howto for getting Struts 2's Dojo support working in AppFuse: > > http://www.nabble.com/Re%3A-ajax-and-datepicker-on-2m4-p10828138.html > > The following is

Re: [appfuse-user] struts.enable.SlashesInActionNames not working?

2007-06-13 Thread climbingrose
I'm using slashes in action as well and I have to add to struts.xml for it to work. I think it makes sense because if you have an action called "/x/y/z" and if Struts try to select full namespace, it ends up interpreting the action as "/z" with namespace "/x/y" and therefore, fails to resolve the

RE: [appfuse-user] regex not working on canoo ?

2007-06-13 Thread Travers Snyman
Thanks Mike that was the problem Travers From: Michael Horwitz [mailto:[EMAIL PROTECTED] Sent: 13 June 2007 04:59 PM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] regex not working on canoo ? It looks like you have a few extra spaces between

Re: [appfuse-user] 1.9.4 AppGen error

2007-06-13 Thread LukeS
Makes sense and worked too. I guess my confusion comes from the fact that I remember the last time I ran appgen I was sure (at least I thought I was) that I didn't have to touch any code manually. No matter even like this, appgen is a great tool for getting a code base to work with in a hurry. Th

Re: [appfuse-user] Failed unit test in Appfuse Hibernate tutorial

2007-06-13 Thread Matt Raible
The hibernate.cfg.xml should be in src/main/resources in all basic archetypes. If it's not there, it's likely a bug. Matt On 6/13/07, Franco <[EMAIL PROTECTED]> wrote: Nope. 100% positive that I used JSF Basic archetype If I delete all config files in the test location, will it pick from sr

Re: [appfuse-user] 1.9.4 AppGen error

2007-06-13 Thread Matt Raible
You need to register the mapping file in the sessionFactory bean in applicationContext-hibernate.xml. Hope this helps, Matt On 6/13/07, LukeS <[EMAIL PROTECTED]> wrote: Thanks, Matt. App starts now, but I get the in the view when I try and hit the controller: Data Access Failure Country i

Re: [appfuse-user] 1.9.4 AppGen error

2007-06-13 Thread LukeS
Thanks, Matt. App starts now, but I get the in the view when I try and hit the controller: Data Access Failure Country is not mapped [from Country]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Country is not mapped [from Country] Doesn't the mapping occur in the doclets tag

Re: [appfuse-user] Resolved Failed unit test in Appfuse Hibernate tutorial

2007-06-13 Thread Franco
Matt, Found another post, perhaps when I ran appfuse:full-source it copied hibernate.cfg.xml to src/test/resources. I deleted it from src/test and the tests still run fine now. Guess I might run into similar conflicts with other config files and property files in this location. Thanks for the

Re: [appfuse-user] Failed unit test in Appfuse Hibernate tutorial

2007-06-13 Thread Franco
Nope. 100% positive that I used JSF Basic archetype If I delete all config files in the test location, will it pick from src/main ? -- View this message in context: http://www.nabble.com/Failed-unit-test-in-Appfuse-Hibernate-tutorial-tf3918759s2369.html#a2418 Sent from the AppFuse - User m

Re: [appfuse-user] Appfuse and Websphere 6

2007-06-13 Thread Matt Raible
It sounds like you're trying to run on JDK 1.4 - here's a few related threads: http://www.nabble.com/is-Equinox-1.7-jdk1.4-compliant---t3260125s2369.html http://forum.java.sun.com/thread.jspa?threadID=787962 Matt On 6/13/07, Ding, Qin <[EMAIL PROTECTED]> wrote: I use Appfuse 1.9.4, JSF and DB

Re: [appfuse-user] 1.9.4 AppGen error

2007-06-13 Thread Matt Raible
You need at least one validation rule for your POJO - try adding @spring.validator type="required" to one of the setters in your POJO. Matt On 6/13/07, LukeS <[EMAIL PROTECTED]> wrote: I have an existing schema: create table country( countryId bigint not null auto_increment, countryNa

Re: [appfuse-user] Failed unit test in Appfuse Hibernate tutorial

2007-06-13 Thread Matt Raible
On 6/13/07, Franco <[EMAIL PROTECTED]> wrote: Boy, you are quick. Thank you. I just figured it out. In the first part of the tutorial you write to add the mapping in src/main/resources/hibernate.cfg.xml I added the mapping to src/test/resources/hibernate.cfg.xml too. Now the tests ran fine. Are

Re: [appfuse-user] Failed unit test in Appfuse Hibernate tutorial

2007-06-13 Thread Franco
Boy, you are quick. Thank you. I just figured it out. In the first part of the tutorial you write to add the mapping in src/main/resources/hibernate.cfg.xml I added the mapping to src/test/resources/hibernate.cfg.xml too. Now the tests ran fine. Are the tests always dependent on the config fil

Re: [appfuse-user] Failed unit test in Appfuse Hibernate tutorial

2007-06-13 Thread Matt Raible
Make sure Person is registered in your hibernate.cfg.xml file. Also, make sure it has an @Entity annotation. Matt On 6/13/07, Franco <[EMAIL PROTECTED]> wrote: I was following the Appfuse tutorial at http://appfuse.org/display/APF/Using+Hibernate After following all the instructions to the bo

Re: [appfuse-user] Not able to run appfuse:full-source

2007-06-13 Thread Matt Raible
You might try deleting your local AppFuse plugin (rm -r ~/.m2/repository/org/codehaus/mojo/appfuse-maven-plugin). This was a bug we fixed shortly after the release. Matt On 6/13/07, Developer Abe <[EMAIL PROTECTED]> wrote: Hi, I am getting the following when running mvn appfuse:full-source

Re: [appfuse-user] Having problems with GenericDao.save()

2007-06-13 Thread Matt Raible
I think it's a valid bug. There's an issue in JIRA that's similar, but there's not patch (yet). ;-) http://issues.appfuse.org/browse/APF-814 Matt On 6/13/07, Developer Abe <[EMAIL PROTECTED]> wrote: Thanks Trent for the reply. I think that appfuse already implements the changes in the article

[appfuse-user] Failed unit test in Appfuse Hibernate tutorial

2007-06-13 Thread Franco
I was following the Appfuse tutorial at http://appfuse.org/display/APF/Using+Hibernate After following all the instructions to the bottom of this page, I ran mvn test -Dtest=PersonDaoTest and I get these error messages on the 2 tests in this class testFindPersonByLastName(org.appfuse.tutorial.

Re: [appfuse-user] [Appfuse2][S2]Anyone who used s:tabbedPanel?

2007-06-13 Thread Matt Raible
I've thought of it, but I haven't seen any compelling reasons to use it over Scriptaculous or Dojo. Matt On 6/13/07, leon du <[EMAIL PROTECTED]> wrote: Matt: any idea of using extjs(http://extjs.com) for web ui ? 2007/6/13, Matt Raible <[EMAIL PROTECTED] >: > Here's a howto for getting Str

Re: [appfuse-user] [Appfuse2][S2]Anyone who used s:tabbedPanel?

2007-06-13 Thread leon du
Matt: any idea of using extjs(http://extjs.com) for web ui ? 2007/6/13, Matt Raible <[EMAIL PROTECTED]>: Here's a howto for getting Struts 2's Dojo support working in AppFuse: http://www.nabble.com/Re%3A-ajax-and-datepicker-on-2m4-p10828138.html The following issue was used to track this

[appfuse-user] Not able to run appfuse:full-source

2007-06-13 Thread Developer Abe
Hi, I am getting the following when running mvn appfuse:full-source $ mvn -e appfuse:full-source + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'appfuse'. [INFO]

Re: [appfuse-user] Having problems with GenericDao.save()

2007-06-13 Thread Developer Abe
Thanks Trent for the reply. I think that appfuse already implements the changes in the article. I just wanted to point out the one line of code in GenericDao.save() which always sets a persisted objects primary keys to Long. I didn't know if this was a valid bug or not. Regards, Abe On 6/13

Re: [appfuse-user] Having problems with GenericDao.save()

2007-06-13 Thread Trent
On Wed, 13 Jun 2007 14:31:40 -0700, Abe Kang wrote > Hi, > > I have a persisted entity with a primary key property of type Integer. > > I looked at the source code and noticed that the Primary keys are implicitly > set to java.lang.Long in the GenericDaoiBatis.save() method. Developerworks has a

Re: [appfuse-user] Appfuse and Websphere 6

2007-06-13 Thread Trent
On Wed, 13 Jun 2007 14:09:03 -0500, Ding, Qin wrote > Does anyone successfully deploy the appfuse 1.9.4 with JSF and DB2 into > websphere 5 or 6? I really need some help here to make sure the appfuse > can run on websphere. So my boss will accept my recommendation to > use appfuse to develop our

[appfuse-user] Having problems with GenericDao.save()

2007-06-13 Thread Abe Kang
Hi, I have a persisted entity with a primary key property of type Integer. I looked at the source code and noticed that the Primary keys are implicitly set to java.lang.Long in the GenericDaoiBatis.save() method. Here is the code: public T save(final T object) { String className = C

[appfuse-user] 1.9.4 AppGen error

2007-06-13 Thread LukeS
I have an existing schema: create table country( countryId bigint not null auto_increment, countryName varchar(50), primary key (countryId), index cPRIMARY (countryId) ) engine = InnoDB; Using Appgen I have made some code with this table, however on start up I get the fol

[appfuse-user] Appfuse and Websphere 6

2007-06-13 Thread Ding, Qin
I use Appfuse 1.9.4, JSF and DB2. It works fine after deploying to the Tomcat. Now, after I deploy it to websphere, I tried to login to the appfuse. After I key in the id/password, I got the following error. Does anyone successfully deploy the appfuse 1.9.4 with JSF and DB2 into websphere 5 o

[appfuse-user] domain object security using ACLs

2007-06-13 Thread Jason Thrasher
I'd like to use ACLs to manage access to domain objects. It seems that Acegi has refactored it's ACL security using the new org.acegisecurity.acls package for ACL management. Unfortunately there's little documentation for it at this time. It also appears that there are issues when using Hiberna

Re: [appfuse-user] Issue with junit.jar

2007-06-13 Thread LukeS
I had this same issue when using ant set-up from within Eclipse. This wike page has all the answers: http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseEclipse I went with: "The easiest way to configure Eclipse for AppFuse is to install Ant on your hard drive (i.e. c:\Tools\apache-ant-1.6.2) a

Re: [appfuse-user] Spring errors in 2.0-M5

2007-06-13 Thread Jason Thrasher
Thanks for the note. I solved the problem by removing all dependencies on AppFuse application-tier code. I'm still using the plugins. You're probably correct, it was a dependency issue. -Jason donleyp wrote: > > I was getting similar errors to these (specifically, the last one you > listed)

Re: [appfuse-user] full-source error in appfuse maven plugin

2007-06-13 Thread frantuma
Thanks Matt, rocket speed answer as usual. I'd say there is no need to add a JIRA, my main usage of full-source is to get a full understanding on how the framework works, thus just running it from an environment with no proxy is enough. I completely agree with your vision to have an updatable m

[appfuse-user] JSF - Display content on page if user is logged in (acegi tags not working)

2007-06-13 Thread RL
Hi, First i would like to say I am new to appfuse and webdevelopment in java (although i have experience in other languages). I want to display some content on a page only if the user if logged in. I tried to use the acegi tags on the facelet template to do that but the content always show. I'm

Re: [appfuse-user] full-source error in appfuse maven plugin

2007-06-13 Thread Matt Raible
It looks like this is failing when it tries to use Ant's Get Task to fetch dependencies from the various pom.xml files. http://ant.apache.org/manual/CoreTasks/get.html Unfortunately, I don't know how to set the proxy configuration for Ant when there is no build.xml file being used. We could prob

[appfuse-user] full-source error in appfuse maven plugin

2007-06-13 Thread frantuma
Hi, I am having troubles running mvn appfuse:full-source; I have solved the issues regarding svn proxy configuration reading the solution in other posts. I have as welle my settings.xml with correct proxy configuration (it usually works). Now I get a connect (https I guess) error from appfuse plu

Re: [appfuse-user] regex not working on canoo ?

2007-06-13 Thread Michael Horwitz
It looks like you have a few extra spaces between "Person List" and ".*"? Are there a few blanks at the end of the personList.title resource in your bundle? Mike On 6/13/07, Travers Snyman <[EMAIL PROTECTED]> wrote: Hi, I have canoo web test failing running mvn integration-test only on the P

Re: [appfuse-user] AppFuse Authentication Problems

2007-06-13 Thread Matt Raible
It may be difficult to rip Acegi out at this point because it has been used for so long. However, here's a stab at doing it: 1. Remove the securityFilter from web.xml (both the filter and its mapping.xml). 2. Remove the UserSecurityAdvice class and its test (if you're using 1.x or 2.0 with full-

Re: [appfuse-user] AppFuse Authentication Problems

2007-06-13 Thread Michael Horwitz
Depending on your container you may be able to hook ACEGI into CMA. See http://tinyurl.com/2s6ub5 for some details. This may be easier than trying to disable ACEGI security on an existing project. If you starting a new project have you considered AppFuse light? Mike On 6/13/07, Sandeep Sukumaran

RE: [appfuse-user] RE: Can't run maven goals from within eclipse

2007-06-13 Thread Travers Snyman
Thanks for the help, Yes, I can use the external tools and can build from within Eclipse. Some other maven goals still fail however for example integration-test I get Cause: Error loading class 'org.codehaus.mojo.hibernate3.exporter.Component' Are ther other dependencies I have to setup in Eclipse

[appfuse-user] regex not working on canoo ?

2007-06-13 Thread Travers Snyman
Hi, I have canoo web test failing running mvn integration-test only on the PersonTests target in web-tests.xml. The entry in web-tests.xml is &config; &login;

[appfuse-user] AppFuse Authentication Problems

2007-06-13 Thread Sandeep Sukumaran1
Hello , I would like to remove the Acegi security of Appfuse and make it to run using CMA . When i went through the tutorial which is available online , i could not download the old web-security.xml at appfuse CVS attic . Please let me know , whether can i foind this file .. Waiting for your res

Re: [appfuse-user] struts.enable.SlashesInActionNames not working?

2007-06-13 Thread Matt Raible
On 6/13/07, Peter Bondurant <[EMAIL PROTECTED]> wrote: Actually, it does! Adding the following to struts.xml solved my problem: Thanks a lot Matt, Big Pete. PS: I already managed before to add slashes in action names, in a project created following the Struts 2 "HelloWorld" tutorial (h

Re: [appfuse-user] Components inside not rendered

2007-06-13 Thread Matt Raible
This might be caused by AppFuse's customized panelGrid. What happens if you remove/comment-out the following in faces-config.xml: Replacement renderer for h:panelGrid that uses lists instead of tables javax.faces.Panel javax.faces.Grid org.appf

Re: [appfuse-user] struts.enable.SlashesInActionNames not working?

2007-06-13 Thread Peter Bondurant
Actually, it does! Adding the following to struts.xml solved my problem: Thanks a lot Matt, Big Pete. PS: I already managed before to add slashes in action names, in a project created following the Struts 2 "HelloWorld" tutorial ( http://struts.apache.org/2.0.6/docs/bootstrap.html). It di

Re: [appfuse-user] ActionMapper behavior

2007-06-13 Thread Matt Raible
I haven't used the action: or method: prefixes, just method="list". Have you tried that? I suspect you might be calling the method properly, but then redirecting to it, hence the duplicate call. Matt On 6/13/07, arvinder <[EMAIL PROTECTED]> wrote: I have a customer entity with one-to-many rela

Re: [appfuse-user] [Appfuse2][S2]Anyone who used s:tabbedPanel?

2007-06-13 Thread Matt Raible
Here's a howto for getting Struts 2's Dojo support working in AppFuse: http://www.nabble.com/Re%3A-ajax-and-datepicker-on-2m4-p10828138.html The following issue was used to track this change: http://issues.appfuse.org/browse/APF-739 We decided not to do it by default since Dojo is 5 MB and slo

Re: [appfuse-user] struts.enable.SlashesInActionNames not working?

2007-06-13 Thread Matt Raible
I've never used such a constant, so I can't say why it doesn't work. I did a bit of googling and came up with the following thread on the Struts mailing list. Unfortunately, it doesn't seem to offer a solution: http://www.nabble.com/Namespaces-and-SlashesInActionNames-issue--t3356704.html Matt

[appfuse-user] struts.enable.SlashesInActionNames not working?

2007-06-13 Thread Peter Bondurant
Hi all, I would like Struts to allow slashes in action names. Couldn't get it to work in AppFuse, following those steps: D:\dev\projets\myproject>mvn archetype:create -DarchetypeGroupId=org.appfuse-DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories= http://st atic.appfuse.org/reposit

[appfuse-user] [Appfuse2][S2]Anyone who used s:tabbedPanel?

2007-06-13 Thread Struts2 Fan
Hi all, I couldn't make the s:tabbedPanel work in appfuse 2.0-M5. I copied a simple jsp file from the showcase application in the struts-core, but it is not working in my appfuse project. It gives the following javascript error. djConfig.baseScriptUri has no properties getBaseScriptUri()dojo.js

Re: [appfuse-user] Appfuse Spring M5 Deployment Issue on WAS 5.1

2007-06-13 Thread Michael Horwitz
AppFuse 2.0M5 will only work with a 1.5 JDK, which is not available under WAS 5.1. There is also a problem with the version of the servlet spec in each case, which is probably why you are seeing the error below. Appfuse 2.0M5 uses the servlet specification 2.4. If I remember correctly WAS 5.1only

[appfuse-user] ActionMapper behavior

2007-06-13 Thread arvinder
I have a customer entity with one-to-many relationship with location entities. So if I am in editLocation.jsp and I hit cancel button, it should display locations for only the current customer. To achieve this I created a hidden variable in my form which I use in my list() in LocationAction class

Re: [appfuse-user] cruisecontrol build failed

2007-06-13 Thread ros
Maven 2.0.7 works fine. mraible wrote: > > That's good to know. You might want to verify everything works with > 2.0.7: > > http://people.apache.org/~jvanzyl/ > > I'd also encourage you to try Hudson (hudson.dev.java.net). I've been > using it for AppFuse's CI for the past few months and it'

AW: [appfuse-user] mvn site:site fails in Appfuse 2.0-M5

2007-06-13 Thread Tobias Vogel
I had a similiar issue when i added the AppFuse core classes. If you did the same, the following issue will give you advice how to work around it: http://issues.appfuse.org/browse/APF-783 Tobias -Ursprüngliche Nachricht- Von: sarat.pediredla [mailto:[EMAIL PROTECTED] Gesendet: Diensta