[jboss-user] [JBoss Seam] - Re: Who uses EntityHome objects?
if i understand correctly there are two ways to set request parameter 1.annotation @RequestParameter 2. using page parameter in pages.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012723#4012723 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012723 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: classpath not found?
well,change the jboss classloader setting won't work. true true View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010380#4010380 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010380 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - classpath not found?
I tried the seamspace example comes with seam 1.1.5 GA, all great! Then I found that entity Member's validation message is hardcoded, i want to make it support I18N, so I made the following change in Member.java: @NotNull @Length(min = 3, max = 40) @Pattern(regex="[a-zA-Z]?[a-zA-Z0-9_]+", message="{member.invalidMemberName}") public String getMemberName() { return memberName; } And add the line in the messages_en.properties (which will be deployed to WEB-INF\classes directory) #application specific messages member.invalidMemberName=Member name must start with a letter, and only contain letters, numbers or underscores Then I try to start jboss 4.0.5 GA, but I got the following error; 02:22:38,061 WARN [ServiceController] Problem starting service persistence.units:ear=seamspace.ear,jar=seamspace.jar,unitName=seamspace java.lang.IllegalArgumentException: could not instantiate ClassValidator at org.hibernate.validator.ClassValidator.createValidator(ClassValidator.java:287) at org.hibernate.validator.ClassValidator.createMemberValidator(ClassValidator.java:255) at org.hibernate.validator.ClassValidator.initValidator(ClassValidator.java:208) at org.hibernate.validator.ClassValidator.(ClassValidator.java:127) at org.hibernate.validator.ClassValidator.(ClassValidator.java:105) at org.hibernate.validator.ClassValidator.(ClassValidator.java:97) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:319) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1039) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1211) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:847) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:385) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy105.start(Unknown Source) at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96) at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467) at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317) at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unk
[jboss-user] [JBoss Seam] - Re: seam-gen enhancement
"[EMAIL PROTECTED]" wrote : sure, and it is all possible just not enabled in seamgen yet. | | you can do it by have it use a [jpaconfiguration] instead of [jdbcconfiguration] care to submit a patch ? :) Sure. I am not farmiliar with it but i will give it a try View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009774#4009774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam-gen enhancement
Would it be great that seam-gen will generate crud pages and classes for an existing Entity class,just like seam-gen generate the crud pages,classes and entity classes from database. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009250#4009250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Avoiding the DRY Principle with beans
guys, you do not need repeat the work.Seam already has EntityHome and EntityQuery which exactly do the same thing you want. Correct me if I am wrong. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997415#3997415 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam promote bad design?
"ellenzhao" wrote : Seam + jpdl pageflow really separate concerns very cleanly. You may want to have a look at the number guess example. There's pure business logic in the action class. Another example is DVD store, the newuser flow and the checkout flow. Thanks, I will look at the examples you mentioned. Another newbie question, can the statefull action or stateless action's interface be remote, so that all the ejb module located on a separate physical machine? does anyone manage to do this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989792#3989792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam promote bad design?
I know it is a small problem, but when i go through the seam document (all documents,articles in the internet), I found all the action code actually has mixed responsibility: page navigation and business logic. See the following code from book demo: @Stateless (1) @Name("register") public class RegisterAction implements Register { @In (2) private User user; @PersistenceContext (3) private EntityManager em; @Logger (4) private Log log; public String register() (5) { List existing = em.createQuery("select username from User where username=:username") .setParameter("username", user.getUsername()) .getResultList(); if (existing.size()==0) { em.persist(user); log.info("Registered new user #{user.username}"); (6) return "/registered.jsp"; (7) } else { FacesMessages.instance().add("User #{user.username} already exists"); (8) return null; } } } the register function actually has dual resonsibility which broke a fundametal OO design principle:Single-Resonsibility-Principle. and all the generated seam code is same. Would it be better that an official tutorial providing better sample code? No offense. I do like SEAM. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989590#3989590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989590 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user