[appfuse-user] keep a default textfile in Browse field

2007-06-18 Thread jithesh
Hi, I am using appfuse 1.9. I have a problem with file upload. When a user click on the browse button it should display on the pdf files in that particular directory. How can i make it possible? Is there any way to display a default text in (eg:*.pdf) the browse field while loading the page?

Re: [appfuse-user] keep a default textfile in Browse field

2007-06-18 Thread Trent
On Mon, 18 Jun 2007 00:15:05 -0700 (PDT), jithesh wrote >I am using appfuse 1.9. I have a problem with file upload. When a > user click on the browse button it should display on the pdf files > in that particular directory. How can i make it possible? Is there > any way to display a default

[appfuse-user] Appgen Question

2007-06-18 Thread LukeS
Something happened with my generation, I was adding in a few tables from an existing DB (which is the same one I used to create the project, hopefully this is not a problem). I am now getting this error. I have not modified anything by hand. Any ideas why this may have happned? org.springframewor

Re: [appfuse-user] Appgen Question

2007-06-18 Thread LukeS
I tried deleting the application and rebuilding it. I am now getting this error: ERROR [Thread-1] DispatcherServlet.initServletBean(229) | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionController' defined in Servle

RE: [appfuse-user] m5 struts problem with tomcat but not jetty

2007-06-18 Thread Travers Snyman
Removing the decorator tags from 404.jsp does not make a difference. Repeating using mvn appfuse:gen works. Only difference, I can see with my hand generated application is I am not using the generic dao and service dao implementations - the applicationContext entries are different. I must be doing

Re: [appfuse-user] hibernate pagination question

2007-06-18 Thread Sanjiv Jivan
That seems incorrect. There is a pattern where one gets an extra record only to determine if we're on the last page of data but then return pageSize records to the user, but this doesn't seems to be the case in the wiki article. See http://www.jroller.com/page/sjivan?entry=hibernate_and_oracle_pag

Re: [appfuse-user] hibernate pagination question

2007-06-18 Thread j2ee dodo
Cool Sanjiv. Thanks. The forum shud have more ppl like u. ;) Sam, - Original Message - From: Sanjiv Jivan To: [email protected] Sent: Monday, June 18, 2007 10:58 PM Subject: Re: [appfuse-user] hibernate pagination question That seems incorrect. There is a pattern

Re: [appfuse-user] hibernate pagination question

2007-06-18 Thread j2ee dodo
Hi gang, Just to make myself useful. The workaround for the common problem of using the same Criteria object to get both paged data and total results count of all pages through projection for pagination in Hibernate 3.2 seemed to be http://forum.hibernate.org/viewtopic.php?t=956564&highlight

Re: [appfuse-user] keep a default textfile in Browse field

2007-06-18 Thread Matt Raible
I believe the following will do what you're looking for. I haven't tried implementing it myself, but it looks pretty cool: http://ajaxian.com/archives/fancyupload-with-mootools Matt On 6/18/07, Trent <[EMAIL PROTECTED]> wrote: On Mon, 18 Jun 2007 00:15:05 -0700 (PDT), jithesh wrote >I am u

Re: [appfuse-user] How do I add another web project using modular Spring MVC?

2007-06-18 Thread Matt Raible
Do you need to re-use anything from your current web project? If not, just create a new directory, add it to the root pom.xml and then copy web/pom.xml to your new project and change it accordingly. You could also copy/paste the entire web directory to start your new project with. Matt On 6/17/

Re: [appfuse-user] Setting Entity defaults with @PrePersist

2007-06-18 Thread Franco
Sorry to reopen this for discussion. This is very important to the migration of my application. It seems like @prepersist works just fine in a JPA project I took my entity POJO Catalog to a separate JPA Hibernate enabled project with these dependencies org.hibernate hibernate

Re: [appfuse-user] AppFuse 1.9.4 problem with spring 2.0

2007-06-18 Thread Matt Raible
I believe you can solve this by downloading Xerces and installing its jars in $CATALINA_HOME/common/endorsed. Matt On 6/17/07, lim xu <[EMAIL PROTECTED]> wrote: Hey all, At work, our production server use jdk 1.4/Websphere 5.1, to make our life easier, on local machine, we are developing appfu

Re: [appfuse-user] Appgen Question

2007-06-18 Thread LukeS
Ok, if I take out the transactionController I am back to this validation error. Do I need to add a validation required for my controller? This doesn't make sense to me but adding validation to my pojo fixed a similar exception. /** * @spring.validator type="required" */ ERROR [Thread-1] Disp

Re: [appfuse-user] Appgen Question

2007-06-18 Thread Matt Raible
Yes, unfortunately, you need at least one validation rule for your POJO - or you need to remove the validator from the Controller's bean definition. As far as why transactionManager failed - there's already a bean with that name and it's used for transactions. If you rename it to txManager (or so

Re: [appfuse-user] hibernate pagination question

2007-06-18 Thread Sanjiv Jivan
Using Projections.rowCount() does not get the count in the same query, it issues a separate count query. http://raibledesigns.com/wiki/Wiki.jsp?page=HibernatePagination On 6/18/07, j2ee dodo <[EMAIL PROTECTED]> wrote: Hi gang, Just to make myself useful. The workaround for the common proble

[appfuse-user] urlrewrite and forwarding within filter

2007-06-18 Thread SkipWalker
I'm using appfuse 1.9.3 with webwork. I've replaced the 3.0-beta version of urlrewrite with version 3.0.4. I'm running in tomcat 5.5.23 My first issue is that I cannot get urlrewrite filter to forward /webwork/css_xhtml/validation.js to the modified version in /template/css_xhtml/validation.js.

Re: [appfuse-user] urlrewrite and forwarding within filter

2007-06-18 Thread Matt Raible
It seems to work on the demo site with Struts 2: http://demo.appfuse.org/appfuse-struts/struts/css_xhtml/validation.js The primary reason for modifying the file was there was JavaScript errors with the tr/td -> ul/li changes. http://forums.opensymphony.com/thread.jspa?messageID=63938 You shoul

Re: [appfuse-user] Issue with junit.jar

2007-06-18 Thread Babbu
I got the same error on Windows using Eclipse 3.2.2. Copying junit.jar to the ANT_HOME\lib alone did not help as I kept getting that error. So, this is what fixed my problem. Go to windows>preferences>Ant>runtime>Classpath>Ant Home Entries and add junit.jar here. That solved my problem. Hope thi

Re: [appfuse-user] How to change login to use email addr instead of username

2007-06-18 Thread Tomas Barrios
Matt, (First of all Im using Appfuse 1.8.3) I can't go through the easiest way because I am using a generated id as username in order to keep privacy of users. So I have to keep the email attribute in it's own column. To login in the user I changed the ApplicationContextSecurity.xml to ask in the

[appfuse-user] Restricting links to admins

2007-06-18 Thread jeremiah.lopez
I'm currently editing the mainMenu.xhtml page to include some links for my application, but the problem I'm having is that some of the links only need to be visible and accessible by users with the 'ROLE_ADMIN' role. I know how to do this in the menu-config.xml file, but that only controls the li

Re: [appfuse-user] How to change login to use email addr instead of username

