Re: [appfuse-user] Query on Exceptiontranslationfilter

2007-09-10 Thread Matt Raible
It looks like this filter was included in Acegi Security 1.0. http://www.jroller.com/raible/entry/how_to_upgrade_from_acegi1 Matt On 9/11/07, jithesh <[EMAIL PROTECTED]> wrote: > > hi, > >I am working with appfiuse 1.9x for my web app. I read an article on > ACEGI, that describes about 'Exc

[appfuse-user] Query on Exceptiontranslationfilter

2007-09-10 Thread jithesh
hi, I am working with appfiuse 1.9x for my web app. I read an article on ACEGI, that describes about 'Exceptiontranslationfilter'. But when i checked mu source o couldnot find that perticular filter. class="org.acegisecurity.ui.ExceptionTranslationFilter". The acegi used in this application

Re: [appfuse-user] Best way to add to org.appfuse.model.User

2007-09-10 Thread gederer
Hi Rob, I recently added some properties to User, and then upgraded. I would strongly recommend setting up a subversion repository for your project if you're going to do this. I think this would have been completely painless had I not been a total subversion newbie. Next time will be a piece o

[appfuse-user] Mini Tutorial: Compass and AppFuse 2.0

2007-09-10 Thread gederer
Hi, I've been messing about with Compass and AppFuse 2.0. The below borrows heavily from Chris Barham's previous post on the subject. But, it uses the most recent version of Compass, Compass annotations, and, of course, AppFuse 2. Comments welcome! Cheers, Greg Setting Up Compass with AppFu

Re: [appfuse-user] TOMCAT ComponentTagSupport NullPointerException

2007-09-10 Thread Matt Raible
Why are you getting a 404 in your application in the first place? Is the path to your action incorrect or are you specifying an incorrect JSP path in your configuration? Matt On 9/11/07, mortalexplorer <[EMAIL PROTECTED]> wrote: > > Good Day, > > Running Appfuse 2/struts/spring/hibernate. Have a

Re: [appfuse-user] ValidWhen/RequiredIf

2007-09-10 Thread Matt Raible
The easiest way to do this may be to chain validators. Use Commons Validator's "beanValidator" for required fields and such, then create a class that implements Spring's Validator and do more rigorous validation there. On your FormController, you can change from using "validator" to "validators" a

[appfuse-user] Re: Best way to add to org.appfuse.model.User

2007-09-10 Thread Derek Broughton
Michael Horwitz wrote: > For AppFuse 2.0.X the easiest approach is simply to include the code for > the User class and modify as required: > http://www.appfuse.org/display/APF/AppFuse+Core+Classes > > > On 9/7/07, Rob Hills > <[EMAIL PROTECTED]> wrote: >> >> I need to add a single attribute to t

Re: [appfuse-user] Deleting tables

2007-09-10 Thread Matt Raible
The dbunit-maven-plugin is deleting data and re-inserting it. You could create a new profile that overrides both the hibernate3 and dbunit executions so they don't execute at all. Or you could look at the configuration of the dbunit plugin and modify it's element so it only runs when you do someth

Re: [appfuse-user] Struts 2 dropdown list

2007-09-10 Thread Matt Raible
1. Create a Map in your Action 2. Create a getter for that Map 3. Refer to the property in the "list" attribute of Hope this helps, Matt On 9/10/07, Juha Hinkula <[EMAIL PROTECTED]> wrote: > Hi, > > I have struggled with Struts2 dropdown lista (s:select). Could someone > present clear example o

Re: [appfuse-user] Deleting tables

2007-09-10 Thread TransWebT
That change did seem to prevent the tables from being dropped. Here's an excerpt from the log: [sparcs] ERROR [main] SchemaExport.create(275) | Table 'app_user' already exists However, the data that is saved in one session vanishes once I restart with the command: mvn jetty:run-war It ap

Re: [appfuse-user] Dynamic forms with Spring MVC

