[appfuse-user] jsf field validation using AJAX

2007-10-22 Thread sudheerp
Hi I am using appfuse-jsf 1.9.4 I would like to implement validation method using AJAX, What I need is whenever the user tab out of a required field, the application should display the error message near the field. I was wondering if anyone has had any success doing this and can

Re: [appfuse-user] How to connect the maven to my local repository?

2007-10-22 Thread Michael Horwitz
Please could you check you are running with the correct version of Java (1.5or above, not confirmed to work with 1.6). Could you also please post a stack trace showing the message? If there is no stack trace, try running mvn with the -X switch as well and paste the relevant section of the trace her

Re: [appfuse-user] integrating appfuse2 maven build with eclipse and debugging

2007-10-22 Thread Michael Horwitz
Looks like you have compile problems with some of your classes? Mike. On 10/20/07, mxb <[EMAIL PROTECTED]> wrote: > > > Thanks. i tried what it says and get an error as follows, any idea. it > works > ok from the command line. > > Listening for transport dt_socket at address: 4000 > [INFO] Scanni

Re: [appfuse-user] AppFuse 2.0 + Hibernate + Struts 2 - Error looking up property "id"

2007-10-22 Thread Michael Horwitz
On 10/21/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have a weird error on a Listing JSP that's had me stumped for several > hours. > > I have a POJO named "Product" and have built associated ProductDao, > ProductDaoHibernate, ProductManager, ProductManagerImpl > and ProductAction cl

[appfuse-user] BackBase & AppFuse integration.

2007-10-22 Thread Irshad Buchh
Hi, Has anyone tried to integrate Backbase JSF Edition 4.0.1 with AppFuse? Any input shall be appreciated. --Irshad. -- View this message in context: http://www.nabble.com/BackBase---AppFuse-integration.-tf4669748s2369.html#a13339651 Sent from the AppFuse - User mailing list archive at Nabble.c

[appfuse-user] Many-to-many collection problem

2007-10-22 Thread syg6
Hello listers. I have posted on this before. I got no replies, either here or over at hibernate.org. So I parked the issue and moved on but now I have to deal with it. Because of my limited Hibernate knowledge, I am not even really sure of what things to try anymore. Can someone shed some light o

Re: [appfuse-user] Using i18n for enums in Struts 2 s:select

2007-10-22 Thread tibi
i can only get the Enum working when i have a setMyCoolEnum(String stringEnum){ if(stringEnum.equals(MyCoolEnum.bla1.toString())){ this.myCoolEnum=MyCoolEnum.bla1; }else{ this.myCoolEnum=MyCoolEnum.bla2; } } this, nice pice of code, will not work setMyCoolEnum(MyCoolEnum myCoolEnum)

Re: [appfuse-user] BackBase & AppFuse integration.

2007-10-22 Thread Ashkan Roshanayi
AFAIK, Backbase components are not free so maybe this is the reason that there is no appfuse integration yet. On 10/22/07, Irshad Buchh <[EMAIL PROTECTED]> wrote: > > > Hi, > Has anyone tried to integrate Backbase JSF Edition 4.0.1 with AppFuse? Any > input shall be appreciated. > > --Irshad. > --

Re: [appfuse-user] Could not open Hibernate Session for transaction; nested exception is

2007-10-22 Thread Julien C.
Sanath a écrit : Hi All, In my appfuse project, When am trying to logging to the system, It gives me this error. "Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin failed:" THIS HAPPENS FORM TIME TO TIME (not always). When

Re: [appfuse-user] Many-to-many collection problem

2007-10-22 Thread Michael Horwitz
Have you assigned a primary key field to your AAndBJoin object? Mike. On 10/22/07, syg6 <[EMAIL PROTECTED]> wrote: > > > Hello listers. > > I have posted on this before. I got no replies, either here or over at > hibernate.org. So I parked the issue and moved on but now I have to deal > with it.

Re: [appfuse-user] Not using model classes from AppFuse

