[jboss-user] [JBoss Seam] - Re: Event not raised with annotations - Bug?

2008-02-11 Thread ruettimac
I have posted a bug report against this issue: http://jira.jboss.org/jira/browse/JBSEAM-2614 since the aroundInvoke() method explicitly validates against returning null: if ( result!=null || method.getReturnType().equals(void.class) ) | { Thanks for the pointer, Cyrill View the orig

[jboss-user] [JBoss Seam] - Event not raised with annotations - Bug?

2008-02-10 Thread ruettimac
Hi, I have two methods raising an event - one raises the event, the other not. If I raise the event programmatically it works, but not while I am annotating the raise of the event. First the method which does not raise the event with annotations: | @RaiseEvent(value=SeamConstants.EVENT_SPOR

[jboss-user] [JBoss Seam] - Re: Component Architecture instead of traditional Layers

2008-01-20 Thread ruettimac
mirko27, Thanks, you saved my day (frustrations). I saw your post today but did not realise the impact - thought is was about web.xml bindings. Now it works :-) Regards, Cyrill View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121640#4121640 Reply to the post

[jboss-user] [JBoss Seam] - Re: Component Architecture instead of traditional Layers

2008-01-20 Thread ruettimac
anonymous wrote : I thought it would be a too tight dependency between the SFSB. For instance, if you inject SFSB A into SFSB B and SFSB C and change some business logic in A maybe B or C are broken because they use some methods of A. If you look at service oriented architectures (like SOA) - t

[jboss-user] [JBoss Seam] - Re: Component Architecture instead of traditional Layers

2008-01-20 Thread ruettimac
Hi, I tried a small example today (with glassfish) and failed to create it. There is a thread and a JIRA-Issue failed against this problem: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=123592 and http://jira.jboss.org/jira/browse/JBSEAM-2430 What's happening here is, that the bea

[jboss-user] [JBoss Seam] - Re: @In reference a bit strange

2008-01-18 Thread ruettimac
Hi, You reference the seam component in the seam context by name. If you are using the EL-Notation, you expect that your component is named #{componentname} including the curly braces. That is not what you want. Please have a look at the following slide sets. The seam architecture in UML! htt

[jboss-user] [JBoss Seam] - Component Architecture instead of traditional Layers

2008-01-18 Thread ruettimac
Hi, I have searched this forum but did not found answers to my questions regarding architectural patterns (pro/cons). The examples are to simple for my taste. Coming from the traditional J2EE pattern oriented software development with Session Facades, DTO's, DAO's, ServiceLocator I dream a bit

[jboss-user] [JBoss Seam] - Re: Seam 2.0 on Glassfish

2008-01-18 Thread ruettimac
Please have a look the the blog of Michael Yuan. You will find some advices/changes you have to do in the comments. http://www.michaelyuan.com/blog/category/seam/ I am developing on glassfish - but with hibernate instead of toplink. No problems so far! Regards, Cyrill View the original post

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-16 Thread ruettimac
Cool, Surefire Plugin version 2.4 is finally out. Supporting TestNG as a first citizen. I will try it out over the weekend if the combination maven, seam combo is working now as expected. Regards, Cyrill View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=41203

[jboss-user] [JBoss Seam] - Re: Form Validation Question:Entity Bean @NotNull vs. requir

2008-01-14 Thread ruettimac
Hi, Please keep in mind, that JSF will validate required="true" before hitting @NotNull in your entity bean (Thanks to the pointer Pete). If you leave the field empty, you will receive the error message from JSF and not from the Hibernate Validator Framework! The seam team is aware of this issu

[jboss-user] [JBoss Seam] - Re: DAO's: stateless or not

2008-01-14 Thread ruettimac
Hi, I am thinking about the same question - should I or should I not. The main problem is, that I have implemented certain queries (load the current user from the database for example) the second time in my action beans and it is time for a refactoring. You have two options in my opinion: Sin

[jboss-user] [JBoss Seam] - Re: Seam contexts and stateful session instances

2008-01-07 Thread ruettimac
Hi, Yes, I changed the Scope to CONVERSATION, but omit the @Begin and @END tags. The page get's loaded (calling the Create method) and then submit the page again (persist). Then the conversation is ended. Are there any recommendations about how to use the Scope. I am asking because stick the b

[jboss-user] [JBoss Seam] - Seam contexts and stateful session instances

2008-01-06 Thread ruettimac
Hi, I discovered a behaviour while implementing a simple page to edit an entity bean which I can not explain what happens is right or not. I expect: My stateful session bean has the following annotations: @Stateful | @Scope(ScopeType.EVENT) and the following method to load the customer I lik

[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-12-31 Thread ruettimac
Hi, Check out http://www.michaelyuan.com/blog/2007/10/09/jboss-seam-project-setup-with-maven-?-part-2-ear-deployment/ Regards, Cyrill View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116218#4116218 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-30 Thread ruettimac
I just discovered, that the validation messages from hibernate validator are displayed as in the hibernate validator message bundle except for instance the @NotNull - this is coming from the JSF framework because I have to switch on the attribute required="true". I have now modified javax.face

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
My Facelets-Editor just did not showed me those two attributes - but they are listed in the JSF-Javadoc: - label --> The error output is still very noise, but not so cryptical as before - requiredMessage --> I do a lot of work (translations) I not want to do again Maybe I should dive a bit into t

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
Please can you explain solution 2 & 3 a litte bit further? I do not know what you mean. The input component has no such attribute for instance. Thank you very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116038#4116038 Reply to the post : http://www

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
The outcome for a german browser is: anonymous wrote : Vorname: | | register:firstNameDecorate:firstName: Validierungs-Fehler: Wert wird benötigt. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116014#4116014 Reply to the post : http

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-29 Thread ruettimac
I am fighting with the same problem. I have the following setup: | | http://java.sun.com/xml/ns/javaee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fa

[jboss-user] [JBoss Seam] - Re: Which repository structure with Seam (glassfish + netbea

2007-12-04 Thread ruettimac
Hi, Have you executed the ant script (build.xml) in the booking example? If no, please execute it. You will then get an exploaded EAR which you can discover. Regards, Cyrill View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110416#4110416 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Maven 2 Surefire---TestNG---Seam 2.0 Problems

2007-11-25 Thread ruettimac
Hi, I have now found a setup which should work. Now, the datasource is not found by the default bootstrap configuration - that's ok. So far, I can provide you the following information: | 1) I had to change the version of testng to 4.7! All other version (5.5, 5.7) do not work with surefir

[jboss-user] [JBoss Seam] - Re: Maven 2 Surefire---TestNG---Seam 2.0 Problems

2007-11-24 Thread ruettimac
Following the debug output: | [DEBUG]org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.4-collab-20070602.024036-1:runtime (selected for runtime) | snapshot org.apache.maven.surefire:surefire-booter:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots | [DEBUG]Skip

[jboss-user] [JBoss Seam] - Maven 2 Surefire---TestNG---Seam 2.0 Problems

2007-11-24 Thread ruettimac
Hi, I have seen some posts with the same issues, but did not found the solution or the setup those users had for unit testing the seam components. Following my setup: | | | org.apache.maven.plugins | maven-surefire-plugin | 2.4-collab-SNAPSHOT | | |