[appfuse-user] about circular dependency in models

2006-12-07 Thread Man-Chi Leung
hi, very sorry, I am not sure where I should post this Domain Model Design question , pls advise. I realized that I have a circular dependency in my models each "User" creates a set of "Service" , each Service has a set of "Item", each Item also records who is its User. ie. User 1--->*

Re: [appfuse-user] a simple css question

2006-12-07 Thread Sanjiv Jivan
[..] is the CSS attribute selector. I this case the style applies to form elements that have an "id" attribute declared. On 12/7/06, kkus <[EMAIL PROTECTED]> wrote: In forms.css I found following definition, form li div { display: inline-block; } form[id] li div { display: inline; }

Re: [appfuse-user] Testing transaction isolation?

2006-12-07 Thread Bryan Noll
A real simple way to do it is to write an object that extends Thread, and implement its run method to do the 'concurrent' piece work. Meaning, in a junit test, let's say a method named... testConcurrentStuff one example could be 1. Look up an object with id = x 2. Modify that object

Re: [appfuse-user] Need advice with appfuse running with multi-domain

2006-12-07 Thread Brett Knights
Yes. I use Apache and Tomcat. Apache is configured using name virtual hosts Most domains are configured with a CNAME. Some are A records and have to have individual VHOST sections in httpd.conf I use SpringMVC but the framework shouldn't be a factor. I haven't had any session problems. They typi

Re: [appfuse-user] a simple css question

2006-12-07 Thread Matt Raible
You might try asking this question on the Wufoo Forums - I got the forms.css from their site (with their permission of course). http://wufoo.com/forums/ Matt On 12/7/06, kkus <[EMAIL PROTECTED]> wrote: In forms.css I found following definition, form li div { display: inline-block; } for

[appfuse-user] a simple css question

2006-12-07 Thread kkus
In forms.css I found following definition, form li div { display: inline-block; } form[id] li div { display: inline; } Can anyone tell me the usage of [id] here? Does it reference to a class type definition? Thanks! -- View this message in context: http://www.nabble.com/a-simple-css-q

Re: [appfuse-user] Testing transaction isolation?

2006-12-07 Thread Matt Raible
On 12/7/06, GaryW <[EMAIL PROTECTED]> wrote: Thanks for the reply Matt. I don't know if I worded my question correctly. I don't really want load testing; I'm just looking for a way to simulate 2 conflicting updates to see if I get the expected exception/behavior based on the transaction isolat

Re: [appfuse-user] acegi, permission, authorization and proxy

2006-12-07 Thread Nathan Anderson
It sounds like what you want is a "permission filter". Something that will examine each request and either create a session scoped variable with that users permissions, or update it if it has changed in the DB. Then on your pages you just need to make sure users can only see data/options/etc

Re: [appfuse-user] Problems with HibernateTransactionManager, FlushMode, readOnly when upgrading from Appfuse 1.9.3 to 1.9.4

2006-12-07 Thread majaa majaa
Perhaps that could be for you helpful: PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED,readOnly For example method getUsers -> readOnly w

[appfuse-user] acegi, permission, authorization and proxy

2006-12-07 Thread majaa majaa
Hello I'm newbie at spring technology and appfuse. In my application i have a table user, table groups and table permission that contain id from user, id from groups and value of permission. When a user logs in, i read all permission to session and I check all permission in filters. I don't know w

Re: [appfuse-user] How to set AppFsue as default context in Tomcat?

2006-12-07 Thread kkus
There was a copy/paste error in my last posting. I used path="" which can let me use appfuse as default context but caused problem reloading appfuse twice. Here is good answer, http://www.nabble.com/How-to-set-app-as-default-context-in-Tomcat--tf2776569.html Matt Raible-3 wrote: > > If you s

Re: [appfuse-user] CAS

