seam

Problem install seam on weblogic

I guys, I need to install jboss-seam on weblogic server. I read the seam documentation but after many problem, I have another problem which I can't resolve. When I deploy my ear on weblogic, I get this error: java.lang.ClassNotFoundException: org.apache.myfaces.webapp.MyFacesServlet However, I installed jsf as the doc describes and ...

Keeping Session and Conversation alive in Seam

I have a problem with the way sessions and conversations are handled in Seam. We have some rather long forms where most of the time you start filling in the first screen and then some actions are executed in the background and the users leave the computer to do some work, and then later they come back and annotate the work. Problem is t...

CDI - handling errors

Hi all, I am migrating my Seam 2 powered application to CDI and one of the things that is critical for me to retain is the error handling. In Seam 2, I simply replaced the default exception handler with my own, but in CDI, I am guessing I'll have to use an Interceptor. How would I set this up as using an Interceptor requires me to spe...

Seam: equivalent of @Startup in components.xml?

Is there an equivalent of @Startup annotation in Seam which I could use in components.xml? ...

How do you create components.xml for debug/development in Seam

Hi. Has anyone created two versions of components.xml like the components-dev.properties or the other dev or prod versions? How did you do this? We have some custom components that we are using for Development that is created in components.xml that I would like to move to its own components-dev.xml but I don't how to do this. Any idea...

Conditionally Print Stack Trace on Error Page Depending on Log Level using Facelets, Seam, and Logback

I would like to print the stack trace for the exception that was caught by pages.xml, but I only want to do so if the most granular logging level is more granular than warn. This way, testers can copy/paste the stack trace, but end users will never see it. Environment details: IBM WebSphere Application Server 7 (logging level details)...

JSF -- Alternative to "rendered="?

We're developing a Java web app that utilizes JSF (Richfaces through Seam) for its UI. I've read several articles that indicate that using the "rendered=" attribute on UI components results in a pretty substantial performance hit. We have several components that we'd like to enable or disable based on whether or not their values are se...

How to fix extendedData selection change when not focused.

We have a page in a seam application using richfaces that contains an extendedDataTable plus one or more list boxes. We've found that, once you select something in the extendedDataTable and then switch to one of the list boxes, the extendedDataTable keeps responding to the up and down arrow keys, so if you use them to change the selecti...

ClassCastException jboss-seam on weblogic 10.3

Hi guys, I have many problem to installed jboss-seam 2.2.0 on weblogic 10.3. I want to deploy the exemple furnish by jboss but I get the following error: java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener at weblogic.servlet.internal.WebComponentContributor.createL...

JSF/Seam -- Nested/Recursive iteration

I've got a situation where I would like to perform nested iterations on a series of options and display the results using JSF. As an example, think of a discussion board. Each comment may contain a parent comment and 0-n child comments. So, my root object would be something like this: public class MyObject { ... public List<Comment...

Loops in FOP fail

I'm trying to add some additional lines to a table in FOP, to fill them up to 13 rows with this code: <!-- Fill Up Empty space --> <c:forEach var="i" begin="${position_id}" end="13" step="1"> <fo:table-row height="4.4mm" border-bottom-color="black" border-bottom-style="fixed" border-bottom-width="0.2mm"> ...

Seam security with external authentication

Dear all, I use Seam 2.2.1.CR1 on Weblogic 10.3.2 (11g). I want to use an external SSO (the proprietary one Oracle provides, based on OID). I would like to integrate this external login (the login screen belongs to the SSO). Please note that I don't want to use an LdapStore. If I got this right, this would require me to have a login pag...

Create drop down menu in seam with s:selectItems

Hi guys, I have just started to learn seam framework. I decided to code two drop down menus. One listing categories and other listing subcategory. The idea is that user will first select a category and depending on that a subcategory will be populated. <h:selectOneMenu value="#{manager.category}" required="true"> <a:support ev...

JSF doesn't interpreted in seam

Hy guys, I installed jboss-seam on weblogic 10.3 (with many problem :( ) but now it's work, my application is deployed. But now, I have a new problem, my JSF isn't interpreted and the JSF code appears in HTML. Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml...

ViewExpired exception while trying to load balance http requests

I am trying to run the jboss server (5.1.0) in clustered mode. I am having two nodes in the same host. When i access the two nodes as separate URLs it works well. I am using a Apache HTTP server to load balance my requests using the Proxy balancer (with proxy pass, proxy reverse configurations). When I access the Apache server URL, it t...

How does scope type affect the way an EntityQuery object is re-used

for (...) { UserList userList = (UserList) Component.getInstance(UserList.class, ScopeType.METHOD); userList.getUserByEmailAddress(emailId); } There are different ScopeTypes which are supported by Seam (e.g. METHOD, PAGE, EVENT, APPLICATION). We currently use the METHOD scope to retrieve User object by email id. The above code ...

How to compile facelets?

Many times I had errors like: -tag is not closed(xml error) -xhtml has duplicated id Id like to write validator to check is those errors exist in files. I bet there is some facelets compiler that compile xhtml into java classes and than validates it. ...

How to pass query parameters to the EntityQuery interface

The following link passes query parameters as f:param and they get substituted in Users.page.xml, and these parameters appear as query parameters in the browse URL which we would like to not show to the end user. Is there an alternate mechanism to pass parameters to the entity query bean <rich:menuItem> <s:link value="Users" view="/...

seam-gen reverse engineering

hi guys, I just realized that seam-gen creates wrong entities for one to many relationships by default. First it uses HashSet instead of List, how can I change that? This is my schema: category(category_id, category_description, workgroup_id) subcategory(subcategory_id, subcategory_description, category_id) This is what should be cre...

Seam Hibernate Cannot open Connection

I am trying to create a menu. And, for some reason I get "org.hibernate.exception.GenericJDBCException: Cannot open connection" error, but same project works just fine on my desktop, I don't get it. Here is the stack trace: javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.GenericJDBCException: Cannot open connect...