[appfuse-user] AppFuse 1.9.x validator with WebWork

2007-07-30 Thread DreamBig
We recently started website development in health care domain. It was really a good start point for us to use Appfuse to kickstart. We use 1.9 and WebWork option. However, we have problems when adding validators. 1. We read the Tutorial Part III. But I cannot generate personForm.jsp in extras/ap

Re: [appfuse-user] SSO implementation with APPFUSE

2007-07-30 Thread Sanath Kodikara
Hi Matt, Sorry for being not detailed. My real problem is that the version of CAS that I am using is not supporting "Single Sign Out" . (CAS Server 3.1 M2) . I understood that CAS Server 3.1 release has successfully implemented Single Sign out protocol. Matt Raible wrote: I don't believ

[appfuse-user] Getting current user's id during tests

2007-07-30 Thread Pavel Katsev
Hello, I'm writing a persistence test (ProjectDaoTest) and I need to get current user's id into a @ManyToOne Author field. I was wondering what the correct way to do the following would be: 1. get current user during test 2. get current user during runtime (this one i'm sure can be figured

[appfuse-user] Ajaxanywhere and GzipFilter issue

2007-07-30 Thread fadhli
Hello everyone, I'm just want to know whether you guys use ajaxanywhere in your web app. The thing that I found out is that it won't work when GzipFilter is turn on. Any solutions? Right now, I just simply comment the GzipFilter part in my web.xml. I'm not sure whether that's a good thing to do o

Re: [appfuse-user] basic appfuse:gen questions

2007-07-30 Thread arvinder
You need to create the POJO, add it to the hibernate.cfg.xml file in the resources directory and run hibernate3:hbm2ddl plugin as described in the documentation Lee Meador-3 wrote: > > Warning - I'm brand new to appfuse and may betray my ignorance with the > following questions. > > I've read

[appfuse-user] hibernate/sprint queries

2007-07-30 Thread Fred Forester
Hi all, this is probably not a question for the appFuse list but I figure someone might know. what is the proper way to handle these kinds of queries in the DaoHiberante class and still manage to have a list of valid pojos? for example, how is the count field handled? and should a callback b

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread tibi
When you compile with M5, the hibernate3 plugin is run as part of the "process-test-resources" phase. If you don't want this behavior, you have to 1) remove the plugin or 2) change ${maven.test.skip} to true in the plugin's configuration. haha yes thats what happens i always 'forget' to cha

Re: [appfuse-user] Getters executing multiple queries in JSF managed beans

2007-07-30 Thread Matt Raible
If we upgrade to JSF 1.2, we may be able to use @PostConstruct: http://weblogs.java.net/blog/jhook/archive/2007/05/jsf_12_ri_backi.html Matt On 7/30/07, Safurudin <[EMAIL PROTECTED]> wrote: > With pure JSF, no, with Facelets, it is possible. > > http://www.alyssar.nl/faceletsactionhandler.html >

Re: [appfuse-user] Getters executing multiple queries in JSF managed beans

2007-07-30 Thread Safurudin
With pure JSF, no, with Facelets, it is possible. http://www.alyssar.nl/faceletsactionhandler.html But as I said, JSF is strange in many ways. The designers of JSF probably had very outdated browsers with no support for bookmarks, and never used Google at the time the spec landed, back in the da

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Matt Raible
On 7/30/07, tibi <[EMAIL PROTECTED]> wrote: > ok clear. only the tables which do not exist and new columns i guess. > > but then is that not working in m5? i think i'm using that. all my > tables are getting created and expanded with my developing. > or is that because of the integration-test which

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread tibi
ok clear. only the tables which do not exist and new columns i guess. but then is that not working in m5? i think i'm using that. all my tables are getting created and expanded with my developing. or is that because of the integration-test which i run? when there are two options 1) add tabels

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Matt Raible
On 7/30/07, tibi <[EMAIL PROTECTED]> wrote: > but in which case will you build against your life database?? > my usual setup is; > a local developer database on my developer machine > i run mvn jetty:run most times and when i get cluttered test data i run > mvn integration-test te clear everything

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread tibi
but in which case will you build against your life database?? my usual setup is; a local developer database on my developer machine i run mvn jetty:run most times and when i get cluttered test data i run mvn integration-test te clear everything and check my app. a build database on the coninuum t

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread tibi
strange in my appfuse 2.0m5 when i run integration-test i get the database with tables and test data. after running the appfuse:gen/install i get more default data in my database. i'm not aware that i turned anything on. tibi Matt Raible wrote: There's two things: 1. The hibernate3 plu

[appfuse-user] basic appfuse:gen questions

2007-07-30 Thread Lee Meador
Warning - I'm brand new to appfuse and may betray my ignorance with the following questions. I've read a bunch of the docs on appfuse:gen but some basic stuff seems to be missing. I used mvn to create an appfuse struts 2 basic application. I think the version was 2.0-m5 but I didn't make a note la

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Matt Raible
There's two things: 1. The hibernate3 plugin runs an hbm2ddl goal to create database tables from POJOs. 2. There's a hibernate setting you can add to the sessionFactory bean to create tables as well. #1 runs for modular projects when you run tests in the "core" module. It also runs for basic proj

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread tibi
just to make it clear. is hbm2ddl the part which will create a new database when i run integration-test (or test)? tibi Matt Raible wrote: I'm inclined to leave it *off* by default. Why? Because it's been off for the last several releases and no one has complained about it. I also don't want t

Re: [appfuse-user] Error on adding a User in 2rc1 struts basic

2007-07-30 Thread Matt Raible
I was successfully able to reproduce this bug - can you please enter an issue in JIRA? http://issues.appfuse.org/browse/APF Thanks, Matt On 7/29/07, arvinder <[EMAIL PROTECTED]> wrote: > > Here are the screenshots > > > mraible wrote: > > > > Can you attach a screenshot? > > > > > > On 7/28

Re: [appfuse-user] Getters executing multiple queries in JSF managed beans

2007-07-30 Thread Matt Raible
How do you execute the action when the page loads? This is not possible with JSF 1.1. Matt On 7/30/07, Safurudin <[EMAIL PROTECTED]> wrote: > There seems to be a consensus in the JSF community that the best way to > do this is to invoke > an action which takes care of actually fetching the data,

Re: [appfuse-user] SSO implementation with APPFUSE

2007-07-30 Thread Matt Raible
I don't believe the CAS limitation you describe. Can you point me to the documentation that states this? A good SSO solution should support an infinite number of applications (only limited by hardware and bandwidth). Matt On 7/30/07, Sanath <[EMAIL PROTECTED]> wrote: > > Hi Matt, > I am implement

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Matt Raible
Not that I know of. Matt On 7/30/07, john kola <[EMAIL PROTECTED]> wrote: > > is there anyway to use hbm2ddl in appfuse to have audit field for every > object without adding attribute to the object. > > > - Original Message - > From: "Travers Snyman" <[EMAIL PROTECTED]> > To: > Sent: Mon

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread john kola
is there anyway to use hbm2ddl in appfuse to have audit field for every object without adding attribute to the object. - Original Message - From: "Travers Snyman" <[EMAIL PROTECTED]> To: Sent: Monday, July 30, 2007 11:21 AM Subject: RE: [appfuse-user] Turning Off hbm2ddl My vote is f

RE: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Travers Snyman
My vote is for leaving it off. I have dba's creating my ddl and more than often, use cases depend on actual data (static things) even in test environment. Travers -Original Message- From: tibi [mailto:[EMAIL PROTECTED] Sent: 30 July 2007 04:50 PM To: users@appfuse.dev.java.net Subject:

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Matt Raible
I'm inclined to leave it *off* by default. Why? Because it's been off for the last several releases and no one has complained about it. I also don't want to ship a version of AppFuse that auto-upgrades database tables w/o developers being aware of it. In most real-world environment, the database up

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread tibi
please leave it on by default. i use it for testing and building. in deployment its is not in the way as long as you will not build against your life database. and it is easier to turn of than on ;) good luck tibi Martin Homik wrote: As a newbie, I also vote for turning on by default. On

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Martin Homik
As a newbie, I also vote for turning on by default. Once you get familiar with AppFuse and/or application frameworks, people will figure out how to turn off the hibernate plugin either be checking the mailing list or by having a look into the FAQ. The latter is one of my first sources I check once

