Re: [appfuse-user] How to create demo war file

2009-04-06 Thread Peter Schneider-Manzell
Certainly not the strongest protection, but a fast one: Add a time cheking code snippet to the StartUpListener or add a custom spring ApplicationListener listenening for the ContextRefreshedEvent. ( http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#context-functionality-even

Re: [appfuse-user] Multiple database connection in One host

2009-03-25 Thread Peter Schneider-Manzell
I never used it, but maybe Hibernate Shards is the solution to your problem: http://www.hibernate.org/414.html Bye, Peter 2009/3/24 sudhakargupta > > Thanks for your reply if you got the solution on this type of multiple > database connections in one application please help me. > > Sudhakar

Re: [appfuse-user] Failed to read auto-increment value

2008-10-06 Thread Peter Schneider-Manzell
Hi Mark! The negative IDs are not created by the DB, these are default values inserted via dbunit during the maven test phase. See sample-data.xml for these entries Bye, Peter 2008/10/6 md10024 <[EMAIL PROTECTED]> > > > Hi, > I am getting started with Spring MVC Basic on a WinXP development pl

Re: [appfuse-user] Adding appfuse in 99transactions

2008-10-02 Thread Peter Schneider-Manzell
I could take a look at the german I18N files. My username for 99translations is "petersm" Bye, Peter 2008/10/2 Marcello Teodori <[EMAIL PROTECTED]> > > Hi Matt, if I should submit any corrections for the italian translation, > where's the place to go now, a JIRA issue with the new ApplicationR

Re: [appfuse-user] full-source?

2008-10-01 Thread Peter Schneider-Manzell
Here's the documentation: http://static.appfuse.org/plugins/appfuse-maven-plugin/full-source-mojo.html Bye, Peter 2008/10/1 Bjornen <[EMAIL PROTECTED]> > > Im having trouble finding the documentation. What is full-source and why > should I use it? > -- > View this message in context: > http://

Re: [appfuse-user] how to show roles in userList.jsp

2008-09-30 Thread Peter Schneider-Manzell
Please read the documentation of displaytag 1. You need to implement DisplaytagColumnDecorator, not TableDecorator (See my last email) 2. You need to tell displaytag to use this decorator (see http://displaytag.sourceforge.net/11/tut_decorators.html, part "Column decorator") -> You need to add the

Re: [appfuse-user] Logging in user as part of a test case: struts 2 modular

2008-09-30 Thread Peter Schneider-Manzell
If web-side-test means canoo web test, i would suggest to copy the login.xml and modify the username / password. Then include the newly created xml in the web-tests.xml. Some links: web-tesst.xml in trunk: https://appfuse.dev.java.net/svn/appfuse/trunk/web/struts/src/test/resources/web-tests.xml l

Re: [appfuse-user] how to show roles in userList.jsp

2008-09-30 Thread Peter Schneider-Manzell
stand where i can write my decorator. > should I write a new class to extends some default decorators? I actually > tried to write but I even couldnt find any useful and extensible classes. > What are the basic steps??? Thanks > > Regards > > > > > > Peter Schneid

Re: [appfuse-user] how to show roles in userList.jsp

2008-09-29 Thread Peter Schneider-Manzell
I would suggest to add the "roles" attribute to the display:table in userList.jsp. Add a custom decorator on the roles column to tell displaytag how to renderer a collection of roles (See http://displaytag.sourceforge.net/11/tut_decorators.html for more details) Bye, Peter 2008/9/29 overseastars

Re: [appfuse-user] Re[appfuse-user] stricting access to link based on role of the user.........

2008-09-26 Thread Peter Schneider-Manzell
As far as I know, appfuse 2.0.2 has switched from acegi to spring security (spring security = acegi) 2008/9/26 Greenhorn2005 <[EMAIL PROTECTED]> > > Hello all, > > After reading all the old queries and articles , I still find problem. I > am > using Appfuse 2.0.2 with Struts 2 integration. I hav

Re: [appfuse-user] Question regarding User role

2008-09-26 Thread Peter Schneider-Manzell
Spring security documentation is your friend: http://static.springframework.org/spring-security/site/reference/html/authorization-common.html#authorization-taglibs Bye, Peter 2008/9/26 Greenhorn2005 <[EMAIL PROTECTED]> > > > > hello all, > > some info here. I am using Struts 2 , appfus

Re: [appfuse-user] Connection pool fails

2008-09-19 Thread Peter Schneider-Manzell
I would check to transaction settings, as the DB gets slower and slower when doing long running transactions (due to undo logs getting bigger and bigger) As far as I experienced, it's not the best idea to import a lot of data in 1 transaction. Try to devide the import in smaller steps (e.g. 1-1000

Re: [appfuse-user] build failure after run "mvn appfuse:gen",please help me!

2008-09-10 Thread Peter Schneider-Manzell
Please send the stactrace, so we can possibly identify your issue... 2008/9/10 dengqf <[EMAIL PROTECTED]> > > I have a problem about appfuse2! > I create a project with command > "mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes > -DarchetypeArtifactId=appfuse-basic-spring > -Dremot

Re: [appfuse-user] Invoke WebServices

2008-07-24 Thread Peter Schneider-Manzell
Hi! See http://appfuse.org/display/APF/Web+Services for more Details. Bye, Peter 2008/7/23 Mauri Ferreyra <[EMAIL PROTECTED]>: > Hi, I want invoke a Webservices (eg: PersonManager) from other application. > How I do this? > > >

Re: [appfuse-user] PersonDaoTest.java

2008-05-08 Thread Peter Schneider-Manzell
Hi! mvn test -Dtest is correct (See http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#test) Bye, Peter 2008/5/8 Richard G. Reyes <[EMAIL PROTECTED]>: > Hi All, > > > > I am trying to follow this… > > > > http://appfuse.org/display/APF/Using+Hibernate > > > > Shouldn't … > >

Re: [appfuse-user] Acces Denied for page containing Frameset

2008-05-07 Thread Peter Schneider-Manzell
Hi Attila, Maybe its because "/cal/*.html*" doesn't match "frame.xhtml" (take a look at the "xhtml" ending) Bye, Peter 2008/5/6 Attila <[EMAIL PROTECTED]>: > > I have the line /cal/*.html*=... in security.xml. The frameset page > (frame.xhmtl) is located in "cal" folder. And all other frame pa

Re: [appfuse-user] Beginning AppFuse, help needed!

2008-05-05 Thread Peter Schneider-Manzell
Hi Marcelo! > Firt thing I noted was the amount of errors and warnings... Add the Classpath variable "M2_REPO": In Eclipse: -> Window -> Preferences ->Java -> Buildpath-> Classpath variable-> New... Name: "M2_REPO", Folder: "/.m2/repository", e.g. something like "c:\documents and settings\marcelo

Re: [appfuse-user] Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory

2008-04-14 Thread Peter Schneider-Manzell
Hi! I've extended my pom.xml with the following part: ... maven-clean-plugin src/main/webapp/WEB-INF lib classes f

Re: [appfuse-user] Storing User Preferences Pattern

2008-04-08 Thread Peter Schneider-Manzell
have been with .asp pages. Yes, I did .asp dev once. I needed the > money. I am ashamed. > -D > > On Apr 8, 2008, at 9:02 AM, Peter Schneider-Manzell wrote: > > Hi! > > I made something similar in one of my last web apps: > > - Store the last 10 pages the user visit

Re: [appfuse-user] Storing User Preferences Pattern

2008-04-08 Thread Peter Schneider-Manzell
Hi! I made something similar in one of my last web apps: - Store the last 10 pages the user visited in a list in the Session (By using your interceptor). Make sure that only your max amount of entries are stored in the list (By replacing the least relevant entry). - Implement a HttpSessionListene

Re: [appfuse-user] Strange problem with german umlauts in testcases

2008-03-26 Thread Peter Schneider-Manzell
Hi Kay! Maybe you should check the encoding of your sources. Make sure all text files (e.g. xml / java) are encoded with utf8. Bye, Peter 2008/3/26, Kai Moritz <[EMAIL PROTECTED]>: > > Hi Folks, > > I have this really strange problem with german umlauts in my testcases. > > On my development sy

Re: [appfuse-user] Multiple displaytag in page

2008-03-05 Thread Peter Schneider-Manzell
And make sure to set the "uid" attribute in the display:table tag. The value is required for displaytag to make a difference between more than 1 displaytag table on a single JSP page (Paging etc...) See http://displaytag.sourceforge.net/11/displaytag/tagreference.html#tablefor more details. Bye,

Re: [appfuse-user] DisplayTag question....any reply?

2008-02-26 Thread Peter Schneider-Manzell
Hi! By searching "dispalytag" in google, you find the following link: displaytag.sourceforge.net/ How to add different decorators to a column: http://displaytag.sourceforge.net/11/tut_decorators.html You can also use normal JSP, e.g. How to configure the paginator: http://displaytag

Re: [appfuse-user] How to create war file without version number in Appfuse 2.0

2008-02-24 Thread Peter Schneider-Manzell
Hi! Maybe these links can help you: http://maven.apache.org/plugins/maven-war-plugin/usage.html in combination with http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html Maybe the parameter "warName" is the parameter you are looking for** Bye, Peter 2008/2/24, Uditha <[EMAIL PROTECTE

Re: [appfuse-user] WYSWYG

2008-02-04 Thread Peter Schneider-Manzell
Maybe the FCKEditor is the type of editor you are looking for: http://www.fckeditor.net/ This project also provides java integration files (e.g. taglibs to ad the editor to your JSP pages) Bye, Peter 2008/1/29, Leo Barrientos C. <[EMAIL PROTECTED]>: > > I need a wyswyg editor for a jsp. Any id

Re: [appfuse-user] Yikes Error Page

2008-01-14 Thread Peter Schneider-Manzell
If you want to receive an email every time an error occurs, i recommend to use the smtp appender of log4j: Bye, Peter 2008/1/11, Ding, Qin <[EMAIL PROTECTED]>: > > Mike: thank you. I'll take a look at th

Re: [appfuse-user] org.springframework.mail.SimpleMailMessage not work with UTF-8?

2007-12-18 Thread Peter Schneider-Manzell
Maybe this forum entry can help you: http://forum.springframework.org/showthread.php?t=22155 Bye, Peter 2007/12/17, BruceLee <[EMAIL PROTECTED]>: > > > Dear Team, > > We want to send Asian character email with UTF-8 encoding. But receiver > gets > all ?? > Our env: appfuse 1.9.4 with WebWor

Re: [appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-17 Thread Peter Schneider-Manzell
Yes, you need a expectation for every call on a mock executed during a test. I would recommend to use EasyMock instead of JMock. It's very easy to use, e.g. creating a mock: GameDAO gameDAO = EasyMock.createStricktMock(GameDAO.class); If you call a method e.g. public Game getGame(Long id) on gam

Re: [appfuse-user] Integrating Captcha

2007-11-07 Thread Peter Schneider-Manzell
Maybe these links can help you: http://jcaptcha.sourceforge.net/multiproject/jcaptcha-module-acegi/index.html http://weblog.morosystems.cz/spring/Spring-Acegi-JCaptcha-integration Bye, Peter 2007/11/7, Flavio Froes <[EMAIL PROTECTED]>: > > heheehehe... > > You are right. Acegi handles the login

Re: [appfuse-user] shell script in java

2007-10-30 Thread Peter Schneider-Manzell
Do you get error messages or exceptions? 2007/10/30, jithesh <[EMAIL PROTECTED]>: > > > Hi, > >I am working with java in linux environment. I have to execute a shell > script through my java class. > > I used runtime object to execute the script but its not executing. > my code is > > Runtime

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread Peter Schneider-Manzell
You need to change your test values. Take a look at src\test\resources\login.xml You need to modify the line to match the title of your new page Bye, Peter 2007/10/15, ttux <[EMAIL PROTECTED]>: > > > Following Mike advice, here is what I did: > > I put in index.jsp: instead of the > mainMe

Re: [appfuse-user] Simple example of bean association

2007-10-12 Thread Peter Schneider-Manzell
Hi! Maybe you need to change to Bye, Peter 2007/10/12, George.Francis <[EMAIL PROTECTED]>: > > > Hello, > I have just moved on from the tutorials and I'm having trouble creating an > association in my Spring MVC WebApp between a 'Customer' bean and an > 'Application' bean. In my datamodel an

Re: [appfuse-user] Unable to edit CSS in Eclipse while 'mvn jetty:run' is active

2007-10-11 Thread Peter Schneider-Manzell
Take a look at http://appfuse.org/display/APF/FAQ#FAQ-jettyrunlocked Bye, Peter 2007/10/11, Gert Vanthienen <[EMAIL PROTECTED]>: > > > L.S., > > > I'm using Eclipse to develop my web application (modular JSF project), but > I > really like 'mvn jetty:run' for testing purposes. There is only one

Re: [appfuse-user] Question about the appfuse:label and form

2007-10-10 Thread Peter Schneider-Manzell
Simply add the attribute ... readonly="true" ... (or maybe disabled="true") For more options see http://static.springframework.org/spring/docs/2.0.x/reference/spring-form.tld.html#spring-form.tld.input Bye, Peter 2007/10/10, John Kwon <[EMAIL PROTECTED]>: > > In your tutorial you have: > >

Re: [appfuse-user] why must be online to run the appfuse-light

2007-09-26 Thread Peter Schneider-Manzell
The app server tries to validate the validation.xml with a DTD defined in the given xml. If the server cannot download this DTD, the webapp will not start up. Remove the DTD entry, and you should be able to startup your server even if you are offline. (Maybe you should check the other validation r

Re: [appfuse-user] hbm2ddl and dbunit on mvn run:jetty

2007-09-26 Thread Peter Schneider-Manzell
Normally, dbunit is triggered by the maven target "test-compile" in AppFuse Try "mvn jetty:run -Dmaven.test.skip=true" to skip this target and the connected db-load Bye, Peter 2007/9/26, p7k <[EMAIL PROTECTED]>: > > > it was difficult to find a definitive answer through other posts... > > how c

Re: [appfuse-user] Accessing another appfuse project

2007-09-26 Thread Peter Schneider-Manzell
Simply add a dependency to your maven descriptor (pom.xml). e.g. pom.xml of project1: . groupIdOfProject2 artifactIdOfProject2 versionOfProject2 . Make sure that you have installed project2 before compiling project1 Bye, Peter 2007/9/26, Ömer Başar <[EMAIL PROTE

Re: [appfuse-user] Acegi

2007-09-26 Thread Peter Schneider-Manzell
This is already integrated in appfuse. Simply itnegrate the link to the password protected page, and if a user clicks on this link, appfuse / spring / acegi will make sure that the user logs in first. If you use the struts-menu, simply remove the ...roles="" part from the menu entry (file menu

Re: [appfuse-user] Testing File Upload

2007-09-26 Thread Peter Schneider-Manzell
Here's a test I use to verify a csv upload: public void testCSVUpload() { log.debug("testing csv upload..."); MockHttpServletRequest request = new MockHttpServletRequest("POST","/importData.html"); List fileItems = new ArrayList(); //Create the test upload (Type, content-type, filename, content o

AW: [appfuse-user] Asynchronous task

2007-08-16 Thread Peter Schneider-Manzell
Hi! Take a look at the springframework docu: http://www.springframework.org/docs/reference/scheduling.html Bye, Peter -Ursprüngliche Nachricht- Von: benoit moraillon [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. August 2007 11:00 An: users@appfuse.dev.java.net Betreff: [appfuse-

AW: [appfuse-user] Add new function after login

2007-08-13 Thread Peter Schneider-Manzell
Or take a look at this code sample from our app: public class LoginListener implements ApplicationListener { protected Log log = LogFactoryImpl.getLog(getClass()); private UserManager userManager; /** * @param userManager the userManager to set */ public void setUserManager(UserMan

AW: [appfuse-user] null null in active user fullname

2007-08-10 Thread Peter Schneider-Manzell
Fullname is generated out of the attributes user.firstname+" "+ user.lastname So if the user "admin" has no firstname / lastname set, the getFullname() method will return "null null". Bye, Peter -Ursprüngliche Nachricht- Von: acao [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 10. Augus

AW: [appfuse-user] AW: AW: Can I use form:select with data bound using referenceDate()

2007-08-06 Thread Peter Schneider-Manzell
It is possible to write a list of objects to the request in order to use this values to populate a drop down. Here a short example code: SpringController: @Override protected Map referenceData(HttpServletRequest request) throws Exception { Map model =

AW: [appfuse-user] Can I use form:select with data bound using referenceDate()

2007-08-06 Thread Peter Schneider-Manzell
Hi Bob! I think the problem is the part ... path="inspectors"... It seems that your command object of the type "PackageInspection" has no property "inspectors" (or no method "getInspectors()") There are many ohter possibilities how to generate an "select" tag with the new Spring Taglib. For more

AW: [appfuse-user] AW: Can I use form:select with data bound using referenceDate()

2007-08-06 Thread Peter Schneider-Manzell
It is possible to use a collection of objects generated in the referenceData method, I don't think that this the problem in your code. I think that you have a wrong value in your "path" attribute: If your command object has a setter called "setInspector(String inspector)", your form tag would look

AW: [appfuse-user] newbie : Listing of collection-key column name

2007-08-06 Thread Peter Schneider-Manzell
Hi Sudheer, Take a look at the Hibernate / Xdoclet documentation: http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED] any-to-one__0__1_ You need a many to one tag in your Atuhor class. The join is automatically created by hibernate. So if you want to display the country an author has

AW: [appfuse-user] using hibernate annotation on jdk1.4?

2007-03-03 Thread Peter Schneider-Manzell
Hi! It's not possible to use annotations in sdk <1.5 out of the box. Maybe this project can help: http://backport175.codehaus.org/ Bye, Peter _ Von: j2ee dodo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 2. März 2007 21:49 An: users@appfuse.dev.java.net Betreff: [appfuse-user] us

AW: [appfuse-user] RE: Does Hibernate still require equals() and hashCode()?

2007-02-23 Thread Peter Schneider-Manzell
One thing to mention: Be carefull with the generated equals() / hashCode() or toString() methods. If you have bidirectional mappings (e.g. user->roles and role->users) you can run into a stackoverflow caused by infinit calls of e.g. the hashCode() methods. (user.hashCode() calls role.hashCode()

AW: [appfuse-user] value of type [$Proxy24]?

2007-02-23 Thread Peter Schneider-Manzell
Hi Dean! Normally this exception occurs if you don't wrap your manager with an appropriate interface. The $Proxy object is the Proxy generated by Spring and wrapped around your manager to execute AOP related stuff like transaction management etc. It's normally hidden behind the interface... Bye

AW: [appfuse-user] Style problem with german version of AppFuse

2007-02-12 Thread Peter Schneider-Manzell
oblem with german version of AppFuse Peter - can you enter an issue for this in JIRA so we can track it in the release notes? HYPERLINK "http://issues.appfuse.org/browse/APF"http://issues.appfuse.org/browse/APF Thanks, Matt On 2/9/07, Peter Schneider-Manzell mailto:[EMAIL PROTECT

[appfuse-user] Wrong german translation

2007-02-09 Thread Peter Schneider-Manzell
Hi! Theres a wrong translation in the german version of Appfuse 2.0-m3 and 1.9.4 In "ApplicationResources_de.properties" "menu.admin.reload=Optionen für erneutes Laden" Should be changed to "menu.admin.reload=Optionen neu laden" Added Issue http://issues.appfuse.org/browse/APF-638 Bye, Pet

[appfuse-user] Style problem with german version of AppFuse

2007-02-09 Thread Peter Schneider-Manzell
Hi! There seems to be a small style problem with the german version of AppFuse in the navbar (Text for key "menu.user" si too long). See the image attached. Problem can be reproduced with all demos (Only the Struts demo looks a little bit different due to the other CSS file) and german as default

AW: [appfuse-user] Change to localhost in POM ignored?

2007-01-26 Thread Peter Schneider-Manzell
My friend had the same problem, the bug fix mentioned in Jira (filter = true) does not help... He renamed the jdbc.properties and used this file to open up the datasource... Bye, Peter -Ursprüngliche Nachricht- Von: Matt Raible [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 26. Januar 2

[appfuse-user] Acegi ACL tutorial: File download fixed

2007-01-24 Thread Peter Schneider-Manzell
Hi all! For everyone, who tried to download the acegi acl tutorial files: I fixed the download at the tutorial page (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAcegiACL) Bye, Peter - To unsubscribe, e-mail: [EMAIL PROT

AW: [appfuse-user] Uploading image

2007-01-24 Thread Peter Schneider-Manzell
If you want to resize an image, take a look at this taglib: http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/intro.html Bye, Peter -Ursprüngliche Nachricht- Von: Jonathan Tse [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. Januar 2007 11:11 An: users@appfuse.dev.java.net Betref

AW: [appfuse-user] ant test-dao error

2007-01-05 Thread Peter Schneider-Manzell
d of the file. looks like this: i did this according the turotial... greetz bernd Original-Nachricht Datum: Fri, 5 Jan 2007 15:39:01 +0100 Von: "Peter Schneider-Manzell" <[EMAIL PROTECTED]> An: users@appfuse.dev

AW: [appfuse-user] ant test-dao error

2007-01-05 Thread Peter Schneider-Manzell
It seems that you dont have defined a bean named "cN_AccountInformationDao" in your applicationContext-hibernate.xml Bye, Peter -Ursprüngliche Nachricht- Von: cosmonate cosmo [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. Januar 2007 15:35 An: users@appfuse.dev.java.net Betreff: [appfu

AW: [appfuse-user] Error doing ACL example

2006-12-22 Thread Peter Schneider-Manzell
Hi! I am responsible for the Acegi ACL tutorial, but unfortunately our own server (which contained the source code example) crashed and we are still trying to recover the files from our backups. Bye, Peter -Ursprüngliche Nachricht- Von: Richard Oss [mailto:[EMAIL PROTECTED] Gesendet: