seam

weblogic ejb ComplianceException

不打扰是莪最后的温柔 提交于 2019-12-22 17:59:32
问题 I try to deploy an application which uses EJB on weblogic 10.3. I use the framework seam 2.2.0 I created an EJB project and en EAR project with workshop. When I compile the project, I get this error: weblogic.ejb.container.compliance.ComplianceException: No business interface, component interface or web service endpoint interface found for Session Bean Authenticator Here is the bean code: import javax.ejb.Local; import javax.ejb.Stateless; import javax.persistence.EntityManager; import org

Call javascript function with if JSTL

我的梦境 提交于 2019-12-22 05:41:25
问题 Is there a way to call a javascript function inside an if with JSTL? Here's the code <c:choose> <c:when test="${orderUploadAction.errors.size()==0}"> CALL JS FUNCTION HERE </c:when> <c:otherwise> CALL JS FUNCTION HERE </c:otherwise> </c:choose> 回答1: Try this <c:choose> <c:when test="${orderUploadAction.errors.size()==0}"> <script> yourFunctionName() </script> </c:when> <c:otherwise> <script> yourAnotherFunctionName() </script> </c:otherwise> </c:choose> 来源: https://stackoverflow.com/questions

JBoss Seam tutorials

自闭症网瘾萝莉.ら 提交于 2019-12-22 05:37:12
问题 Let's say that I'm new to JBoss Seam, is there a way to get my skills up to speed? Are there any good tutorials? 回答1: You might want to pick up a book called 'Seam In Action' by Dan Allen. It walks you through all the frameworks that Jboss Seam glues together, not just Jboss Seam itself. Other than that, you can learn a lot from the examples in Jboss Seam, which you can compile and run almost out of the box, or by using seamgen. If this is your first time using jsf, hibernate, drools, etc,

What would cause an Hibernate InvalidStateException

南楼画角 提交于 2019-12-22 03:42:20
问题 I get this error, even though there are no validation constraints in my model class (all of the member variables are set properly but I stil get this exception on object creation). How do I debug this error? javax.el.ELException: org.hibernate.validator.InvalidStateException: valida tion failed for: com.mycompany.model.User at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.jav a:339) at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.jav a:280) at org.jboss.el

How to add custom filters in JBoss Seam

…衆ロ難τιáo~ 提交于 2019-12-22 01:19:50
问题 I am new to JBoss Seam. I have been having issues with a small project am working on. The project has some errors and unfortunately for me I cannot find out the exact cause of the errors. I get a javax.servlet.ServletException. Please could someone tell me how to add custom filters so that I would be able to trap errors properly. 回答1: If you want to trap all synchronous exceptions happening in Seam, you extend the Exceptions class in Seam. @Name("org.jboss.seam.exception.exceptions") @Scope

Attach rich:toggleControl to radio buttons or select items

牧云@^-^@ 提交于 2019-12-22 00:41:52
问题 Has anyone had any success attaching a rich:toggleControl component to a radio button component ( h:selectOneRadio ) or alternatively any of its children select items (in this case s:enumItem ). Basic code example: <h:selectOneRadio value="#{backingValue}"> <s:enumItem enumValue="VAL_1" itemLabel="Value One" /> <s:enumItem enumValue="VAL_2" itemLabel="Value Two" /> <s:convertEnum /> </h:selectOneRadio> The ideal thing would be to attach the toggle control to the s:enumItem s so I could have

Inject Bean into CDI Context programmatically?

感情迁移 提交于 2019-12-21 13:05:10
问题 Is it possible to manually Inject a bean into a CDI context? With the JBoss Seam framework, I could always do something like Contexts.getConversationContext().set("foo", bar); and the Bean would become part of that context. Is it possible to do something like this in Java EE 6 CDI? 回答1: There is no way to do this in an implementation agnostic way. You'd have to dig into the implementation, find the scope objects, pull them out via a BeanManager and figure out how to add them. Not all of them

Which is the best way to implement SOAP Web Services on JBoss Seam?

帅比萌擦擦* 提交于 2019-12-21 06:06:18
问题 I need to implement a SOAP Web Service on Jboss Seam 2.1.0. The idea is to export an Stateless bean method as a Web Service. However, I have found two approaches. First one, is to use the Seam's own web services annotations. The problem of this is the lack of documentation. Second one, is to use Enunciate. It's a lot better documented, but I feel that this is not the standard manner. So, which one is the best approach? Have I missed something? Is there more documentation around about the

Which is the best way to implement SOAP Web Services on JBoss Seam?

独自空忆成欢 提交于 2019-12-21 06:06:15
问题 I need to implement a SOAP Web Service on Jboss Seam 2.1.0. The idea is to export an Stateless bean method as a Web Service. However, I have found two approaches. First one, is to use the Seam's own web services annotations. The problem of this is the lack of documentation. Second one, is to use Enunciate. It's a lot better documented, but I feel that this is not the standard manner. So, which one is the best approach? Have I missed something? Is there more documentation around about the

Seam in JBoss Application Server 7?

我与影子孤独终老i 提交于 2019-12-20 12:39:35
问题 Which Seam framework version is supported in JBoss AS 7? I am planning to use Seam2.2.2, is it compatible with Jboss AS 7? 回答1: Yes and no. If you visualize yourself the timeline of Seam, the answer comes from alone: Seam 2.x was created to ease development against Java EE 5 and to serve as an incubator for future standards, mainly Java EE 6 and JSF 2 Java EE 6 took the ideas from Seam 2 (and others) to specify CDI (and improve APIs like JSF) Seam 3 brings new ideas to Java EE 6 and serves as