Re: [appfuse-user] appfuse and SOAP

2007-07-10 Thread Martin Homik
Hi, I am new to AppFuse myself, so I apologize for an not too detailed answer. Matt has pointed to a possible solution in former thread which is here: http://www.nabble.com/Appfuse-2.0-%2B-Xfire-tf3141583s2369.html#a8711233 The Xfire homepage at Codehaus is really a good start. At least it was

[appfuse-user] appfuse:gen|install creates faulty test classes for POJOs with fields of type Long?

2007-07-12 Thread Martin Homik
I have a POJO whose fields are of type Long. The generated action test class instantiates the POJO class and sets its fields to some initial random values (in onSetUpBeforeTransaction and testSave. It looks like this: link2Cat.setLinkId(4.878530667730682E8L); Although compilation is succ

Re: [appfuse-user] appfuse:gen error appfuse2M5

2007-07-13 Thread Martin Homik
But then, the web site is not up to date. http://www.appfuse.org/display/APF/Maven+Plugins It explicitly states the usage of appfuse:gen. When I use that plugin in AppFuse 2.0M5, I get no error message, but I also cannot detect any change. However, I always apply it before appfuse:install. M

[appfuse-user] RE: Hibernate mapping

2007-07-27 Thread Martin Homik
Hi Fan, hi Srini, I am just following this thread out of curiosity. I am still a newbie to AppFuse. My question is, what was actually the problem here? Was there a missing JPA annotation in class "Club"? By the way, for the understanding of JPA annotations,I highly recommend the Java 5 EE tutoria

Re: [appfuse-user] Turning Off hbm2ddl

2007-07-30 Thread Martin Homik
As a newbie, I also vote for turning on by default. Once you get familiar with AppFuse and/or application frameworks, people will figure out how to turn off the hibernate plugin either be checking the mailing list or by having a look into the FAQ. The latter is one of my first sources I check once

[appfuse-user] jMock in Tutorial not self-explaining

2007-09-19 Thread Martin Homik
I do understand that mocks are useful to imitate a certain behaviour of compononts which are sort of resource-demanding. But, I don't get the value of using jMock for testing Managers as it is used in the tutorial. Let me pick a test method: public void testFindByLastName() { log.deb

Re: [appfuse-user] jMock in Tutorial not self-explaining

2007-09-20 Thread Martin Homik
o be concerned about the backend - they can tell it what they > want it to return. > > Spring AutoMock (http://sourceforge.net/projects/automock) could be > useful as well - allowing you to mock out the backend when running in > a servlet container. At least, I think that's the

Re: [appfuse-user] 答复: Two qu estions about PersonActionTest

2007-10-05 Thread Martin Homik
Let me also add the comment that the test will cause an error if one of the POJO fields is annotated with "unique = true". That's because onSetUpBeforeTransaction() is invoked before each test and hence populates the database with as many additional objects as tests exist. According to my databa

Re: [appfuse-user] 答复: Two qu estions about PersonActionTest

2007-10-05 Thread Martin Homik
log.debug("Deleting provisory object: " + id); Person person = new Person(); person.setId(id); action.setPerson(Person); action.delete(); id=null; } } Nice short quest. :-) Martin Homik wrote: >

[appfuse-user] Cascading: I need your confirmation

2007-10-09 Thread Martin Homik
The question in my thread is: can only the owning side of a relation invoke propgation of PERSIST, MERGE, REFRESH? I have a self-referencing class "Competency". Each competency can have child competencies and it can be itself a child competency of some other parent competency. A "composes" field

[appfuse-user] Entity Listener

2007-10-09 Thread Martin Homik
Can anyone tell how to use Entity Listeners in AppFuse? I ran into the same problems as already mentioned in http://www.nabble.com/forum/ViewPost.jtp?post=11144501&framed=y&skin=2369 this thread . Unfortunately, nobody posted any solution and I'd like to pick up that topic. In my case I want to

Re: [appfuse-user] Entity Listener

2007-10-12 Thread Martin Homik
s? > > Greg > > > Martin Homik wrote: >> >> Can anyone tell how to use Entity Listeners in AppFuse? I ran into the >> same problems as already mentioned in >> http://www.nabble.com/forum/ViewPost.jtp?post=11144501&framed=y&skin=2369 >> this thread . Unf

Re: [appfuse-user] Entity Listener

2007-10-15 Thread Martin Homik
his works with JPA? > > Thanks! > > Greg > > > Martin Homik wrote: >> >> Can anyone tell how to use Entity Listeners in AppFuse? I ran into the >> same problems as already mentioned in >> http://www.nabble.com/forum/ViewPost.jtp?post=11144501&framed=y&a

[appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Martin Homik
Yesterday, I tried to run my AppFuse application with PostgreSQL instead of MySQL. I ran into a CLEAN_INSERT problem which was a result of an earlier mistake. In MySQL I used a longtext type for a description field. This type corresponds to a column JPA annotation having a length attribute with th

Re: [appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Martin Homik
literature afterwards). :-D See: http://www.postgresql.org/docs/8.2/static/datatype-character.html mraible wrote: > > > On Dec 4, 2007, at 1:02 AM, Martin Homik wrote: > >> >> Yesterday, I tried to run my AppFuse application with PostgreSQL >> instead of >>

Re: [appfuse-user] Switching database: MySQL --> PostgreSQL

2007-12-04 Thread Martin Homik
I should have known, there is simple solution. :-) MH Rob Hills wrote: > > Hi Martin, > > Martin Homik wrote: >> Yesterday, I tried to run my AppFuse application with PostgreSQL instead >> of >> MySQL. I ran into a CLEAN_INSERT problem which was a result of an

[appfuse-user] Split up hibernate.cfg.xml?

2008-01-30 Thread Martin Homik
Is it possible to extract elements from the hibernate.cfg.xml to an external file and add some import/include element to include the snippet. In my case, I am automatically generating a hibernate.cfg.xml but I do not want it to replace the original file. Hence, I'd like to name it something like

Re: [appfuse-user] UnsatisfiedDependencyException

2008-03-18 Thread Martin Homik
I ran into the same problem this morning. Yesterday evening, I have been working on a project without any problems except for the usual problems when you code new snippets. Today morning, I run the usual tests and all my DAO tests failed. I followed the proposed instructions in http://issues.a

Re: [appfuse-user] UnsatisfiedDependencyException

2008-03-18 Thread Martin Homik
sts passed, too, the action tests failed. 4. I changed the testResource directory back to src/main/webapp and the action tests pass. Somehow strange ... Martin Homik wrote: > > I ran into the same problem this morning. Yesterday evening, I have been > working on a project withou

[appfuse-user] Re: ATB/RE: [appfuse-user] UnsatisfiedDependencyException

2008-03-20 Thread Martin Homik
gt; > The same happens with all my dao tests, be they customised or generic. > > > > Any ideas? > > > > Regards > > Aled > > > > From: Aled Jones [mailto:[EMAIL PROTECTED] > Sent: 18 March 2008 16:37 > To: users@appfuse.dev.java.

Re: [appfuse-user] UnsatisfiedDependencyException -Solved-

2008-03-25 Thread Martin Homik
This does not work for me. If you clean your project and run the tests, it'll fail. Maybe, I have just found another not so elegant solution. I copied the testResource part and renamed the copy's directory to: src/main/webapp/WEB-INF. Hence, I ended up with: src/test

[appfuse-user] Re: ATB/RE: [appfuse-user] UnsatisfiedDependencyException -Solved-

2008-03-26 Thread Martin Homik
an > Definition(DefaultListableBeanFactory.java:391) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocal > BeanDefinition(AbstractBeanFactory.java:999) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra > ctBeanFactory.java:233) > at >

[appfuse-user] Re: Re: ATB/RE: [appfuse-user] UnsatisfiedDependencyException

2008-04-04 Thread Martin Homik
Hi Matt, Note, I have suggested a work-around http://www.nabble.com/forum/ViewPost.jtp?post=16300428&framed=y&skin=2369 here . Anyway, I ran the following mvn commands on your attached 'myProject'. 1. $ mvn -version Maven version: 2.0.7 Java version: 1.6.0_01 OS name: "windows xp" version: "5.

[appfuse-user] Struts2, pre-polution; prepare() in Action class

2008-04-11 Thread Martin Homik
Can anyone explain the mechanism of form pre-population. Since I am a newbie, my experience bases rather on a try-and-error approach. Related to my request is also my confusion about differences between generated code by appfuse:gen and the suggested approach in the online tutorial. I came acros

[appfuse-user] SQLGrammarException when running jetty without prior tests

2008-04-18 Thread Martin Homik
Today I came across a somehow strange behavior. When I run my with 'mvn jetty:run-war' everything is fine. But, when I run it with tests off '-Dmaven.test.skip=true'to shorten start-up, I get a Data Access Failure with the message "could not execute query; nested exception is org.hibernate.exc

Re: [appfuse-user] learn struts2 whit appfuse

2008-04-22 Thread Martin Homik
The AppFuse tutorial is a great start but soon you'll want to do more and then you rely on online resources. The struts2 homepage is a start, but personally, I do not like as it is very unstructured. However, you should check the examples, which are to some extent quite useful. You'll get more exe

Re: [appfuse-user] FCKEditor Integration with AppFuse 2

2008-04-22 Thread Martin Homik
Daniel.Rodriguez wrote: > > Follow Matt's advice. However be extremely carefull with the FCKeditor > JSP taglib. It requieres you to create a context named "FCKeditor" in > your container and point the JSP tags there. The exact info is in > http://wiki.fckeditor.net/Developer's_Guide/Integr

[appfuse-user] How to add html values in sample data

2008-04-22 Thread Martin Homik
I am writing a simple blog application. Each entry has a title and a body. The body may contain html elements such as "". However, if you add the following value into your sample data, the html elements are cut off and hence not inserted into the database: London is a great city. The soluti

[appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
Problem: * I have a "Group" POJO which keeps a list of its "members" (ManyToMany relation). * The GroupAction class stores a list of my current groups and it has a group field for accessing information of a single group. In principle, the stucture is very similar to the PersonActi

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
they? Martin mraible wrote: > > You should be able to get members.size() if you use OGNL and a > tag. You can also use JSTL functions and the "length" > function. > > http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/JSTL8.html > > Matt > > On Mon,

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
th jetty:run-war. Strange. Martin mraible wrote: > > Have you tried uncommenting the OpenSessionInViewFilter in your web.xml? > > Matt > > On Mon, Apr 28, 2008 at 12:11 PM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> I actually tried to solve the p

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
I see your point. On the long run, your advice will pay off, I guess. Thanks a lot for your explanations! Martin alexworden wrote: > > On Mon, Apr 28, 2008 at 11:11 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> I actually tried to solve the problem by using OG

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-29 Thread Martin Homik
omething in src/main/resources/ApplicationResources.properties? Thanks to everybody for useful explanations in this thread! Martin mraible wrote: > > On Mon, Apr 28, 2008 at 1:20 PM, Martin Homik <[EMAIL PROTECTED]> wrote: >> Another question: What's wrong with fmt:message when used with

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-30 Thread Martin Homik
tated somewhere in the online tutorial. Why not extend the appfuse plugin by something that performs all three steps? Martin mraible wrote: > > You could try deleting > src/main/webapp/WEB-INF/classes/ApplicationResources*. > > Matt > > On Tue, Apr 29, 2008 at 1:45 AM, Mart

[appfuse-user] AppFuse 2.0.2; Jetty 6.1.9 still accesses org/acegisecurity

2008-05-14 Thread Martin Homik
I followed the AppFuse upgrade instructions and ended up with the following exception. Never mind about my project path name which has a "ACEGI" substring. I merely wonder why Jetty looks for org/acegisecurity/providers/ProviderManager. I have replaced all "org.acegigisecury" by "org.springframew

Re: [appfuse-user] AppFuse 2.0.2; Jetty 6.1.9 still accesses org/acegisecurity

2008-05-15 Thread Martin Homik
on't have any files in > WEB-INF/classes and WEB-INF/lib. > > Matt > > On Wed, May 14, 2008 at 8:45 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> I followed the AppFuse upgrade instructions and ended up with the >> following >> exceptio

Re: [appfuse-user] AppFuse 2.0.2; Jetty 6.1.9 still accesses org/acegisecurity

2008-05-15 Thread Martin Homik
I managed somehow to run my project, Things that I made differently: * as I run war:inplace I had a few files that needed an update. --> checked out a fresh project and made a war:inplace to get all the up to date files * replaced my security.xml by the new one * in footer.jsp: replaced by . *

Re: [appfuse-user] AppFuse 2.0.2; Jetty 6.1.9 still accesses org/acegisecurity

2008-05-16 Thread Martin Homik
ow whether they have any affect, but they could. If I don't manage to fix the login problem, I'll give up the update and go on with 2.0.1. Cheers! Martin Homik wrote: > > I managed somehow to run my project, Things that I made differently: > * as I run war:inplace I had a f

Re: [appfuse-user] AppFuse 2.0.2; Jetty 6.1.9 still accesses org/acegisecurity

2008-05-16 Thread Martin Homik
a passwordEncoder bean properly defined in > applicationContext-service.xml. You could change your sample-data.xml > to use plain text passwords to see if password encryption is turned > on. > > Matt > > On Fri, May 16, 2008 at 3:46 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >>

Re: [appfuse-user] AppFuse 2.0.2; Jetty 6.1.9 still accesses org/acegisecurity

2008-05-16 Thread Martin Homik
I managed to merge my project with a fresh Basic/Struts2/AppFuse-2.0.2 checkout. Jetty is up and running. No login problems. I have a few issues with save tests at service layer, but I hope to solve them myself. Martin Martin Homik wrote: > > I still cannot login with "use

Re: [appfuse-user] AppFuse 2.0.2; Jetty 6.1.9 still accesses org/acegisecurity

2008-06-05 Thread Martin Homik
the same error and I found that a compilation error in one of my > classes left my ROLE table without any value when I ran mvn install... is > your ROLE table empty or missing the entry for ROLE_USER? > > > Martin Homik wrote: >> >> Hi Matt, >> >> 1. secur

[appfuse-user] ClassCastException when testing overriden save method in *Manager

2008-06-09 Thread Martin Homik
I override the test method in my managers. When testing, I get a ClassCastException. There is no problem in production state, that is jetty:run-war runs perfectly well. So, the problem must be related to the mocks in test classes. Here is my manager class: public class SurveyValueManagerImpl

Re: [appfuse-user] ClassCastException when testing overriden save method in *Manager

2008-06-17 Thread Martin Homik
s the proper way to override a save method in the manager? MH Martin Homik wrote: > > In my managers, I override the save method. There is no problem in > production state, that is jetty:run-war runs perfectly well. But in the > test-cycle, I get a ClassCastException. So, the proble

Re: [appfuse-user] ClassCastException when testing overriden save method in *Manager

2008-06-17 Thread Martin Homik
ireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) mraible wrote: > > Can you post the full stack trace? > > Matt > > On Tue, Jun 17, 2008 at 6:13 AM, Martin Homik <[EMAIL PROTECTED]> wrote: > >>

Re: [appfuse-user] ClassCastException when testing overriden save method in *Manager

2008-06-20 Thread Martin Homik
I solved it with a less elegant work-around. Instead of overriding *Manager.save(..). I've extracted all my custom lines of code to a new method *Manager.prepare(...). Now, I have to call both in my action classes: manager.prepare(...); manager.save(...) Not nice, but seems to work. MH -- Vi

Re: [appfuse-user] SQLGrammarException when running jetty without prior tests

2008-06-20 Thread Martin Homik
I'd like to pick up this topic again. Could not find a proper answer elsewhere. Some threads were talking about omitting reserved words. But I can't see the problem in my case. So, you you guys have a clue what is going on? MH Martin Homik wrote: > > Today I came across a

[appfuse-user] Integration tests with tiny_mce fail

2008-06-20 Thread Martin Homik
I have integrated tinyMce with appfuse. That's fine as textareas are replaced by a nice editor. The inclusion into my jsp pages is not invasive. You have only to add the following to your : tinyMCE.init({ mode : "textareas"});

Re: [appfuse-user] EntityListeners in appfuse-spring-basic?

2008-06-23 Thread Martin Homik
Hi Stefan, I ran into a http://www.homik.de/think/index.php/2008/04/08/automatic-timestamping-of-persisted-data/ similar problem a while ago. I think, the problem is that Hibernate supports these methods for the corresponding lifecycle event only for http://www.hibernate.org/hib_docs/ejb3-api

[appfuse-user] CLEAN_INSERT on hsqldb fails

2008-07-01 Thread Martin Homik
I've followed a few threads on this topic, but none seems to provide a solution. I have a clean AppFuse 2.0.2 + Basic+ Struts2 project. When I run 'mvn -Phsqldb test', I get the following exception: [INFO] Configuration XML file loaded: file:/d:/ws/appfuse/comped/src/main/resources/hibernate.cfg.

Re: [appfuse-user] CLEAN_INSERT on hsqldb fails

2008-07-08 Thread Martin Homik
tmp/comped' then everything is fine and I don't mind to have a tmp folder in my project. Martin mraible wrote: > > What is your JDBC URL for HSQLDB? > > Matt > > On Tue, Jul 1, 2008 at 3:48 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> I&#x

[appfuse-user] Struts2; override user validator

2008-07-14 Thread Martin Homik
I'd like to change the user information in signup/profile. In principle, I'd like to hide the State/Provence input field. So I did the following steps: 1. copied User validation from target to src folder 2. out-commented the field with name "user.address.province" in the user validator 3. copied

Re: [appfuse-user] Struts2; override user validator

2008-07-14 Thread Martin Homik
rproject-version/WEB-INF/classes to src/main/resources. > > HTH, > > Matt > > On Mon, Jul 14, 2008 at 8:16 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> I'd like to change the user information in signup/profile. In principle, >> I'd >

Re: [appfuse-user] Struts2; override user validator

2008-07-15 Thread Martin Homik
fuse/model. If it's there, Struts is > probably loading one from a JAR instead. > > Matt > > On Mon, Jul 14, 2008 at 11:55 PM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> Matt, >> >> there is no Address-validator.xml in AppFuse. There is only >

[appfuse-user] Implementing a language JSP tag for drop-down list

2008-07-15 Thread Martin Homik
Hi there, I'd like to add language information to the user's profile. The signup/userForm JSP should use a very similar construct like the "appfuse:country" tag for a drop-down list. Do you know any taglib, that offers that functionality? The alternative would be to implement it myself. My safest

Re: [appfuse-user] Implementing a language JSP tag for drop-down list

2008-07-15 Thread Martin Homik
if an existing library already exists. > > Matt > > On Tue, Jul 15, 2008 at 5:26 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> Hi there, >> >> I'd like to add language information to the user's profile. The >> signup/userForm JSP should u

Re: [appfuse-user] appfuse tutorials (Spring MVC + Hibernate) one-to-many mapping

2008-07-22 Thread Martin Homik
You might refer to The AppFuse Primer written by David Whitehurst. I just looked up, and in fact, he introduces an example with an one-to-many relationship. However, he does not continue the example for a Spring MVC version. http://www.sourcebeat.com/books/appfuse.html http://tinyurl.com/56tptc

Re: [appfuse-user] Good Java Web Hosts

2008-07-25 Thread Martin Homik
Here is one more, Morph. Unfortunately, I don't have experience with Morph, but their description sounds pretty nice. http://www.mor.ph/ Martin -- View this message in context: http://www.nabble.com/Good-Java-Web-Hosts-tp18644536s2369p18652657.html Sent from the AppFuse - User mailing list arc

[appfuse-user] Can't resolve taglib in taglibs.jsp

2008-07-28 Thread Martin Homik
I've been working on my project happily until I ran a "mvn clean" this morning. Now, I cannot access the signup page nor run a Login integration test. I get the info that a taglib cannot be resolved. Login: [INFO] [talledLocalContainer] 28.07.2008 16:10:56 org.apache.catalina.core.StandardWra

Re: [appfuse-user] Can't resolve taglib in taglibs.jsp

2008-07-28 Thread Martin Homik
H ... fixed. But why? Changed <%@ taglib uri="http://www.appfuse.org/tags/struts"; prefix="appfuse" %> To <%@ taglib uri="http://www.appfuse.org/tags/spring"; prefix="appfuse" %> Martin -- View this message in context: http://www.nabble.com/Can%27t-resolve-taglib-in-taglibs.jsp-

[appfuse-user] How to change the locale programmatically

2008-07-28 Thread Martin Homik
Setting: Basic-Struts2-AppFuse 2.0.2-with core classes In my scenario, my User has a default language which might differ from the browser's locale. Hence, I'd like to change the locale programmatically relative to the user's default language. There are two ways to do this: 1. Store the locale pr

Re: [appfuse-user] How to change the locale programmatically

2008-07-29 Thread Martin Homik
Oh boy ... this was a long journey. Finally, I came up with a third alternative: a filter. I came across a few posts and found the LocaleFilter. In principle, I copied it and added a few more lines. Now, the workflow is like this: 1. check if a remote user exists; if not then process as LocaleF

Re: [appfuse-user] the set up and learning cure is crazy high

2008-08-04 Thread Martin Homik
AppFuse is complex. AppFuse is not easy. AppFuse is great. @Tim: AppFuse is a great introduction to Spring, Hibernate, Struts2, Maven, JPA. Only then I dived deeper into the technologies behind AppFuse. So, from a newbie perspective, I strongly recommend the AppFuse tutorial. You can quickly go

Re: [appfuse-user] how to read a new config file

2008-08-06 Thread Martin Homik
Alternatively, you could use Spring's PropertyPlaceholderConfigurer to externalize parts of your configuration. It bases on property files rather than on xml files. Martin -- View this message in context: http://www.nabble.com/how-to-read-a-new-config-file-tp18679204s2369p18845596.html Sent

Re: [appfuse-user] Can't resolve taglib in taglibs.jsp

2008-08-06 Thread Martin Homik
. So I changed it to uri="http://www.appfuse.org/tags/spring";. It works, but I don't know why. Martin mraible wrote: > > Because you're using Spring, not Struts? ;-) > > Matt > > On Mon, Jul 28, 2008 at 9:41 AM, Martin Homik <[EMAIL PROTECTED]> wrot

[appfuse-user] No injection of beans into Manager/Action classes?

2008-08-06 Thread Martin Homik
Injection of beans outside Spring does not work, that's clear. But I was surprised to learn that it is not possible to inject beans in *ManagerImpl and *Action classes. Am I completely wrong? In my app, I have a competency action class which is in charge of putting a competency's names on the va

[appfuse-user] Change log settings for action classes?

2008-08-06 Thread Martin Homik
How can I change the log settings in order to be able to print log messages in my action classes. Though I use log.fatal(), log messages don't show up in the console when running jetty:run-war. Thanks for help. Martin -- View this message in context: http://www.nabble.com/Change-log-settings-

Re: [appfuse-user] Change log settings for action classes?

2008-08-06 Thread Martin Homik
, the xwork2 package might also be a good candidate. Cheers, Martin PS: Nice birthday present. Happy birthday. :-) mraible wrote: > > Have you tried modifying src/main/resources/log4j.xml? > > On Wed, Aug 6, 2008 at 3:50 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >

Re: [appfuse-user] Can't resolve taglib in taglibs.jsp

2008-08-07 Thread Martin Homik
e in your WEB-INF directory > (after building your WAR)? > > Matt > > On Wed, Aug 6, 2008 at 1:22 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> I don't understand your answer. All Struts2-AppFuse projects are >> preconfigured with a >> taglib pointi

Re: [appfuse-user] Change log settings for action classes?

2008-08-07 Thread Martin Homik
ead of yours. > > Matt > > On Wed, Aug 6, 2008 at 8:50 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> Not actively. I looked into the file and noticed that classes in my >> project >> package have the debug level >> "DEBUG" .That means t

[appfuse-user] Tip: Debugging AppFuse projects in Eclipse

2008-08-07 Thread Martin Homik
Matt, maybe you add the following link to the documentation. The described approach differentiates between surefire/generic debugging. Both approaches worked pretty well for me. http://docs.codehaus.org/display/MAVENUSER/Dealing+with+Eclipse-based+IDE Before, I tried the approach you link to on

Re: [appfuse-user] No injection of beans into Manager/Action classes?

2008-08-07 Thread Martin Homik
mraible wrote: > > On Wed, Aug 6, 2008 at 3:33 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> Injection of beans outside Spring does not work, that's clear. But I was >> surprised to learn that it is not possible to inject beans in >> *ManagerImp

[appfuse-user] Experience with Struts2 Annotations?

2008-08-08 Thread Martin Homik
Dear all, I'd like to ask the community whether you have any experience with AppFuse and Struts2 annotations. The AppFuse tutorial introduces only the xml-based declarative architecture. Also, in the book "Struts2 in Action" the authors use the xml-based approach for educational reasons, but th

Re: [appfuse-user] the set up and learning cure is crazy high

2008-08-08 Thread Martin Homik
Cens wrote: > > Hi, > I agree with you sadsadsadsa that Appfuse has a high learning curve and > that > there should be a FAQ section on the site and that the tutorial should be > fool-proof. Ok, that's all true, but anyway I would not say it is a > failure. > The FAQ is here. A good point to l

Re: [appfuse-user] Experience with Struts2 Annotations?

2008-08-08 Thread Martin Homik
: > > AppFuse is configured by default to use Zero Configuration, which > means you don't have to use XML or annotations. Just name your classes > XXXAction and put them in the package defined in your web.xml. > > Matt > > On Fri, Aug 8, 2008 at 2:44 AM, Martin Ho

Re: [appfuse-user] OneToMany Relation Problem

2008-08-12 Thread Martin Homik
Try this post: http://www.jroller.com/eyallupu/entry/hibernate_exception_simultaneously_fetch_multiple I ran into a similar problem a few days ago. I made the mistake to use entity inheritance + eager fetching on a list. It seems that this is not accurate. Because the @ColumnIndex approach did no

Re: [appfuse-user] OneToMany Relation Problem

