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

2009-09-18 Thread Doug Cheng
Remove gzip filter and try again. Doug. 2009/9/19 jellyfish <4registero...@gmail.com> > > Yes, I have gzip filters, any other suggestions that I should look at? I > will turn it off to verify if this is the issue, thanks. > > > > DNewfield wrote: > > > > There used to be (~2004) a limit to the

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

2009-09-18 Thread jellyfish
Yes, I have gzip filters, any other suggestions that I should look at? I will turn it off to verify if this is the issue, thanks. DNewfield wrote: > > 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

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

2009-09-18 Thread jellyfish
Java 1.4.2_11 Application Servers: Orion 2.0.7 WebSphere 5.1 Express Notes: I'm running this within the Eclipse, not sure if this would be the cause, I will deploy the EAR to an application server to verify this. mraible wrote: > > I can't answer this question as I've never seen this issue b

[appfuse-user] webtests fail on connection refused

2009-09-18 Thread measwel
Other tests run fine, but it fails on the webtest, stating that the connection is refused. Test data is present, I think the DB is right too. What could be wrong? Tests run: 70, Failures: 0, Errors: 0, Skipped: 0 [dbunit:operation] [antrun:run] Executing tasks [echo] Testing 'HW_STRUTS-1.0'

[appfuse-user] dynamic menu rendering based on user roles

2009-09-18 Thread measwel
I have implemented dynamic menu rendering, based on user roles, that the user can assign himself. Here are the necessary changes: DB: add column 'role' of type varchar (3) to table 'role' set sort column for roles USER_ROLE and ADMIN_ROLE to "sys" to indicate these roles are system roles and may

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

2009-09-18 Thread Matt Raible
What happens if you run from the command line? The command line always tells the truth. ;-) On Fri, Sep 18, 2009 at 12:51 PM, measwel wrote: > > The strangest thing I have seen so far... > > I import Role from model package and try to use an added method > > role.setSort("usr"); > > NetBeans clai

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

2009-09-18 Thread measwel
The strangest thing I have seen so far... I import Role from model package and try to use an added method role.setSort("usr"); NetBeans claims the method is not there. I check, its there. Even when I follow netbeans advice 'create method setSort in Role' netbeans opens Role, adds the method, so

Re: [appfuse-user] Production and Test Profiles

2009-09-18 Thread taltun
Hi, This is my production profile resides in my root pom.xml file: prodx false maven-surefire-

Re: [appfuse-user] Production and Test Profiles

2009-09-18 Thread measwel
Here are the mods I have made: org.codehaus.mojo <-- THIS PLUGIN DROPS / CREATES TABLES hibernate3-maven-plugin 2.1 hbm2ddl annotationconfiguration

Re: [appfuse-user] Composite primary key problem in appfuse 2.0 (struts2)

2009-09-18 Thread Alistair Bush
> Thanks for your reply > > but how to edit the row using this Composite-id, i am not worked on this > please suggest me... Sorry, what do you mean by edit. To create a new Record (Region in this case). Region r = new Region(); r.setPeriodRegionPK( new PeriodRegionPK( 1, 2 )); so I guess to

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

2009-09-18 Thread Matt Raible
I'm not familiar with NetBeans nor its Maven integration. I'd suggest asking folks on the NetBeans and/or Maven mailing lists. Matt On Fri, Sep 18, 2009 at 6:49 AM, measwel wrote: > > I tried debugging with the follwing options, netbeans attaches the debugger > and says 'user program running' so

Re: [appfuse-user] Production and Test Profiles

2009-09-18 Thread Matt Raible
What do you have so far and what's not working (i.e. what errors are you seeing)? On Fri, Sep 18, 2009 at 5:31 AM, taltun wrote: > > Hi guys, > > I hope some of you can help me, I have spent 1½ day on this and still no > solution. I know there are some thread relating to this issue on this forum

Re: [appfuse-user] Composite primary key problem in appfuse 2.0 (struts2)

2009-09-18 Thread sudhakargupta
Thanks for your reply but how to edit the row using this Composite-id, i am not worked on this please suggest me... Alistair Bush wrote: > >> Hi Matt, >> >> presently i'm working with appfuse 2.0 (struts2) application. i have >> one >> problem how to use composite primary key using hiber

Re: [appfuse-user] Composite primary key problem in appfuse 2.0 (struts2)

2009-09-18 Thread Alistair Bush
> Hi Matt, > > presently i'm working with appfuse 2.0 (struts2) application. i have one > problem how to use composite primary key using hibernate in this > application I would suggest using the @EmeddedId e.g. -- PeriodRegion.java package com.app.model; import java.io.Serializable; import

RE: [appfuse-user] how to call Stored procedures in appfuse 2.0 (MSSQL)

2009-09-18 Thread sudhakargupta
Thanks for your reply i got a solution to execute the stored procedures that is NamedNativeQuery. @SqlResultSetMapping(name = "TestMenus") @NamedNativeQuery (name="TestMenu", query="execute Rep_Menu(:fromDate,:toDate)", hint...@queryhint(name="org.hibernate.callable", value = "true")},

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

2009-09-18 Thread measwel
I tried debugging with the follwing options, netbeans attaches the debugger and says 'user program running' so the attachment works. Nevertheless, the code does not stop on the breakpoints I set inside the Test classes... # set-up remote debug options export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.

[appfuse-user] Composite primary key problem in appfuse 2.0 (struts2)

2009-09-18 Thread sudhakargupta
Hi Matt, presently i'm working with appfuse 2.0 (struts2) application. i have one problem how to use composite primary key using hibernate in this application My model class code like this @IdClass (value=MenuPk.class) @Entity @Table (name="App_Menu") public class Menu extends BaseObject imp

[appfuse-user] Production and Test Profiles

2009-09-18 Thread taltun
Hi guys, I hope some of you can help me, I have spent 1½ day on this and still no solution. I know there are some thread relating to this issue on this forum but none help :( I make use of AppFuse struts2 modular 2.02. What I want how to customize the current poms to do following is following: