Re: [appfuse-user] how to test action method where user is determined from request

2009-09-17 Thread tibi
add the user into the session first look into the register action. this one will add the user into the session... tibi measwel wrote: > I have a method in my action wherin I determine the user from the request > like: > user = userManager.getUserByUsername(getRequest().getRemoteUser()); > > When

Re: [appfuse-user] lazy intialization problem

2009-09-17 Thread tibi
yes interesting question for which i don't have the answer :( the only thing i know is the dissatisfying option of calling all the object you need, so hibernate will be forced to load them. tibi Anil Rawat wrote: > hi matt, > > i sorted out the problem as it was not of ram memory but of sett

Re: [appfuse-user] my tag

2009-09-17 Thread tibi
it works. my example: (the tag) <%@ attribute name="saveMethod" %> tibi tibi wrote: > finally i seem to understand it by the help of a helping person ;) > > If ${jstlFoo} prints "FOO" > > then > > > > > will test it tomorrow > > tibi > > > > > tibi wrote: > >> for reference >> >> aske

Re: [appfuse-user] PermGen Exception

2009-09-17 Thread ramzi khlil
Hi All, Yes, I did adjust my JAVA_OPTs and it fix the problem. But, if you undeploy the application the size of PermGen will not decrease. PermGen will increase continously until it reaches the specified value in JAVA_OPTS and then throws outOfMemoryException PermGen. As I read in the article I p

Re: [appfuse-user] where are the DB settings specified for jetty:run?

2009-09-17 Thread Matt Raible
It will use the properties you have specified in pom.xml unless you override them by activating a profile. On Wed, Sep 16, 2009 at 7:59 PM, measwel wrote: > > When I just thought I had POM figured out reasonably well, I managed to > destroy the data in my development DB by running jetty:run. Even

Re: [appfuse-user] appfuse calendar

2009-09-17 Thread Matt Raible
The calendar used in AppFuse is the 1.0 version of http://www.dynarch.com/projects/calendar/. I don't believe it would be hard to upgrade to the latest version if the 1.0 version doesn't provide the functionality you need. Matt On Wed, Sep 16, 2009 at 7:37 PM, measwel wrote: > > Does the appfuse

[appfuse-user] extension of appfuse roles not testing correctly

2009-09-17 Thread measwel
I have extended appfuse roles. In the role table I have added a varcahar(3) specifying the sort of the role; currently I have "sys" for system roles (only to be added or removed by an system admin) and "usr" for user roles, that the user can add or remove himself. This is a nice feature; dependi

[appfuse-user] Code for setting roles

2009-09-17 Thread measwel
In addition, here is the code I use for setting the roles (in preferencesAction). Its coupled to a checkbox. Preferences is an embedded object in User stating his preferences (bit fields) // set roles according to preferences if (user.getPreferences().getWantsDogs() == true && !getReq

Re: [appfuse-user] Error Could not loadAbstractTransactionalDataSourceSpringContextTests

2009-09-17 Thread Oscar Rodriguez
I move BaseActionTestCase from src/main/java to src/main/test. Later I ejecute mvn clean and it works! Thanks Matt! - Original Message - From: Matt Raible To: users@appfuse.dev.java.net Sent: Wednesday, September 16, 2009 10:23 AM Subject: Re: [appfuse-user] Error Could not lo

Re: [appfuse-user] extension of appfuse roles not testing correctly

2009-09-17 Thread Matt Raible
You should be able to setup remote debugging in your application and debug tests or when it's running. I do this in IDEA by creating a "Remote" configuration and setting my MAVEN_OPTS to "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005". Then I run "mvn whatever" and start the

Re: [appfuse-user] Code for setting roles

2009-09-17 Thread Matt Raible
It's usually best if you reply to previous messages (keeping the same subject) so your questions show up as the same thread in archives. It's difficult for anyone to know what the message below relates to if there's no previous context. On Thu, Sep 17, 2009 at 10:54 AM, measwel wrote: > > In addi

[appfuse-user] JSP/Response Size Issue

2009-09-17 Thread jellyfish
Hi Folks, I don't think this is a Appfuse issue, but just to check if anyone had this issue before. I'm using Appfuse 1.9.4 (Spring + Hibernate). I have one big JSP page and it would return the "crap" at the bottom. However, if I make the JSP page smaller by taking out some fields or javascrip

Re: [appfuse-user] JSP/Response Size Issue

2009-09-17 Thread Matt Raible
I can't answer this question as I've never seen this issue before. What app server and Java version are you using? On Thu, Sep 17, 2009 at 1:13 PM, jellyfish <4registero...@gmail.com> wrote: > > Hi Folks, > > I don't think this is a Appfuse issue, but just to check if anyone had this > issue befo

Re: [appfuse-user] JSP/Response Size Issue

2009-09-17 Thread tibi
i have made some pritty big jsps in my life but never had this stuff. tibi Matt Raible wrote: > I can't answer this question as I've never seen this issue before. > What app server and Java version are you using? > > On Thu, Sep 17, 2009 at 1:13 PM, jellyfish <4registero...@gmail.com >

Re: [appfuse-user] where are the DB settings specified for jetty:run?

2009-09-17 Thread measwel
Yes, it did run on the test DB, so the issue is non-existent. Yesterday night it was just too late for me to notice. mraible wrote: > > It will use the properties you have specified in pom.xml unless you > override > them by activating a profile. > > On Wed, Sep 16, 2009 at 7:59 PM, measwel >

Re: [appfuse-user] JSP/Response Size Issue

2009-09-17 Thread Dale Newfield
There used to be (~2004) a limit to the size of the .java files generated from the .jsp files...don't know if that still exists... ...do you have gzip filters in place? that's an easy way to end up with binary output if something's going haywire... -Dale --

[appfuse-user] Validation and more

2009-09-17 Thread Alistair Bush
Before I even start on my questions, lets describe a little bit about what i'm doing. Basically my model has a Region and a School. A School _must_ belong to one (and only one) Region. What I am trying to do is create a RegionPickList. So that on the School form, you can click a link/image,

Re: [appfuse-user] Separate database settings for testing, staging and production

2009-09-17 Thread taltun
Hi, I hope some can help. I tried to setup a production profile as Marin Homik previous maven settings in this thread but I get an exception: Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Full exception: -- [INFO] Preparing hibernate3:hbm2ddl [WARNING] R