2008-08-13 Thread Martin Homik
Did you uncomment the lazyLoadingFilter and its mappings in web.xml? By the way, you might know this, there is a tutorial on using Dojo in AppFuse. I have not tried it so far. But, just in case. Maybe there is something helpful. http://appfuse.org/display/APF/Ajax Martin alibehzadian wrote:

[appfuse-user] Use JSTL in DisplayTag paramProperty

2008-08-21 Thread Martin Homik
Each row in my display:table contains a link. The link derives from a URI stored in the POJOs. To generate the link, I need to cut off the prefix. Here is an example: 1. The POJOs have a uri property which have the following form: http://localhost:8080/2008/ontology/ontology.owl#Calculate_ra

Re: [appfuse-user] AppFuse to production

2008-08-22 Thread Martin Homik
Just to complete. Add the following plugin overrides to the prod profile. Can it be simplified? maven-surefire-plugin true org.codehaus.mojo dbunit-maven-plugin 1.0-beta-1 true org.codehaus.mojo hibernate3-maven-plugi

Re: [appfuse-user] I18N Problem

2008-08-24 Thread Martin Homik
Look into your IDEs settings whether it saves the file in UTF. I had similar problems on Windows XP with Eclipse. By default, it took a different encoding. Martin alibehzadian wrote: > > Hi, > > I used Persian text right inside JSP. I saved JSP file with UTF-8 encoding > and then I build the

Re: [appfuse-user] jetty:run-war Always Create Table Even Though POM File Says Not Too

2008-08-26 Thread Martin Homik
See here, if you want to change it in your pom: http://www.nabble.com/AppFuse-to-production-to17339383s2369.html#a19104092 Martin Joey122 wrote: > > This is annoying - I ve specified in POM not to drop the database as I > have data loaded up in there. > > I ve done this by using the following

Re: [appfuse-user] Action Tests suddnly failing with InitializationError0

2008-08-27 Thread Martin Homik
Same error message (with managers), different cause. I simply forgot to declare my test method as "public". Martin -- View this message in context: http://www.nabble.com/Action-Tests-suddnly-failing-with-InitializationError0-tp12853062s2369p19179899.html Sent from the AppFuse - User mailing lis

Re: [appfuse-user] GenericDao and Class Hierarchy - Approach?