2007-10-22 Thread ghuttemann
We've made this changes on User model class at com.myproject.app.model. As you can see, the only line added is an annotation to support the inheritance. @Entity @Table(name="app_user") @Inheritance(strategy=InheritanceType.JOINED) // Added for supporting of

Re: [appfuse-user] Acegi bypass

2007-10-22 Thread John Kwon
Problem solved. I'm just returning the URL to the PDF file, no controller. Put in a bypass for ROLE_ANONYMOUS for /**/*.pdf That, and I have the Tomcat host address in a properties file now. Never trust getRemoteHost()... it doesn't always return a true address for the Tomcat host.

Re: [appfuse-user] Zero size response when using LDAP based authentication

2007-10-22 Thread Florian Kirchhoff
Nathan, I am using Spring MVC, but the problem appears to be somwhat similar. The blank screen was caused by some exception, I have no idea why I could not find any signes of the exception until I turned off the GZIP filter. Once I did that I could see the error page and find the problem. My issu

Re: [appfuse-user] MYSQL question

2007-10-22 Thread channu
Hi Sudheer, Thanks for the reply, Can you tell me the configuration file name where I need to change the userid and password for getting connecting to MYSQL? Thanks again. channu wrote: > > > BUILD FAILED > C:\struts\RPM\build.xml:740: java.sql.SQLException: Access denied for > user 'root

[appfuse-user] adding new column to user_role

2007-10-22 Thread vpacheco
Hi, I'm using appfuse 1.9.x I want to add a new column to user_role table so that it now has these columns (uid, user_uid, role_uid). Since it's a relation between user and role, I don't know where to add the @hibernate Xdoclet tags for the "uid" column. When I run "ant setup-db", I

Re: [appfuse-user] Which design pattern

2007-10-22 Thread Ron Anderson
There are lots of examples and help on doing this via google. Here is just one example http://www.devx.com/Java/Article/28754/0/page/4 soussou97 wrote: > > Hi Ron; > > You have another example more simple for the criteria Query ? > > regards; > > > Ron Anderson wrote: >> >> Criteria Quer

Re: [appfuse-user] Acegi bypass

2007-10-22 Thread Michael Horwitz
According to the javadoc for HttpServletRequest getRemoteHost() gives you: Returns the fully qualified name of the client that sent the request. By the sounds of it this is not what you were looking for? Hence it worked on local host, but not a remote machine I think the method you are looki

Re: [appfuse-user] Many-to-many collection problem

2007-10-22 Thread syg6
Yep. I left it out for brevity. Besides, I don't think Hibernate would be able to do the inserts if I hadn't defined a PK, no? Anyway, here it is: @Column(name="idAAndBJoin") @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() Man, I got quite excited for a minute there. Bu

Re: [appfuse-user] Many-to-many collection problem

2007-10-22 Thread Michael Horwitz
Are you passing the id in the call from your jsp? If you are not, then Hibernate will think these are new entities and save rather than update them. Mike On 10/22/07, syg6 <[EMAIL PROTECTED]> wrote: > > > Yep. I left it out for brevity. Besides, I don't think Hibernate would be > able to do the i

Re: [appfuse-user] AppFuse 2.0 + Hibernate + Struts 2 - Error looking up property "id" - SOLVED

2007-10-22 Thread Rob Hills
Hi Michael, On 22 Oct 2007 at 9:19, Michael Horwitz wrote: > On 10/21/07, Rob Hills <[EMAIL PROTECTED]> wrote: <..> > > > > I believe this should be scope="request"/> > > In your version you are setting the string litral 'products' into the > variable products, hence the error message.

Re: [appfuse-user] Zero size response when using LDAP based authentication

2007-10-22 Thread Nathan Anderson
Wow.. that's some good detective work ;) Glad you found the problem and reported it back here. Thanks, Nathan - Original Message - From: "Florian Kirchhoff" <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Monday, October 22, 2007 7:21:17 AM (GMT-0800) America/Los_Angeles Subjec

