Re: [appfuse-user] Ajaxanywhere and GzipFilter issue

2007-07-31 Thread fadhli
Hi Matt, I updated ehcache to version 1.3.0. The good news is I'm not experiencing any errors like before but ajaxanywhere is still not working with gzip filter on. The message from the browser is as follow: AjaxAnywhere error: context-type in not text/xml in : [text/html; charset=UTF-8] Actuall

Re: [appfuse-user] Error: Appfuse:gen and embedded Address object

2007-07-31 Thread Matt Raible
It's not currently supported in 2.0 RC1 (as far as I remember). However, it is ignored in the latest 2.0 RC1 snapshot. If someone wants to contribute support, we'd welcome the enhancement. It should just be a matter of modifying the FreeMarker templates. Matt On 7/31/07, fadhli <[EMAIL PROTECTED]

Re: [appfuse-user] Error: Appfuse:gen and embedded Address object

2007-07-31 Thread fadhli
If I'm not mistaken a while back I did the same thing and Matt told me that Appfuse:gen can't generate embedabble objects. I don't know if it's gonna be supported in Appfuse 2.0 final. On 8/1/07, Bob Fleischman <[EMAIL PROTECTED]> wrote: > > > I tried to create an object called Restaurant. Amount

[appfuse-user] Error: Appfuse:gen and embedded Address object

2007-07-31 Thread Bob Fleischman
I tried to create an object called Restaurant. Amount other fields it contained private Address address = new Address(); I copied the address code from the User.java class. However when I tried to generate code with the maven appfuse plugin I received the following error [INFO] Error while pro

Re: [appfuse-user] Upgrading spring 2.0.6 to use hibernate3.2.4.sp1

2007-07-31 Thread fadhli
Matt, ignore the previous post. It turns out if you have a full-source project, whenever you upgrade your jar files, make sure to delete the old jar file in your src/main/webapp/WEB-INF/lib. Thanks for you time. Regards On 8/1/07, fadhli <[EMAIL PROTECTED]> wrote: > > Hi Matt, I'd upgrade my hib

Re: [appfuse-user] Upgrading spring 2.0.6 to use hibernate3.2.4.sp1

2007-07-31 Thread fadhli
Hi Matt, I'd upgrade my hibernate dependency in my pom.xml. However, I noticed when I execute integration-test, I looked into the WEB-INF/lib and found out that there are two versions of hibernate jars in it. The same goes with ehcache and spring jar files when I upgraded my dependency in pom.xml.

Re: [appfuse-user] t:popup tag does not work properly in AppFuse 1.9.4

2007-07-31 Thread Matt Raible
Then it's probably one of the CSS files that's messing things up. Does it happen with all themes? If so, pick your favorite one and start removing/commenting-out @imports in theme.css until you figure out which one is the problem - then drill down and try to figure out which rule is the problem. De

RE: [appfuse-user] Cannot display validation error message with WebWork

2007-07-31 Thread Ding, Qin
I use Appfuse 1.9.4/JSF/DB2/Websphere 6.x. Appfuse deployed to websphere 6 successfully but if I use IE browser to display the application, it is good. If I use firefox, the entire page displayed is actually unreadable garbage. I then deploy the app to tomcat, both IE and FireFox display the pag

[appfuse-user] Cannot display validation error message with WebWork

2007-07-31 Thread DreamBig
I use 1.9 WebWork option. I want to validate username and confirmed password in register.jsp, just same as AppFuse's Signup page. The validators seems to work. But the warning message above the register form cannot be displayed. I expect the messages like "Warning Username is a required field. ...

Re: [appfuse-user] t:popup tag does not work properly in AppFuse 1.9.4

2007-07-31 Thread Irshad Buchh
Yes, we tried disabling the appfuse css by using ?theme=fictitious in the url and the popup works ok. BTW the non-appfuse application ( where in t:popup works as well) is based on .jsp view not .xhtml as in AppFuse. --Irshad. mraible wrote: > > Do to have the same XHTML doctype in you

[appfuse-user] preventing user from invalid password entry

2007-07-31 Thread jithesh
hi, i am using appfuse 1.9x. In my application i need to prevent user from entering the invalid password( a min of 3 times). if he entered more than that his account should be blocked. How could i do that. i found some tips from this forum, but i was not able to do that. How should i write

Re: [appfuse-user] t:popup tag does not work properly in AppFuse 1.9.4

2007-07-31 Thread Matt Raible
Do to have the same XHTML doctype in your non-appfuse application? Does it work if you disable/remove all of AppFuse's CSS? Matt On 7/31/07, Irshad Buchh <[EMAIL PROTECTED]> wrote: > > Thanks, but I tried all what you have just mentioned but the popup text does > not change the position. It work

Re: [appfuse-user] t:popup tag does not work properly in AppFuse 1.9.4

2007-07-31 Thread Irshad Buchh
Thanks, but I tried all what you have just mentioned but the popup text does not change the position. It works ok though with no-appfuse based application. --Irshad. mraible wrote: > > You might want to use CSS to do some sort of positioning (top, left or > margin-top, margin-left). I've seen s

RE: [appfuse-user] Appofuse on ubuntu