2008-09-01 Thread Martin Homik
Did you implement any test methods for ConfirmationDetails? I followed the description in this thread which worked fine for the compilation but my dao tests failed. Translated to your domain, my test class looks like follows: public class ConfirmationDetailsDaoTest extends BaseDaoTestCase {

Re: [appfuse-user] GenericDao and Class Hierarchy - Approach?

2008-09-01 Thread Martin Homik
Another related question is how to state Hibernate queries depending on Generics. For instance, you would like to state a generic query in ConfirmDetailsDaoHibernate: public List findAllOrderByAlpha() { return getHibernateTemplate().find( "from ConfirmDetails c order by c.n

Re: [appfuse-user] GenericDao and Class Hierarchy - Approach?

2008-09-01 Thread Martin Homik
I found another solution. If you have full source, then add the following get method to GenericDao: protected Class getPersistentClass() { return persistentClass; } This allows to retrieve the persisted class' name in your DAOs. So you can add to your ConfirmDetai

[appfuse-user] dbunit and single tables

2008-09-03 Thread Martin Homik
Is it possible to import/export/drop/ (include/exclude) single tables with dbunit? Possibly via ? Scenario: In a nightly process I drop the tables, get data from another application, create a flat xml default-data.xml file and repopulate the database. Since I do not want to loose users/roles, I'

Re: [appfuse-user] dbunit and single tables

2008-09-09 Thread Martin Homik
nit-maven-plugin/ > > Matt > > On Wed, Sep 3, 2008 at 8:15 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> Is it possible to import/export/drop/ (include/exclude) single tables >> with >> dbunit? >> Possibly via ? >> >> Scenario: In a ni

Re: [appfuse-user] dbunit and single tables

2008-09-10 Thread Martin Homik
tunately, there is little documentation on exporting tables. However, here is a link to the official example pom: http://svn.codehaus.org/mojo/trunk/mojo/dbunit-maven-plugin/src/example/pom.xml Cheers, Martin Martin Homik wrote: > > Hmmm ... I couldn't find any information. And the maven p

Re: [appfuse-user] how to use jquery replace prototype?

2008-09-10 Thread Martin Homik
I don't know what happens when you remove the other AJAX frameworks. I simply added jQuery to default.jsp in decorators folder. jQuery.noConflict(); The jQuery.noConflict instruction is important when you want to keep the other AJAX frameworks. Note, that afterwards you have to

[appfuse-user] Re: Re[appfuse-user] direct to page after login

2008-09-16 Thread Martin Homik
Copy the index.jsp from target/work/webapp into your project and change to where you want to go. Martin Mauriff wrote: > > Hello, I need know how redirect to page after to login. > I read about Acegi but the redirection it's set in applicationContext.xml > with the bean authentication

Re: [appfuse-user] Using annotations for web security

2008-09-19 Thread Martin Homik
According to "Spring in Action" (p. 303) you can use annotations such as:: /** * @@org.acegisecurity.SecurityConfig("ROLE_ADMIN") */ public void doSomethingSecure() { // } Note, acegisecurity is springsecurity today. It might not be supported out of the box. Then, you need to 1. add a

Re: [appfuse-user] Separate database settings for testing, staging and production

2008-09-22 Thread Martin Homik
Change the the default database to hsqldb in the end of the pom: org.dbunit.ext.hsqldb.HsqldbDataTypeFactory CLEAN_INSERT org.hibernate.dialect.HSQLDialect tmp hsqldb hsqldb 1.8.0.7 org.hsqldb.jdbcDriver sa Add a profile for production use, such as: prod

Re: [appfuse-user] [newbie] - error

2008-09-22 Thread Martin Homik
Check your sample-data.xml for correct syntax and data. dbunit tries to populate your database and fails. This can also be due to a mispelled table or column name or due to a foreign key problem. So, check your jpa annotations and compare with the sample data file. MH cesto wrote: > > Hi, >

Re: [appfuse-user] Separate database settings for testing, staging and production

2008-09-23 Thread Martin Homik
Maybe, someone else can give you a better hint. Sorry, Martin Tarjei Huse wrote: > > Hi, > > Martin Homik wrote: >> >> Change the the default database to hsqldb in the end of the pom: >> >> >> >> org.dbunit.ext.hsqldb.HsqldbDataTypeFactory

[appfuse-user] AppFuse Logo

2008-10-06 Thread Martin Homik
Any chance to get a larger versipon of the AppFuse logo? I came across this link, but I wasn't able to open the attached pdf document. http://www.nabble.com/Fwd%3A-AppFuse-Tutorial-Quick-Reference-td4723793s2369.html#a4725659 I'd like to use the logo for my FastDial FireFox add-on. Would also be

[appfuse-user] Re[appfuse-user] ferencing properties in AppicationResources*

2008-10-09 Thread Martin Homik
Is it possible to reference a property inside an ApplicationResources*.propeties file. I'd like to reuse some properties in more complex phrases. For instance: # List of vehicles vehicle=Vehicle vehicle.car=Car # car form # car.label.type= # car.accident=This had an accident. I tried to goog

[appfuse-user] Locale problem after Struts2 validation

2008-10-09 Thread Martin Homik
Problem: After validating a form, the error message is always displayed in German although I have set a different locale and the rest of the page is displayed in English. Even the fallback locale is set to English. I must have introduced this problem somewhere, but I have no idea where. Here are

Re: [appfuse-user] Locale problem after Struts2 validation

2008-10-10 Thread Martin Homik
And by the way, can anyone tell me why I have two(!) error message? Martin -- View this message in context: http://www.nabble.com/Locale-problem-after-Struts2-validation-tp19900222s2369p19912806.html Sent from the AppFuse - User mailing list archive at Nabble.com. -

Re: [appfuse-user] Locale problem after Struts2 validation

2008-10-10 Thread Martin Homik
Last information, before I give up on that problem: I oberved that this error occurs only(!) when the locale is set to English! If the locale is set to any language but English then the error messages are displayed in the correct language. Puh ... what now? Martin -- View this message in con

Re: [appfuse-user] Locale problem after Struts2 validation

2008-10-13 Thread Martin Homik
on Resources contains only the standard phrases webapp.version=Version ${pom.version} copyright.year=${copyright.year} Martin Kropp, Henning wrote: > > Just a shut in the wild, but maybe germane is the default language and > the failure messages are missing in english locale?

[appfuse-user] Re[appfuse-user] commendation for a Multi-select Combo Box

2008-10-21 Thread Martin Homik
Do you have any recommendation for a multi-select combo box with autocomplete? I'm searching for a UI Tag similar to the one I have seen in the SuperPoke application on Facebook (see attachement). I'm using Struts2 as weblayer. I'd be happy with a simple and quick Struts2 non-ajax tag. But I am

  1   2   >