seam

h:datatable not populated

梦想与她 提交于 2021-02-10 17:26:44
问题 This is a related (and or follow up) issue to : Event Function called before Setter So Given i have : <Td> <h:selectOneMenu id="combocarList" value="#{customerBean.selectedcar}" styleClass="comboStyle" valueChangeListener="#{customerBean.loadothercombos}" onchange="document.forms[0].submit()" > <f:selectItem itemLabel="-----------Select--------------" itemValue="None" /> <f:selectItems value="#{customerBean.carsList}" /> </h:selectOneMenu> </Td> the event is called when user selects an item

RESTEasy Seam integration application HTTP Status 404 - Could not find resource for relative path of full path

随声附和 提交于 2021-01-28 10:31:27
问题 I am trying RestEasy in jboss seam build application. What i did so far is updated components.xml <components xmlns:resteasy="http://jboss.org/schema/seam/resteasy" xsi:schemaLocation= http://jboss.org/schema/seam/resteasy http://jboss.org/schema/seam/resteasy-2.3.xsd http://jboss.org/schema/seam/components http://jboss.org/schema/seam/components-2.3.xsd"> My Resource class is @Path("/customer") @Name("customer") @Scope(ScopeType.SESSION) public class HelloWorldRestEasy { @Path("/customerId")

RESTEasy Seam integration application HTTP Status 404 - Could not find resource for relative path of full path

有些话、适合烂在心里 提交于 2021-01-28 10:17:51
问题 I am trying RestEasy in jboss seam build application. What i did so far is updated components.xml <components xmlns:resteasy="http://jboss.org/schema/seam/resteasy" xsi:schemaLocation= http://jboss.org/schema/seam/resteasy http://jboss.org/schema/seam/resteasy-2.3.xsd http://jboss.org/schema/seam/components http://jboss.org/schema/seam/components-2.3.xsd"> My Resource class is @Path("/customer") @Name("customer") @Scope(ScopeType.SESSION) public class HelloWorldRestEasy { @Path("/customerId")

is it possible a java web application can call another java web application in same localhost of tomcat server

我的梦境 提交于 2021-01-28 05:00:36
问题 i am trying to deploy two web applications say appA and appB in same local host tomcat server and when the both the applications are up in running is it possible to call appB to appA using ajax call or redirect 回答1: What you are looking for toa chieve can be done using the following tomcat parameter: (from docs) crossContext Set to true if you want calls within this application to ServletContext.getContext() to successfully return a request dispatcher for other web applications running on

Losing Class Custom Annotation For Proxy Classes

喜你入骨 提交于 2021-01-27 12:47:55
问题 I am using Seam to inject beans to my controller using @In annotation. The injected class has a custom annotation, when calling injectedClass.getClass().getAnnotation(annotationClass) it returns null. When debug I found that Seam passes a proxy instance so getClass() returns InjectedClass_$$_javassist_seam_5 which doesn't have my custom annotation. How I can get my custom annotation from the proxy class? Here's how my classes look like: @CustomAnnotation(value="myvalue") @Name(

JBoss Seam: components injected into POJOs, but not Session Beans

本小妞迷上赌 提交于 2020-01-24 10:14:10
问题 I have a Seam component that handles login, with the name "authenticator": @Name("authenticator") public class AuthenticatorAction implements Authenticator { @PersistenceContext private EntityManager em; @In(required=false) @Out(required=false, scope = SESSION) private User user; public boolean authenticate(){ ... } } This works just fine, Seam injects the EntityManager instance. However, as soon as I add the @Stateless annotation, none of the injection happens! In this case, the

How to create commandlink programmatically

那年仲夏 提交于 2020-01-21 15:26:24
问题 We have a system built on seam/richfaces. There's this webpage where the tables are rendered from dynamic context (from multiple different datasources, and each of them uses a different layout to represent essentially the same real world concept). As a result, this table is binded to a bean, and it's columns/layout are generated from this bean. Now I need to add a command link on a specific column, equivalent to <a4j:commandLink value="#{actBean.Ids}" action="#{actBean.genDetails}"> <f

<a4j:commandLink> Not Rerendering

余生颓废 提交于 2020-01-14 10:25:09
问题 I'm trying to display a shopping cart in my application (Seam/RichFaces), and have included a "remove from cart" <a4j:commandLink /> next to each item to remove the item from the cart. When I click the link it is supposed to rerender the cart contents to show that the item has been removed. However, when I click the link, nothing happens. The cart is backed by an ArrayList in my action that contains the items. I can see the call in my action, so I know the item has been removed -- and, if I

Seam - list all components

爱⌒轻易说出口 提交于 2020-01-13 18:11:22
问题 I would like to get a list of all the components so that I can further process them. Is this possible, if so, how can I do that? I don't believe I can observe all postCreate events since it is simply an exact match and not a regular expression. @Observer("org.jboss.seam.postCreate.") You can only observe those events and not * as it is put into a map where the key is a string. Any ideas? Walter 回答1: As said I would like to get a list of all the components For each class declared as a

a different object with the same identifier value was already associated with the session when trying to persist entity

北战南征 提交于 2020-01-13 10:22:06
问题 I have a slight problem that I don't know how to solve. Could you help me please? When I am trying to persist entity I get next exception: 12:47:39,398 ERROR [org.black.dmitriy.entityHome.ScheduleHome] (http--127.0.0.1-8080-1) javax.persistence.EntityExistsException: a different object with the same identifier value was already associated with the session: [org.black.dmitriy.entity.Schedule#1] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1333)