seam

java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator Seam weblogic 10.3

Hi guys, I have a big problem with Hibernate (use with seam) on weblogic 10.3. When I publish my application, I get this error: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations....

seam generate entities and ui isnt working

i am using seam 2.2.0 GA and i have created a project and try to generate entities and ui but it doesnt work and it doesnt show any relevant errors, here is the output, what am i missing?, any help please thanks a lot. SEAM_HOME: C:\java\opt\jboss-seam-2.2.0.GA Using seam-gen sources from: C:\java\opt\jboss-seam-2.2.0.GA\seam-gen Bui...

JBoss Seam: inject in @Create method possible?

Hi all, I cannot seem to be able to inject a Seam component inside the @Create method. I cannot find in the documentation any hint that this is not possible, which would verify whether I am making a mistake or not. Is it possible to inject inside the @Create? Cheers! ...

Seam Hibernate Serves same EntityManger instance to two separate threads

Hi, I am new to the Java / Hibernate / Seam way of development but I appear to have a strange issue with Hibernate and concurrent threads. I have a application scoped Seam component which is executed via EJB timers at a set interval (Orchestrator.java) calling the method startProcessingWorkloads. This method has a injected EntityManag...

Seam DataModel cannot be cast to ArrayList

I am new to SEAM trying out from a generated app some changes. Like implementing a data SelectOneMenu where I can show data from a table in a form. I am getting the following exception java.util.ArrayList cannot be cast to javax.faces.model.DataModel It may be something very basic but I haven't found any good examples. Maybe some...

Session timeout and re-direction on login

On session timeout we re-direct to the login page and if the user logs back into the portal he gets re-directed to the page he was trying to navigate in the first place. In our case, the re-directed page tries to fetch values from the session and it fails badly with exceptions and it works just fine when there is no dependency on pages ...

How to specify the name of the generate file to the e:worksheet function

We use the jboss seam-->excel module integration for generating excel sheets using e:worksheet. But the downloaded file name comes out as ExportUsers.jxl.xls, I would rather see this as ExportUsers.xls. How do I customize this information. ...

Are JSF/Seam/Spring suited for non-enterprise work? (website, not "web application")

I'm starting work on a new website (sort of an e-commerce product comparison thing) and I'm trying to choose what technologies to build it on. I've ruled out PHP and I don't think I want to use Python or Ruby. I really like Java and Hibernate so I started looking into Java-based web technologies. My problem is that all of the documentat...

How to dynamically pass arguments to messages in the resource bundle

I would like to retrieve the message information from the i18n bundle (messages.properties in seam), but I am not sure how to pass the declare / pass the jobCount variable dynamically in my xhtml The existing code looks like this. <s:decorate template="/layout/panel-name.xhtml"> <ui:define name="label">User has been assigned #{jobC...

Seam - @In Identity identity not injecting & throws nullpointer exception

I am using Seam 2.0 and I have an instance variable inside my bean as @In Identity identity and when I use identity.getUserName() it throws NullPointerException. Can anyone tell me please what I am missing here additionally? Update: I have defined bean instance variable as below: @In Identity identity; Then in my bean construc...

Define different styles in the rich:editor in richfaces.

I want to add a rich:editor (the one based on tinyMCE) richfaces component to my Seam web application, and on that editor I need to pass somehow a CSS file with a collection of css classes. So that someone editing the content of a specific page can use the same styles available to all the other static parts of the web app. Did someone ...

JBoss Seam Design Patterns?

I've really taken a liking to the JBoss Seam application framework. Since the notion of injection/outjection and tight integration between JSF/EJBs/JPA is relatively scarce among Java application frameworks, I was looking for some good resources for design patterns and best practices for using this framework. I've poured over the examp...

Unable to select a particular radio button choice by clicking on the choice text

<s:decorate template="/layout/display-text.xhtml"> <h:selectOneRadio layout="pageDirection" value="#{_userHome.pref}"> <f:selectItems value="#{_userHome.getPreferences()}" /> </h:selectOneRadio> </s:decorate> We are able to select the user p...

How to get permission's role with seam

Hi, I need in my application to get all permissions associated with a specific role with seam ? I tried with permissionManager.listPermissions but this method gives permissions associated with a specific target and not a specific recipient (role in my case). Thanks for your help. ...

How can I configure a server in Eclipse?

When I start my Tomcat server, I am getting a problem described by the error messages listed below. How can I resolve this problem? Aug 5, 2010 10:25:13 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:...

Seam - EJB3 in Web Module/WAR?

I'm writing an application using Seam 2.2.x which will be deployed on JBoss 5.1. I have an EJB module with all of the business logic en EJB's. However, I'd also like to have statless session EJBs in the web module to act as action classes. Is this possible? Do I need to perform any additional configuration to get this working? I hav...

Help me to understand SEAM and Hibernate?

Hi, I want to use SEAM Framework with Hibernate but do not want to use EJB. I cannot use EJB. First question is, can I use EntityManager? or is EntityManager a part of EJB? How can I get access to use Hibernate in my SEAM component? Thanks, Philip ...

Seam LDAP, update user details

Hi, I am trying to update user details like firstName, lastName, emailAddress especially using Seam's IdentityManager API bit do not see any method for updating the LDAP. Is there a reason for not providing LDAP update method and if so what is the best way to update the details. Versions used: Seam-2-1.2 JBoss-4.2.3 openLDAP Thanks. ...

IdentityManager seam problem

Hi, I have a problem with IdentityManager and seam. I explain my problem: In my application, I have a page to add permission to a role. The method to save it is here: JpaPermissionStore jpaPermissionStore = (JpaPermissionStore) Component.getInstance("org.jboss.seam.security.jpaPermissionStore", true); List<Permission> permissio...

Is there an elegant way to handle the rendered check much similar to an if else block

In the following scenario, the "hasA" condition is checked twice, is there a way to mimic this much similar to a if/else block so that the condition is evaluated only once <s:decorate template="/layout/display.xhtml"> <h:outputText value="Print A." rendered="#{hasA}"/> <h:outputText value="Pri...