seam

Faces Servlet threw exception java.lang.StackOverflowError

折月煮酒 提交于 2019-11-29 07:10:22
Ok, I've run across my first StackOverflowError since joining this site, I figured this is a must post :-). My environment is Seam 2.0.1.GA, JBoss 4.2.2.GA and I'm using JSF. I am in the process of converting from a facelets view to JSP to take advantage of some existing JSP tags used on our existing site. I changed the faces-config.xml and the web.xml configuration files and started to receive the following error when trying to render a jsp page. Anyone have any thoughts? 2008-09-17 09:45:17,537 DEBUG [org.jboss.seam.contexts.FacesLifecycle] Begin JSF request for /form_home.jsp 2008-09-17 09

Seam 2.2 App on JBoss 7.1?

余生颓废 提交于 2019-11-29 05:07:43
We have deployed our JBoss Seam 2.2 application on JBoss 5.1 with PostgreSQL as the database. It makes use of EJBs, JPA (Hibernate), JSF (Richfaces and Primefaces), Servlets, and JMS queues and topics. Recently, we've decided to migrate the platform to JBoss 7.1 to take advantage of its lower overhead, as well as to keep in step with changes in technology. Is it possible to run Seam 2.2 applications on JBoss 7.1? I realize the Hibernate/JPA version is different, and I'm assuming the JSF version is as well. Are there ways to compensate for this? What changes to our code and configuration could

java library for reading RSS and ATOM feeds [duplicate]

南楼画角 提交于 2019-11-28 22:38:52
This question already has an answer here: How to write an RSS feed with Java? 1 answer I am looking for libraries which can read RSS / ATOM feeds in my J2EE application (based on JBoss Seam). Is Rome the only application there for reading feeds? I am assuming the Seam RSS integration is only for generating RSS feeds and not for reading feeds. Nils Schmidt Have you had a look into the following list? http://java-source.net/open-source/rss-rdf-tools Even though it has been mentioned several times, I would suggest using Rome as well. Rome is a very mature, extremely well java-documented library

How to externalize properties from JPAs persistence.xml?

ぃ、小莉子 提交于 2019-11-28 19:20:45
I would like to put some of the hibernate configuration in a property file to make it editable without build and deploy. I tried to solve my problem by following the instructions from Create JPA EntityManager without persistence.xml configuration file app.properties: hibernate.show_sql=true hibernate.dialect=org.hibernate.dialect.MySQLDialect hibernate.hbm2ddl.auto=validate hibernate.show_sql=true hibernate.format_sql=true hibernate.default_schema=myschema persistence.xml <?xml version="1.0" encoding="UTF-8"?> <!-- Persistence deployment descriptor for dev profile --> <persistence xmlns="http:

Understanding the necessity of type Safety in CDI

倾然丶 夕夏残阳落幕 提交于 2019-11-28 18:58:23
First I should clarify that this post is not intended to criticize CDI, but to discover the thinking and assumptions behind the design of CDI and that will have obvious influence on designing any web app, which uses CDI. One of the most distinguished feature of CDI (of Java EE 6) is type safety . Jboss Seam was not safe in type. It uses name to qualify any instance to inject. Like bellow: @Name("myBean") public class MyBean implements Bean { ... } @Name("yourBean") public class YourBean implements Bean { ... } While injecting MyBean one can do this: @In private Bean myBean; //myBean is

Spring vs Jboss

夙愿已清 提交于 2019-11-28 17:51:16
问题 What are the advantages and disadvantages for Spring vs. Jboss for an enterprise web application. 回答1: As already said, but let me just restate the point. JBoss is an application server. Some Java application servers include Websphere Glassfish JBoss Spring is a framework. A rather large framework which offers quite a bit but for me one of the main features is MVC. MVC is a design pattern where you separate your Model from View from your Contoller. The model is the representation of the data.

CRUD: To Roo or not to Roo? [closed]

帅比萌擦擦* 提交于 2019-11-28 16:51:35
I have been using Groovy on Rails for CRUD applications. I am starting a new project where we are not allowed to use Grails anymore (we have a list of allowed jars and grails is not there). I am considering using Spring ROO or JBoss Seam. How do they compare? What are their major strengths and weaknesses? Tim Note that Spring Roo and JBoss Seam aren't directly comparable, as JBoss Seam in itself doesn't provide the CRUD application generation mentioned in the question. JBoss Seam however comes with the seam-gen tool, which provides this functionality. It would therefore probably be better to

Dynamic Id's in JSF/Seam

偶尔善良 提交于 2019-11-28 11:31:36
Got a little problem with a Seam application I'm working on and I was wondering if anyone knows a way round it. I've got a form in my application that uses AJAX to show certain input boxes depending on an item in a dropdown box. The code works fine except for setting the ID's in my input boxes. It looks like JSF doesn't let me set an ID via a variable. Other attributes like "for" in labels are fine. Here's some code explaining what I mean: <ui:repeat value="#{serviceHome.instance.serviceSettings}" var="currSetting" > <li> <!-- Imagine the below works out as "settingABC" --> <c:set var=

How to pass a parameter along with h:commandButton

吃可爱长大的小学妹 提交于 2019-11-28 09:14:20
One of the most common approaches to change locale in JSF+Seam - with <h:selectOneMenu> : <h:form action="#{localeSelector.select}" rendered="false"> <h:selectOneMenu value="#{localeSelector.language}" onchange="submit()"> <f:selectItem itemLabel="English" itemValue="en" /> <f:selectItem itemLabel="Francais" itemValue="fr" /> </h:selectOneMenu> </h:form> I want to implement locale changes with buttons. So, the question is - how to pass the parameter (en, fr, etc.) to update the bean with <h:commandButton> ? Maybe <h:inputHidden> would help? BalusC Either pass as method argument (only if your

Should I start my Seam project from scratch or from a seam-gen generated project?

风格不统一 提交于 2019-11-28 09:05:58
问题 I have been using Seam-gen with a small sample database to help me learn the Seam framework. Now I am going to build a more complex application. Are there disadvantages or things that I should watch out for if I decide to start from a seam-gen project? 回答1: Are there disadvantages or things that I should watch out for if I decide to start from a seam-gen project ? No. A Seam-gen generated project can be opened without any restriction in NetBeans (like another project) If you use Eclipse, some