2006-12-07 Thread Brett Knights
I'm in the process but I've had to put off the integration for a couple of days. From what I've looked at so far it's as straight forward as anything is when dealing with acegi. (Meaning the first look is daunting -- it seems like about a million things to consider -- but so far I've found thei

Re: [appfuse-user] Testing transaction isolation?

2006-12-07 Thread GaryW
Thanks for the reply Matt. I don't know if I worded my question correctly. I don't really want load testing; I'm just looking for a way to simulate 2 conflicting updates to see if I get the expected exception/behavior based on the transaction isolation settings/code. Is this possible using JUni

Re: [appfuse-user] Spring 2.0 AOP Logging Appfuse 1.9.4

2006-12-07 Thread Matt Raible
If you look at the BaseDaoTestCase class, you should see the context files that are loaded. I'd recommend using test/dao/**/applicationContext-resources.xml since it's only loaded when running DAO tests. Matt On 12/7/06, mas <[EMAIL PROTECTED]> wrote: Hello all, I'm trying to create an ao

Re: [appfuse-user] appfuse 1.9.4 webwork migration to struts2 - urlrewrite problem?

2006-12-07 Thread Matt Raible
If you're looking for how we've integrated Struts 2 into AppFuse, I'd checkout the web/struts module from SVN. svn checkout https://appfuse.dev.java.net/svn/appfuse/trunk/web/struts appfuse-struts2 --username guest The password for the guest account is "" (nothing). Matt On 12/7/06, Tim Azz

[appfuse-user] CAS

2006-12-07 Thread benoit . moraillon
Hi appfusers,Have you ever try to integrate cas3.0 with appfuse ?Thanks,Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Tapestry 1.9.4 Error creating pojo

2006-12-07 Thread Matt Raible
You might just try running "ant" instead of running it with those parameters. It should prompt you for values. Matt On 12/7/06, J Lawrence <[EMAIL PROTECTED]> wrote: I am a newbie to JAVA and have downloaded the Tapestry version of appFuse 1.9.4. I run "ant new" and create my project. Run th

Re: [appfuse-user] Testing transaction isolation?

2006-12-07 Thread Matt Raible
I'd recommend using something like WAPT or Grinder. These are the two major load testing tools I'm aware of. I believe TestNG also supports running concurrent tests on separate machines. Matt On 12/7/06, GaryW <[EMAIL PROTECTED]> wrote: Does anyone have any advice on how to set up tests to si

Re: [appfuse-user] How to set AppFsue as default context in Tomcat?

2006-12-07 Thread Matt Raible
If you set the path to "/" or "", it should show up as the default context. Matt On 12/7/06, kkus <[EMAIL PROTECTED]> wrote: I am using Tomcat 5.5.20 and 1.94 Spring MVC of appfuse in XP. I need set appfuse as default context so I will only use url localhost:8080 instead of localhost:8080/app

[appfuse-user] How to set AppFsue as default context in Tomcat?

2006-12-07 Thread kkus
I am using Tomcat 5.5.20 and 1.94 Spring MVC of appfuse in XP. I need set appfuse as default context so I will only use url localhost:8080 instead of localhost:8080/appfuse. The way I found from tomcat community is to set a in of server.xml. But this led to appfuse loaded twice when it started.

Re: [appfuse-user] Need advice with appfuse running with multi-domain

2006-12-07 Thread Brett Knights
I have an app that does this. It uses a filter that sets a configuration object as a request attribute based on the "Host" header. Currently running with 71 domains. Rene Lavoie wrote: Hi, I have an app based on appfuse. What I would like to do is have 2 domains setup in apache pointing to

[appfuse-user] Testing transaction isolation?

2006-12-07 Thread GaryW
Does anyone have any advice on how to set up tests to simulate concurrent updates in order to test transaction isolation? I'm using Spring/Hibernate. Thx, Gary -- View this message in context: http://www.nabble.com/Testing-transaction-isolation--tf2776210s2369.html#a7744788 Sent from the AppFu

[appfuse-user] Tapestry 1.9.4 Error creating pojo

2006-12-07 Thread J Lawrence
I am a newbie to JAVA and have downloaded the Tapestry version of appFuse 1.9.4. I run "ant new" and create my project. Run the test which all pass. Then go through the tutotial Part1 and Part 2 OK. Part 3, I run "ant -Dobject.name=Person -Dappgen.type=pojo" and I get "BUILD FAILED" ".extr

[appfuse-user] Spring 2.0 AOP Logging Appfuse 1.9.4

2006-12-07 Thread maskkkk
Hello all, I'm trying to create an aop:aspect for logging inside DAO Unit Tests. Is this possible? What existing Spring classes should be used? Where is the recommended ApplicationContext-*.xml file to place this aspect in? I am using Appfuse 1.9.4 Thank you, Andrew J. Leer -- Vie

Re: [appfuse-user] appfuse 1.9.4 webwork migration to struts2 - urlrewrite problem?

2006-12-07 Thread Tim Azzopardi
I made the following change to urlrewrite.xml (note the .* in the url pattern) and it seems to fix the problem < !-- Override default validation.js from WebWork --> < rule> < from>^.*/struts/css_xhtml/validation.js$ < to type="forward">/template/css_xhtml/validation.js

[appfuse-user] appfuse 1.9.4 webwork migration to struts2 - urlrewrite problem?

2006-12-07 Thread Tim Azzopardi
In appfuse 1.9.4, urlrewrite.xml redirects the standard webwork validation.js to the appfuse specific one. < !-- Override default validation.js from WebWork --> < rule> < from>^/webwork/css_xhtml/validation.js$ < to type="forward">/template/css_xhtml/validation.js < /ru

Re: [appfuse-user] appfuse 1.9.4 webwork migration to struts2

2006-12-07 Thread Tim Azzopardi
DNewfield wrote: > > > In the action, [gs]etFile{,FileName,ContentType} must change to > [gs]etDocument{,FileName,ContentType} > > I also found that there were a number of dtd's that should be updated, > one of which necessitated a change of the outermost tag in struts.xml > from to . > >

Re: [appfuse-user] appfuse 1.9.4 webwork migration to struts2

2006-12-07 Thread Michael Horwitz
On 12/7/06, Tim Azzopardi <[EMAIL PROTECTED]> wrote: Michael Horwitz wrote: > > Tim, > > I have attached the filter source. A few notes: > > Mike, thanks for posting this, I have decided probably not to go with this, My pleasure. because (a) I worry I won't be able to make it work (quickl

Re: [appfuse-user] appfuse 1.9.4 webwork migration to struts2

2006-12-07 Thread Tim Azzopardi
Michael Horwitz wrote: > > Tim, > > I have attached the filter source. A few notes: > > Mike, thanks for posting this, I have decided probably not to go with this, because (a) I worry I won't be able to make it work (quickly) (b) somebody else is going to have to maintain it. So I'm going to

Re: [appfuse-user] appfuse 1.9.4 webwork migration to struts2

2006-12-07 Thread Tim Azzopardi
Matt Raible-3 wrote: > > On 12/5/06, Tim Azzopardi <[EMAIL PROTECTED]> wrote: > >> File-Upload >> --- >> >> "ant test-all" works all the way up to the File-Upload cannoo web test >> >> When I access the File-Upload page manually I get >> java.lang.IllegalArgumentException: The default()