2007-06-18 Thread Matt Raible
The reason you're likely getting logged out is because of the session-timeout in web.xml. I'd suggest boosting it from 10 minutes to 30 or 60 minutes. If one is not specified, the default is 30 minutes. Matt On 6/18/07, Tomas Barrios <[EMAIL PROTECTED]> wrote: Matt, (First of all Im using App

Re: [appfuse-user] Restricting links to admins

2007-06-18 Thread Matt Raible
You might try the acegijsf tags that are included in AppFuse: http://cagataycivici.wordpress.com/2006/01/19/acegi_jsf_components_hit_the/ I believe they work, but some people have reported problems with them on this list. If you get them to work, please let us know. Matt On 6/18/07, jeremiah.l

Re: [appfuse-user] how to access managed beans

2007-06-18 Thread Matt Raible
You'll need to load more than just applicationContext.xml. If you look at any of the Base*TestCase classes, you should get a good idea of what files you'll need. Here's what you should need at a bare minimum: applicationContext-resources.xml applicationContext-dao.xml applicationContext-service.x

Re: [appfuse-user] Restricting links to admins

2007-06-18 Thread jeremiah.lopez
Any instruction as to how to configure the filter? Also, you said that this jar is included in the AppFuse bundle, so I'm assuming I won't need to download this. Thanks, Jeremiah mraible wrote: > > You might try the acegijsf tags that are included in AppFuse: > > http://cagataycivici.wordpre

Re: [appfuse-user] Restricting links to admins

2007-06-18 Thread Matt Raible
What version of AppFuse are you using? On 6/18/07, jeremiah.lopez <[EMAIL PROTECTED]> wrote: Any instruction as to how to configure the filter? Also, you said that this jar is included in the AppFuse bundle, so I'm assuming I won't need to download this. Thanks, Jeremiah mraible wrote: > >

Re: [appfuse-user] Restricting links to admins

2007-06-18 Thread jeremiah.lopez
2.0-M5 mraible wrote: > > What version of AppFuse are you using? > > On 6/18/07, jeremiah.lopez <[EMAIL PROTECTED]> wrote: >> >> Any instruction as to how to configure the filter? Also, you said that >> this >> jar is included in the AppFuse bundle, so I'm assuming I won't need to >> download

Re: [appfuse-user] Restricting links to admins

2007-06-18 Thread Matt Raible
Here's how to add Acegi JSF support to your project: 1. Add the acegijsf dependency to your pom.xml (I've uploaded this to AppFuse's repository): net.sf.jsfcomp acegijsf ${acegijsf.version} 2. Add the property to your pom.xml: 1.1.2 3. Create a

[appfuse-user] Single Sign On & LDAP Authentication

2007-06-18 Thread Doug Pham
Hi All, I am working on a web application where the administrator have the option of choosing which authentication method they would like. I like to keep the current one as is but would like to add SSO and LDAP. Our institution us currently using SSO where where we have an apache module th

Re: [appfuse-user] Single Sign On & LDAP Authenticatio

2007-06-18 Thread Matt Raible
You mention CAS - are you using it for your SSO solution? If so, Acegi supports integrating with CAS. http://acegisecurity.org/docbook/acegi.html#cas Matt On 6/18/07, Doug Pham <[EMAIL PROTECTED]> wrote: Hi All, I am working on a web application where the administrator have the option of c

Re: [appfuse-user] Restricting links to admins

2007-06-18 Thread jeremiah.lopez
Whoa, Matt. That worked great and was exactly what I was looking for. Thanks! mraible wrote: > > Here's how to add Acegi JSF support to your project: > > 1. Add the acegijsf dependency to your pom.xml (I've uploaded this to > AppFuse's repository): > > > net.sf.jsfcomp

Re: [appfuse-user] Single Sign On & LDAP Authenticatio

2007-06-18 Thread Doug Pham
I have just found out that we are not using the JA-SIG CAS but our system works similar to it. I'll try to see if it works or not :-) Thanks Matt, Doug Matt Raible <[EMAIL PROTECTED]> wrote: You mention CAS - are you using it for your SSO solution? If so, Acegi supports integrating with CAS.

Re: [appfuse-user] How to change login to use email addr instead of username

2007-06-18 Thread Tomas Barrios
Matt, my session-timeout is set to 10 minutes, but I noticed that after doing this changes (using email to login instead of username) after 2 minutes of inactivity the session ends... ¿? Tomas mraible wrote: > > The reason you're likely getting logged out is because of the > session-timeout i

Re: [appfuse-user] How to change login to use email addr instead of username

2007-06-18 Thread Matt Raible
Unfortunately, I don't know what could be causing this problem. Matt On 6/18/07, Tomas Barrios <[EMAIL PROTECTED]> wrote: Matt, my session-timeout is set to 10 minutes, but I noticed that after doing this changes (using email to login instead of username) after 2 minutes of inactivity the sess

[appfuse-user] appfuse m5 error by add a new user.

2007-06-18 Thread zhulx
My software environment: os ubuntu 7.0.4 linux core 2.6.20-16-generic local zh jdk Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing) Maven version: 2.0.6 database:postgreSQL 8.2 mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -Dre

Re: [appfuse-user] appfuse m5 error by add a new user.

2007-06-18 Thread Matt Raible
The following error message seems to explain everything: [m5] WARN [btpool0-5] UserAction.save(157) | User '朱立勋' already exists! Matt On 6/18/07, zhulx <[EMAIL PROTECTED]> wrote: My software environment: os ubuntu 7.0.4 linux core 2.6.20-16-generic local zh jdk Java HotSpot(TM) Client VM

[appfuse-user] Save certain fields on struts 2.x

2007-06-18 Thread yogeshk
Framework: Struts 2.x/Hibernate/Spring Problem: In one of my form while is edit mode I just want to save 2 or 3 fields whereas on form I've more 30/40 fields. When I use Save method on model it saves all fields. Is it possible for me to ignore certain fields while saving an object? -- View thi

Re: [appfuse-user] Save certain fields on struts 2.x

2007-06-18 Thread Matt Raible
You could provide getters and setters for the properties you want to edit on your action, then manually set them on your domain object before saving. Matt On 6/18/07, yogeshk <[EMAIL PROTECTED]> wrote: Framework: Struts 2.x/Hibernate/Spring Problem: In one of my form while is edit mode I just

[appfuse-user] Installation of Subversion + Trac instructions on Fedora Core 7

2007-06-18 Thread dev dev
I'm planning to install Subversion and Trac on Fedora and new to this so just wondering if anyone has written a easy to follow instructions on how to do this. Thanks much. dev

Re: [appfuse-user] Installation of Subversion + Trac instructions on Fedora Core 7

2007-06-18 Thread Trent
On Mon, 18 Jun 2007 22:47:43 -0700, dev dev wrote > I'm planning to install Subversion and Trac on Fedora and new to > this so just wondering if anyone has written a easy to follow > instructions on how to do this. Thanks much. I imagine it would be much like this: sudo yum -y update sudo yum i