2007-07-31 Thread Jon Loken
Hi, I was in the process of clearing out my emails when I came across this thread. I remember having such (or similar problem) on a Linux machine. The problem was solved by altering BaseFormController.java such that method getConfiguration() looks like: public Map getConfiguration() {

Re: [appfuse-user] t:popup tag does not work properly in AppFuse 1.9.4

2007-07-31 Thread Matt Raible
You might want to use CSS to do some sort of positioning (top, left or margin-top, margin-left). I've seen similar behavior with other components (i.e. the popup calendar) and I've had to add custom CSS to accommodate. https://issues.apache.org/jira/browse/TOMAHAWK-205 Matt On 7/31/07, Irshad Bu

Re: [appfuse-user] Refershing User in the SecurityContextHolder

2007-07-31 Thread Matt Raible
Do you have a userCache configured in security.xml? If so, you might try removing it. Matt On 7/31/07, sionsmith <[EMAIL PROTECTED]> wrote: > > Hi Appfuse Users, > > i'm using the acegi security framework to manage the user sessions within my > project, the authentication & user details are retur

Re: [appfuse-user] Ajaxanywhere and GzipFilter issue

2007-07-31 Thread Matt Raible
This is a known issue with M5. If you manually add a dependency on ehcache to your pom.xml and set the version to 1.3.0 - it should fix this problem. You can also comment out the filter in your web.xml like you've done. Matt On 7/31/07, fadhli <[EMAIL PROTECTED]> wrote: > Hi Matt, > > The error m

Re: [appfuse-user] Upgrading spring 2.0.6 to use hibernate3.2.4.sp1

2007-07-31 Thread Matt Raible
You should just need to upgrade your Hibernate dependency by adding an entry for it into your pom.xml. Matt On 7/31/07, fadhli <[EMAIL PROTECTED]> wrote: > Hello, > > There are some issues on the hibernate 3.2.1.ga used by spring especially > for the composite key mappings. So my question is how

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

2007-07-31 Thread Matt Raible
To get the username and check roles, you should be able to use the following methods from HttpServletRequest: request.getRemoteUser() request.isUserInRole(String roleName) Matt On 7/31/07, tibi <[EMAIL PROTECTED]> wrote: > not sure if this helps you but i have a myBaseAction class as follows: >

[appfuse-user] t:popup tag does not work properly in AppFuse 1.9.4

2007-07-31 Thread Irshad Buchh
Hello, We have an AppFuse 1.9.4 JSF application and the tag does not place the popup at the desired position within the jsf page. The same tag works ok in a non-appfuse application. Here is the css for popup class: .popup { background-color:rgb(255,255,255); color: #00; border: 1

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread syg6
I chose the abstract class route, seems to be working. Cheers for the assistance! Bob Michael Horwitz wrote: > > On 7/31/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Hmmm ... another quick (I hope!) question: >> >> In my onSaveOrUpdate() or onMerge() methods I need to set the values for >> tw

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread Michael Horwitz
On 7/31/07, syg6 <[EMAIL PROTECTED]> wrote: > > > Hmmm ... another quick (I hope!) question: > > In my onSaveOrUpdate() or onMerge() methods I need to set the values for > two > fields - the date of the modification and the user who made the > modification. The trouble is that not all of my persist

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread syg6
Hmmm ... another quick (I hope!) question: In my onSaveOrUpdate() or onMerge() methods I need to set the values for two fields - the date of the modification and the user who made the modification. The trouble is that not all of my persisted objects have these fields. So my question - is my onl

[appfuse-user] Refershing User in the SecurityContextHolder

2007-07-31 Thread sionsmith
Hi Appfuse Users, i'm using the acegi security framework to manage the user sessions within my project, the authentication & user details are returned from a web service - not the standard DAO's, however it acts the same. The problem i have is the user in the SecurityContextHolder context is no

[appfuse-user] GenericDao / JPA overriding PersitenceContext annotation

2007-07-31 Thread jtaphie
Hello, Currently I'm developing an application that needs to access more than one database. It has objects persisted in two databases. I'm using Spring + JPA + Struts. I've added to the applicationContext.xml a new datasource, new persistence unit manager and a new entity manager factory. My i

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread syg6
That did the trick! Many thanks! Bob Michael Horwitz wrote: > > On 7/31/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Hello, >> >> I copied into WEB-INF and then deleted the applicationContext-dao.xml >> that >> comes in resources (I 'exploded' Appfuse source into my project) and >> added >> th

[appfuse-user] Upgrading spring 2.0.6 to use hibernate3.2.4.sp1

2007-07-31 Thread fadhli
Hello, There are some issues on the hibernate 3.2.1.ga used by spring especially for the composite key mappings. So my question is how do I update spring to use the latest hibernate library? FYI, I've already updated my spring to version 2.0.6 -- /fadhli

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

2007-07-31 Thread tibi
not sure if this helps you but i have a myBaseAction class as follows: package nl.topticketline.topnet.util; import org.acegisecurity.Authentication; import org.acegisecurity.context.SecurityContextHolder; import org.acegisecurity.userdetails.UserDetails; import org.appfuse.model.Role; import o

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread Michael Horwitz
On 7/31/07, syg6 <[EMAIL PROTECTED]> wrote: > > > Hello, > > I copied into WEB-INF and then deleted the applicationContext-dao.xml that > comes in resources (I 'exploded' Appfuse source into my project) and added > the following mapping: > > > > > > > > > class="com.mycompany.mya

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

2007-07-31 Thread Michael Horwitz
On 7/31/07, Pavel Katsev <[EMAIL PROTECTED]> wrote: > 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 Proba

[appfuse-user] EventListener only firing on User object?

2007-07-31 Thread syg6
Hello, I copied into WEB-INF and then deleted the applicationContext-dao.xml that comes in resources (I 'exploded' Appfuse source into my project) and added the following mapping: The class, SaveOrUpdateListener, extends the Hibernate DefaultSaveOrUpdateEventListener,

Re: [appfuse-user] Ajaxanywhere and GzipFilter issue

2007-07-31 Thread Matt Raible
What's the error you're seeing? You can always compress the response using apache or tomcat. Matt On 7/30/07, fadhli <[EMAIL PROTECTED]> wrote: > 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 G