[appfuse-user] FW: Hibernate issues after upgrading to appfuse 2.0

2007-10-22 Thread Aled Rhys Jones
Any ideas regarding the below guys? Thanks Aled From: Aled Rhys Jones [mailto:[EMAIL PROTECTED] Sent: 20 October 2007 16:31 To: 'users@appfuse.dev.java.net' Subject: Hibernate issues after upgrading to appfuse 2.0 Hi all I've just updated from a m4 of appfuse 2.0 to the release ve

[appfuse-user] any plans on moving away from HibernateSession to Hibernate EntityManager (JPA)

2007-10-22 Thread dev dev
Has anyone done this yet for Appfuse 2.0? Thanks dev

[appfuse-user] Appfuse DisplayTag Boolean Checkbox example not found

2007-10-22 Thread John Kwon
There used to be an example of this at demo.raibledesigns... where can I find the source for this? I'm using Spring and trying to get the value of a checkbox populated in a displaytag column...

[appfuse-user] How to use the authz tag

2007-10-22 Thread Bob Fleischman
Does anyone know where I can find documentation on the authz tag. I've search all over the web with no luck, I'm especially curious about the 'operation' tag as used in the footer.jsp What else can this tag do? Thanks Bob -- View this message in context: http://www.nabble.com/How-to-use-th

[appfuse-user] How to override org.appfuse.service.UserSecurityAdvice?

2007-10-22 Thread Florian Kirchhoff
Hi, I generated a Spring MVC based application using appfuse:gen. Now I am trying to change the Authentication scheme from DB to LDAP based. I would like to keep the source of Roles from the DB (this works after some other issue with http://www.nabble.com/forum/ViewPost.jtp?post=13300084&framed=

[appfuse-user] jetty logs

2007-10-22 Thread mxb
Hi, Does anyone know where the jetty logs are kept. I am trying to find the information that is written to the DOS window when doing a jetty:run-war. Thanks. -- View this message in context: http://www.nabble.com/jetty-logs-tf4673546s2369.html#a13352191 Sent from the AppFuse - User mailing l

Re: [appfuse-user] How to use the authz tag

2007-10-22 Thread Florian Kirchhoff
Bob, one way is to look at the source code of the http://www.koders.com/java/fid68A801CDE33C938B9861C3FF79AA77036C789369.aspx?s=cdef%3aAuthenticationTag AuthenticationTag class . It doesn't do much as described in the Acegi doc: http://www.acegisecurity.org/guide/springsecurity.html#authentica

[appfuse-user] secured web services

2007-10-22 Thread George.Francis
Once I've secured my Webservice by editing WEB-INF/security.xml, how do I test it? I've been using SoapUI up until now but since the services are now secure this fails (using WSS). -- View this message in context: http://www.nabble.com/secured-web-services-tf4673549s2369.html#a13352215 Sent fr

Re: [appfuse-user] FW: Hibernate issues after upgrading to appfuse 2.0

2007-10-22 Thread Michael Horwitz
On 10/22/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote: > > Any ideas regarding the below guys? > > > > Thanks > > Aled > > > > *From:* Aled Rhys Jones [mailto:[EMAIL PROTECTED] > *Sent:* 20 October 2007 16:31 > *To:* 'users@appfuse.dev.java.net' > *Subject:* Hibernate issues after upgrading to ap

Re: [appfuse-user] any plans on moving away from HibernateSession to Hibernate EntityManager (JPA)

2007-10-22 Thread Michael Horwitz
AppFuse 2.0 has full support for JPA. See the following tutorial for details as to how to set up your project to use JPA: http://www.appfuse.org/display/APF/Using+JPA Mike. On 10/22/07, dev dev <[EMAIL PROTECTED]> wrote: > > Has anyone done this yet for Appfuse 2.0? > > Thanks > dev >

Re: [appfuse-user] How to override org.appfuse.service.UserSecurityAdvice?

2007-10-22 Thread Michael Horwitz
You can use mvn appfuse:full-source to populate your project with the AppFuse source, which will allow you to change the security advice at will (please make a backup/put your project in SCM first :-) Mike On 10/22/07, Florian Kirchhoff <[EMAIL PROTECTED]> wrote: > > > Hi, > > I generated a Sprin

[appfuse-user] Method-level web service security for Users

2007-10-22 Thread George.Francis
I noticed that the methodSecurityInterceptor bean in security.xml has : org.appfuse.service.UserManager.getUsers=ROLE_ADMIN org.appfuse.service.UserManager.removeUser=ROLE_ADMIN Which would seem to apply role-based security at the webse

Re: [appfuse-user] Many-to-many collection problem

2007-10-22 Thread syg6
Heyy ... Good idea. It never even occurred to me because in all of my other Hibernate relationships, Hibernate takes care of this for you. But since I am using my own Object, AAndBJoin, I'll have to pass in its id as well. I'll give it a try at work tomorrow, thanks a mil! Bob Mike Hor

RE: [appfuse-user] FW: Hibernate issues after upgrading to appfuse 2.0

2007-10-22 Thread Aled Rhys Jones
Thanks Mike! Another issue that seems to have appeared in the upgrade is that I get database warnings for change to the database before testing: [myapp] WARN [main] JDBCExceptionReporter.logWarnings(49) | 'TYPE=storage_e ngine' is deprecated; use 'ENGINE=storage_engine' instead [myapp] WARN

Re: [appfuse-user] Acegi bypass

2007-10-22 Thread Lee Meador
There used to be a bug in the PDF plugin for IE. To get around it you had to do something like set the content length right at the start. You might want to search the web for that. It would also, as I remember, make the browser ask for the PDF twice and ignore the first time. -- Lee Meador On 10/

Re: [appfuse-user] Hibernate issues after upgrading to appfuse 2.0

2007-10-22 Thread Matt Raible
You should be able to fix the database warnings by using a MySQL5InnoDBDialect. Matt On 10/22/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote: > Thanks Mike! > > > > Another issue that seems to have appeared in the upgrade is that I get > database warnings for change to the database before testing

Re: [appfuse-user] any plans on moving away from HibernateSession to Hibernate EntityManager (JPA)

2007-10-22 Thread dev dev
if we switch to JPA, we should be able to use @PrePersist, @PreUpdate events annotation right? The events annotations are not supported in Hibernate persistence unless we switch to Hibernate Entity Manager. Thanks dev On 10/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: > > AppFuse 2.0 has ful

Re: [appfuse-user] any plans on moving away from HibernateSession to Hibernate EntityManager (JPA)

2007-10-22 Thread Matt Raible
There's only one way to find out. ;) Matt On 10/22/07, dev dev <[EMAIL PROTECTED]> wrote: > if we switch to JPA, we should be able to use @PrePersist, @PreUpdate events > annotation right? The events annotations are not supported in Hibernate > persistence unless we switch to Hibernate Entity Ma

[appfuse-user] why do we need "version" property for the User model?

2007-10-22 Thread dev dev
Why do we need to define "version" property in the User model object if MySQL already supports optimistic locking (by default) using multiversioning technique? Thanks dev

[appfuse-user] Using collections and multi-selection in Struts 2

2007-10-22 Thread Stephen de Vries
Hi, I would like to display and update a checkboxlist (or any multi- select tag) using a List in Struts 2, but can't find complete documentation or an example on how I should go about it. From reading bits and pieces of the fragmented docs and sparse wiki, I have the following so far:

Re: [appfuse-user] Using collections and multi-selection in Struts 2

2007-10-22 Thread Matt Raible
I wish I could help, but unfortunately I don't have any examples to share. Hopefully someone else does. If you don't get an answer here, I'd try asking on the Struts User list - Nabble provides a nice interface for it. Matt On 10/22/07, Stephen de Vries <[EMAIL PROTECTED]> wrote: > > Hi, > > I wo

Re: [appfuse-user] why do we need "version" property for the User model?

2007-10-22 Thread Matt Raible
Because we don't expect all users to use MySQL. Also, if you are two open the edit profile form in two different browsers, and click Save - one seconds after the other. In normal applications, the last one in wins. We want to prevent that - therefore you're likely see an error in the 2nd one becaus

Re: [appfuse-user] Appfuse DisplayTag Boolean Checkbox example not found

2007-10-22 Thread Matt Raible
I've haven't had time to re-assemble the demo. You can download the files at: http://static.appfuse.org/downloads/displaytag-demos.tar.gz Matt On 10/22/07, John Kwon <[EMAIL PROTECTED]> wrote: > There used to be an example of this at demo.raibledesigns... where can I > find the source for this?

Re: [appfuse-user] Method-level web service security for Users

2007-10-22 Thread Matt Raible
The first option seems like the easiest solution to me. Matt On 10/22/07, George.Francis <[EMAIL PROTECTED]> wrote: > > I noticed that the methodSecurityInterceptor bean in security.xml has : > > org.appfuse.service.UserManager.getUsers=ROLE_ADMIN >

Re: [appfuse-user] jetty logs

2007-10-22 Thread Matt Raible
You should be able to pipe it to a file if you're running Cygwin (I'm not sure if this works on Windows). mvn jetty:run-war > jetty.log You can also get the best of both (console and file) with the "tee" command. mvn jetty:run-war | jetty.log Matt On 10/22/07, mxb <[EMAIL PROTECTED]> wrote: >

Re: [appfuse-user] Method-level web service security for Users

2007-10-22 Thread George.Francis
That's good - can you give me a bit of direction on how to define new Roles? mraible wrote: > > The first option seems like the easiest solution to me. > > Matt > > On 10/22/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> I noticed that the methodSecurityInterceptor bean in security.xml h

Re: [appfuse-user] Method-level web service security for Users

2007-10-22 Thread Matt Raible
You can enter them in sample-data.xml for testing and default-data.xml for production. After adding them to the database, you should be able to add them in security.xml. Matt On 10/22/07, George.Francis <[EMAIL PROTECTED]> wrote: > > That's good - can you give me a bit of direction on how to defi

[appfuse-user] XFire client over SSL

2007-10-22 Thread fadhli
I'm developing an XFire web service client. The web service is over an SSL layer and the server uses a self-signed certificate. The documentation (http://xfire.codehaus.org/HTTP+Transport) is suggest to use a third party library that I don't think my client will trust (I have a fussy client). Have

[appfuse-user] Timepicker on AppFuse form - current recommendation?

2007-10-22 Thread Rob Hills
Hi All, Using AppFuse 2.0 + Hibernate + Struts2 I have a pojo that has two fields that store time only values (ie time of day). In my POJO I have specified my column like this: @Temporal(TemporalType.TIME) @Column(name="start_time", nullable=false) etc. appfuse:gen did its usual fine job of

Re: [appfuse-user] Timepicker on AppFuse form - current recommendation?

2007-10-22 Thread Matt Raible
I'd try the YUI Plugin: http://cwiki.apache.org/S2PLUGINS/yui-plugin.html Seems like it might be a bit more lightweight than Dojo. Matt On 10/22/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi All, > > Using AppFuse 2.0 + Hibernate + Struts2 > > I have a pojo that has two fields that store time o

Re: [appfuse-user] Timepicker on AppFuse form - current recommendation?

2007-10-22 Thread Rob Hills
Hi Matt, On 22 Oct 2007 at 23:39, Matt Raible wrote: > I'd try the YUI Plugin: > > http://cwiki.apache.org/S2PLUGINS/yui-plugin.html > > Seems like it might be a bit more lightweight than Dojo. >From what I've read, that wouldn't be hard ;-) I looked over the yui-plugin >docco and examples b