[jboss-user] [JBoss Seam] - Re: Hibernate validator and more error messages
Yes I want to display messages together. I also thought that ajax might be a problem but right now I'm in the phase of project where I can not simply remove it. What do you mean by: "Try putting the messages component into an ajax-rerendered region."? Put it into the here? -> also not possible. Do you have any more ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098534#4098534 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Hibernate validator and more error messages
Thanx for your reply, but I don't want to because some pages have more than 50 input fields and then for each I would have to create Do you have any other ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098521#4098521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098521 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Hibernate validator and more error messages
Hi conference, I'm using hibernate validators in my Seam application: xhtml: | | | | | | | java: @Min(value=1, message="#{messages['validator.min']}") | @Max(value=100, message="#{messages['validator.max']}") | @Column(name = "number_of_nights", unique = false, nullable = false, insertable = true, updatable = true) | public int getNumberOfNights() { | return numberOfNights; | } and when I submit the UI form I with value 0 for numberOfNights I get more the same error messages in h:messages component. | | | | something like this: # Value is too small # Value is too small # Value is too small . Do you have any idea why the error message is dispalyed in UI more times? Thanx for any help. Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098504#4098504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098504 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: [NamespaceScanner] Cannot load package
I just realized that fore core components the configuration is not working either. Only thing that is working is: | | 500 | | 120 | cid | clr | That doesn't have any namespace. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082939#4082939 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082939 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - [NamespaceScanner] Cannot load package
Hi All, I'm using Jboss 4.2.1.GA, Seam 1.2.1.GA and sun faces. During the deployment I have the warning in the console: 11:57:57,642 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.core 11:57:57,652 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.drools 11:57:57,662 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.framework 11:57:57,662 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.jms 11:57:57,672 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.mail 11:57:57,682 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.security 11:57:57,682 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.theme 11:57:57,692 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se am.web My problem is that when I declare something in components.xml it is not read. The only components that are read are core components. But security, framework, spring, mail are alwas missing. | http://jboss.com/products/seam/components"; | xmlns:core="http://jboss.com/products/seam/core"; | xmlns:security="http://jboss.com/products/seam/security"; | xmlns:framework="http://jboss.com/products/seam/framework"; | xmlns:mail="http://jboss.com/products/seam/mail"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation= | "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd | http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd | http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd | http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd";> | | | | | | | | 500 | | 120 | cid | clr | | | | | | | | | | | | | | | In case on security the identity is unknown in JSF. In case of spring the applicationContext.xml is not loaded. In case of mail the mail-session is not loaded in any case. But in case of core components everyting works fine. My components.xml is located in ear/war/WEB-INF and jboss-seam.jar in ear. My application.xml | | CechieApplication | | | cechie.war | /cechie | | | | cechie.jar | | | jboss-seam.jar | | | commons-lang-2.1.jar | | I suspect that warnings have something to do with it, but I have no idea what. Can you please help me. Thanx Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082936#4082936 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082936 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam email problem
The changed source is MailSession.java (not MailSender.java). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080458#4080458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam email problem
My components.xml is in ear/war/WEB-INF. The debug="true" doesn't help because the componenet has not been read. I have changed the source of seam MailSender.java private String sessionJndiName = "java:/Mail"; | |@Create | public void create() throws NamingException | { | if ( getSessionJndiName()==null ) | { | createSession(); | } else { | session = (Session) Naming.getInitialContext().lookup( getSessionJndiName() ); | } | } and now the email is send. This is quite Hack, but I have run out of correct ideas. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080457#4080457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam email problem
I have tried your configuration. | http://jboss.com/products/seam/components"; | xmlns:core="http://jboss.com/products/seam/core"; | xmlns:framework="http://jboss.com/products/seam/framework"; | xmlns:mail="http://jboss.com/products/seam/mail"; | xmlns:spring="http://jboss.com/products/seam/spring"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation= | "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd | http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd | http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd | http://jboss.com/products/seam/spring http://jboss.com/products/seam/spring-1.2.xsd";> | | | | | | | | 500 | | 120 | cid | clr | | | | | | | | | | I also tried to turn off the windows firewall, but the exception is still the same: 12:05:08,210 INFO [MailSession] Creating JavaMail Session (localhost:null) 12:05:08,220 INFO [MailSession] connected to mail server 12:05:09,242 ERROR [ReservationComponent] Error sending mail javax.faces.FacesException: Exception reading response at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:142) at org.jboss.seam.ui.JSF.renderChild(JSF.java:180) at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162) at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRend erer.java:150) at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja va:112) at cz.krajci.cechie.business.logic.ReservationComponent.finishBooking(Re servationComponent.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo ntextImpl.java:166) at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationCo ntext.java:37) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:57) at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(Bijecti onInterceptor.java:47) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundIn voke(ManagedEntityIdentityInterceptor.java:37) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.interceptors.ConversationInterceptor.aroundInvoke(Conv ersationInterceptor.java:54) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(Met hodContextInterceptor.java:27) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java: 103) at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionB eanInterceptor.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo ntextImpl.java:118) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Int erceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationIntercepto r.invoke(ExtendedPersistenceContextPropagationInterceptor.java:71) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invok e(TransactionScopedEntityManagerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsI nterceptor.java:47) at
[jboss-user] [JBoss Seam] - Re: Seam email problem
I have of cource done that with many different values. Notning helped. I think I will give up on Seam email support and integrate Seam with Spring and send the mail with Spring bean. If you have any more ideas please let me know I will try all of them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080321#4080321 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080321 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with selectItems
I had the same problem and the solution was very simple. On the bean where @Factory annotation is used the @Name must be specified. This way seam initializes the factory and doesn't return null. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080316#4080316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam email problem
Hi Pete, Thanx for helping me out. The whole stack trace is below. I'm getting the same exception in both cases: | | 18:03:50,425 INFO [MailSession] Creating JavaMail Session (localhost:null) 18:03:50,445 INFO [MailSession] connected to mail server 18:03:53,049 ERROR [ReservationComponent] Error sending mail javax.faces.FacesException: Exception reading response at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:142) at org.jboss.seam.ui.JSF.renderChild(JSF.java:180) at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162) at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRend erer.java:150) at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja va:112) at cz.krajci.cechie.business.logic.ReservationComponent.finishBooking(Re servationComponent.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo ntextImpl.java:166) at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationCo ntext.java:37) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:57) at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(Bijecti onInterceptor.java:47) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundIn voke(ManagedEntityIdentityInterceptor.java:37) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.interceptors.ConversationInterceptor.aroundInvoke(Conv ersationInterceptor.java:54) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(Met hodContextInterceptor.java:27) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation Context.java:69) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java: 103) at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionB eanInterceptor.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo ntextImpl.java:118) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Int erceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationIntercepto r.invoke(ExtendedPersistenceContextPropagationInterceptor.java:71) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invok e(TransactionScopedEntityManagerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsI nterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java :195) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInt erceptor.java:76) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulIn stanceInterceptor.java:83) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic ationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth enticationInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce ptor.java:46) at org.jboss.aop.joinpoint.MethodInvocat
[jboss-user] [JBoss Seam] - Re: Seam email problem
I dont't think the problem is in mail-service.xml. I have changed the values there many times. The problem is that seam somehow doesn't load the configuration from components.xml and set the host, port to default values that are in MailSession.java (localhost, null). Does enybody have idea why is this happening? | http://jboss.com/products/seam/components"; | xmlns:core="http://jboss.com/products/seam/core"; | xmlns:framework="http://jboss.com/products/seam/framework"; | xmlns:mail="http://jboss.com/products/seam/mail"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation= | "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd | http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd | http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd";> | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080275#4080275 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080275 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam email problem
Hi all, I'm trying to send an email using seam, but with exception. Seam version: 1.2.1GA Jboss AS version: 4.2.1.GA JSF version 1.2 SUN RI I have: 1) created mail-service.xml | java:/CechieMailService | martin.krajci | mypwd | | | | | | | | | | | | | | | jboss:service=Naming | 2) edited components.xml or + namespaces in tag are the same as in seam mail example 3) included jboss-seam-mail.jar in ear/war/WEB-INF/lib 4) used seam mail example in my project But I got exception when sending email: 13:17:33,448 INFO [MailSession] Creating JavaMail Session (localhost:null) 13:17:33,458 INFO [MailSession] connected to mail server 13:17:34,510 ERROR [ReservationComponent] Error sending mail javax.faces.FacesException: Exception reading response at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:142) at org.jboss.seam.ui.JSF.renderChild(JSF.java:180) at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162) at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRend erer.java:150) at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja va:112) at cz.krajci.cechie.business.logic.ReservationComponent.finishBooking(Re servationComponent.java:154) The strange thing is the (localhost:null) host and port. What else I'm missing? Thanx for any reply. Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080215#4080215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080215 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user