2007-09-10 Thread gederer
Hi, I solved this by overriding formBackingObject like so: protected Object formBackingObject(HttpServletRequest request) throws Exception { log.debug("entering formBackingObject method"); ToyProvider o = new ToyProvider();

[appfuse-user] TOMCAT ComponentTagSupport NullPointerException

2007-09-10 Thread mortalexplorer
Good Day, Running Appfuse 2/struts/spring/hibernate. Have a link on mainmenu.jsp set up that takes the user to an administration page that contains search/display functionality. Everything runs fine with Jetty but when I migrate to TOMCAT I get the stack trace below when I click on the link. My

Re: [appfuse-user] ValidWhen/RequiredIf

2007-09-10 Thread Aled Rhys Jones
Any ideas guys? - Original Message - From: "Aled Rhys Jones" <[EMAIL PROTECTED]> To: Sent: Sunday, September 09, 2007 7:20 PM Subject: [appfuse-user] ValidWhen/RequiredIf Hi all I need to validate some fields only if the user has specific roles. How do I do this? For example, I do

[appfuse-user] Struts 2 dropdown list

2007-09-10 Thread Juha Hinkula
Hi, I have struggled with Struts2 dropdown lista (s:select). Could someone present clear example of populating dropdown list and setting it to form. I have searched from previous mails but there is no clear enough examples. -jh

[appfuse-user] GenericManager not injected

2007-09-10 Thread gederer
Hi, In my applicationContext-service.xml, I have: In my Controller, I have: private GenericManager countryManager = null; public GenericManager getCountryManager() { return countryManager;

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-10 Thread BruceLee
Oh, thanks Matt, I understand more. However, then each sub-form will has an different Action class (nested in big class). Can I share a same Action class for all nested forms? For example on a page, there are 3 places to upload a profile picture and file attachments, I'd like all of them use the

Re: [appfuse-user] pass parameter at sumbit form

2007-09-10 Thread BruceLee
Thank Matt. However, I still use WW2.2.4 based on appfuse 1.9.4. And my another question would be, When I click Submit, I also want to pass a param to the Action. That's to say, to get a URL like a.com/uploadFile.action?item=myPicture Then the same Action class can be used for multiple forms. -

[appfuse-user] LDAP authentication in appfuse 1.7

2007-09-10 Thread tiya tiya
How can i implement LDAP authentication in appfuse 1.7? I implemented in appfuse 1.9.4 with Acegisecurity..But i am not sure about appfuse 1.7. Pls let me know. Thanks in advance.

Re: [appfuse-user] Appfuse application developpement

2007-09-10 Thread ramcis
I took appfuse as it is, that means i'm using the default web framework. I created a pojo named Book, I'used appgen to generate stuff and I integrated the generated stuff to the application. When I tried to see the list of books I get page not found, also menu related to pojo Book doesn't work. I

Re: [appfuse-user] ajax dojo

2007-09-10 Thread tibi
wait is see an javascript error... which i don;t understand: Error: Could not load 'struts.widget.Bind'; last tried '__package__.js' Source File: http://localhost:8080/struts/dojo/dojo.js Line: 94 tibi tibi wrote: after using ajax in a not so nice way (with getting full html as a result... )

[appfuse-user] ajax dojo

2007-09-10 Thread tibi
after using ajax in a not so nice way (with getting full html as a result... ) i'm trying to follow this example: http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html if have made the following: but it works fine (it deletes) but not without refreshing the page. any help??? <%@ inc

RE: [appfuse-user] Problem in updating an Object

2007-09-10 Thread benoit moraillon
It's ok but you'll have to do a getHibernateTemplate().merge(blabla) or this : // delete all hibernate session objects this.session.clear(); // perform save getHibernateTemplate().save(blabla); _ De : Mel Pison [mailto:[EMAIL PROTECTED] Envoyé : lundi 10 septembre 2007 13:44 À :

Re: [appfuse-user] after user signup there is username placed as principal, why not user pojo?

2007-09-10 Thread ros
For me Authentication auth = new UsernamePasswordAuthenticationToken( getUser(), getUser().getConfirmPassword(), getUser().getAuthorities()); works fine. mraible wrote: > > I would try it. If it works, please open an issue in JIRA and attach the > patch. > > M

[appfuse-user] Problem in updating an Object

2007-09-10 Thread Mel Pison
Hi all, I am using appfuse 1.9x and webwork as the web framework. I'm trying to build an application to manage studies but Im encountering some problems. The relationship of POJOs is like this, Study has many Studypageset(1 to many) and Studypageset has many studyPage (1 to many). I must c

Re: [appfuse-user] Is the ibatis daoFramework usable now?

2007-09-10 Thread Matt Raible
http://appfuse.org/display/APF/Using+iBATIS On 9/10/07, Jim Qiu <[EMAIL PROTECTED]> wrote: > Hi > I want to try the iBatis code now but I could not find where to start, > can anyone tell me where how to start that ? > > Jim Qiu > -- http:

[appfuse-user] Is the ibatis daoFramework usable now?

2007-09-10 Thread Jim Qiu
Hi I want to try the iBatis code now but I could not find where to start, can anyone tell me where how to start that ? Jim Qiu

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-10 Thread nessus
Matt, Joe, thank you two, this solution rocks. I can keep going now. kindest regards, nessus. jkrugler wrote: > > Nessus, > > I have encountered the same issue as you described. I tracked the problem > down to struts.xml being included in > /target/warpath/appfuse-struts-2.0-rc1.warpath.jar