Re: [appfuse-user] Getters executing multiple queries in JSF managed beans

2007-07-30 Thread Safurudin
There seems to be a consensus in the JSF community that the best way to do this is to invoke an action which takes care of actually fetching the data, making the getter merely a POJO-style getter. Eg. public class UserList extends BasePage implements Serializable { private static final long

Re: [appfuse-user] Change admin role name: throw AccessDeniedException

2007-07-30 Thread Djohannot
Hi Mike, Thank for your fast reply, so pleasant... Yes, this is my exception message. I'll try to upgrade to M5 release, and tell you the result as soon as possible. Thanks for your help. David Johannot Michael Horwitz wrote: > > Is the exception message "Access Denied: Only administrators

Re: [appfuse-user] Change admin role name: throw AccessDeniedException

2007-07-30 Thread Michael Horwitz
Is the exception message "Access Denied: Only administrators are allowed to modify other users."? If so your problem is in the UserSecurityAdvice class which is hard coded to only allow the administrator to change other users. If you are going to change role names you may want to look at upgrading

Re: [appfuse-user] Getters executing multiple queries in JSF managed beans

2007-07-30 Thread Matt Raible
I'm OK with changing UserList to be a better example. What do you suggest we change it to? Matt On 7/30/07, Safurudin <[EMAIL PROTECTED]> wrote: > According to Veniamin Goldins and Ed Burns on the following thread: > > http://forum.java.sun.com/thread.jspa?threadID=550485&messageID=3919330 > > o

[appfuse-user] Getters executing multiple queries in JSF managed beans

2007-07-30 Thread Safurudin
According to Veniamin Goldins and Ed Burns on the following thread: http://forum.java.sun.com/thread.jspa?threadID=550485&messageID=3919330 one shoudn't expect getters of managed-beans only to be invoked once per request/lifecycle In Appfuses eg. UserList.java following happens; public L

[appfuse-user] Change admin role name: throw AccessDeniedException

2007-07-30 Thread Djohannot
hello, I've add and change the appfuse roles name. I've made the change in menu-config.xml (this part is ok, i see only the authorized pages), in the sample-data.xml and in security.xml. The problem is that when i try to add a new user, i've the AccessDeniedException of ACEGI thrown. In the se

[appfuse-user] Data binding errors when saving null values in textboxes requiring int

2007-07-30 Thread elmer.mirano
Hello everyone, We're using the Spring version of appfuse and we're using validators to validate our textbox inputs. When we try to enter characters or empty values to textboxes requiring int values, we got this error : Warning Failed to convert property value of type [java.lang.String] to

Re: [appfuse-user] Jetty integration with 1.9.x - configuration

2007-07-30 Thread Matt Raible
1.9.5 will most likely be a bug-fix only release with no new features. Since most developers on this project are interested in using maven over ant - it doesn't make a lot of sense to keep supporting it. The good news is this is an all-volunteer project and we're more than happy to accept new cont

[appfuse-user] appfuse 2 and happyaxis

2007-07-30 Thread Boudewijn Rempt
Hi, I've been trying without success to get an Axis webservice server generated form a pre-existing wsdl integrated into a small appfuse application (struts2-basic). In fact, apart from managing to add axis to the pom file, I am unable to make any progress. Is there anyone who has managed to g

[appfuse-user] SSO implementation with APPFUSE

2007-07-30 Thread Sanath
Hi Matt, I am implementing SSO on a project. I have 4 .war files created by 4 different web applications and I need to implement SSO on this. I heard that CAS supports only up to 2 .war files . Is it a good idea to implement SSO on Tomcat? Is it secure enough? please advice me thnx -- View this

RE: [appfuse-user] Jetty integration with 1.9.x - configuration

2007-07-30 Thread Jon Loken
Hi Mike, I am aware that AppFuse 2 has Maven Jetty support, however at this moment we are not totally convinced by Maven. (It is a bit too abstract for me. In addition, we have other Ant scripts that call targets in build.xml. Would not know where to start if there is no build.xml around!) We

Re: [appfuse-user] Jetty integration with 1.9.x - configuration

2007-07-30 Thread Michael Horwitz
Jetty is supported in AppFuse 2.0.x using Maven. If you decide Maven is the route you want to follow, then you should look into upgrading to AppFuse 2.0.x. Mike. On 7/30/07, Jon Loken <[EMAIL PROTECTED]> wrote: > > Hi all, > > Using Jetty is a great time saver, circumventing repeated deployments

[appfuse-user] Jetty integration with 1.9.x - configuration

2007-07-30 Thread Jon Loken
Hi all, Using Jetty is a great time saver, circumventing repeated deployments to local webserver. As we are using AppFuse Spring MVC v 1.9.3 there is no ready available Jetty functionality. I looked into Jetty over the weekend, but did not manage to integrate it into AppFuse: -ECLIPSE Jetty

AW: [appfuse-user] LazyInitializationException: illegal access to loading collection....

2007-07-30 Thread Tobias Vogel
I had my problems too, especially finding a "business key" for every entity, as the hibernate team proposes. Finally, I picked up the idea of implementing equals and hashcode using the obect's id, and a random identifier on newly created objects. For this purpose I have a base class for all object

Re: [appfuse-user] LazyInitializationException: illegal access to loading collection....

2007-07-30 Thread Michael Horwitz
I have had a lot of problems in impelementing equals/hashcode, particularly on entities that I wanted to include in a set. I found at one stage that hibernate was instantiating the entity, adding it to the set, and only then setting its properties. The net result is that the hashcode changed betwee

Re: [appfuse-user] Issue with candy/appfuse - sun tools.jar r1.4.2

2007-07-30 Thread Abel MuiƱo
If you can successfully execute maven goals from the command line, then you should be able to run them from eclipse if you are running it with a JDK (by default, Eclipse chooses to use a JRE). You can verify that in configuration details (Help | About | Configuration Details). If you haven't tri