seam

How to use the entity query framework to model the following query

We have a query which needs to check if a certain integer field points is not null and if appointmentDate is before current date? How do I write the restrictions expression for the above scenario? @Entity public class User { ... Integer points; Date appointmentDate; ... } ...

Getting JBoss Seam to work with Eclipse

I have been trying to get to run a simple example project with JBoss Seam in Eclipse 3.5. So far unsuccessfully. What i did: I set up a MySQL server that i can connect to using eclipse's data tools. I installed Tomcat 6.0 and set it up as a server in eclipse I installed the "JBossAS Tools" v2.2.0 plugin I created a new Seam Project us...

jbpm questions before project start

I need to evaluate the jbpm workflow engine at this time, after read the documentation I got following questions, if someone can point me any hints will be greatly appreciated(sample code for these questions is preferable)! I know jbpm can generate the UI for task with the help of eclipse plugin, is it easy to modify the generated UI...

Redirect to external website with post parameters in JBoss Seam?

Hi, I have to integrate the Moneybooker Payment Service to an existing Seam Application. Regarding to the documentation, I have to pass parameters to moneybookers via POST. My question is, how to pass parameters via POST to an external website? I know I am able to redirect to an external website via "FacesContext.getCurrentInstance().g...

How to add a jar to the server lib for *embedded* JBoss?

I need to add a crypto provider to the embedded JBoss used by Seam for integration tests. For the regular JBoss it's a simple matter, just drop the files into the /lib folder of the server instance. With the embedded JBoss, however, things seem to be different. I've tried putting the jars in /embedded-jboss/bootstrap/lib and /embedded-j...

Learning Curves for Java Frameworks

We're considering experimenting with a new Java framework for building some internal web apps. We have a mixture of Perl/Ruby/Java programmers and are trying to standardize as much as possible. I'm familiar with what each of the following bring to the table, but am unclear on what the actually learning curves are and how they compare: ...

Getting warning: "There should only be one Seam phase listener per application" while starting native tomcat with exploded wars from IntelliJ

I have two web application projects which are related. One is the website itself and the other one serves the static resources (css, JS) for the website. I'm trying to run a native tomcat6 instance from IntelliJ and deploy the two exploded wars. When I run my configuration I get the following warning: WARN [org.jboss.seam.jsf.SeamPhase...

SEAM GWT Integration

Hi, I am trying to integrate GWT with SEAM. i followed the Docs and tried to run the example as follows. I created a GWT project, using Eclipse Galileo and created the classes as given in the example I then added the Seam 2.0.2 jars to the build path I compiled the application, using Google GWT Compiler using the eclipse UI. Final...

Calling Oracle functions from EJB in Seam framework

Hi, I am using seam framework and struggling to call a Oracle function. In my EJB, I am creating a namedQuery and when I call my entityManager.getResult() I get the following error: PLS-00222: no function with name 'jjhg' exists in the scope. (jjhg is the name of my oracle function) Please help. This is a bit urgent for me ...

Get context-param in asynchronous method seam

Hi guys, I want to get a context-param configure in my web.xml. In a method call normally (with seam 2.2.0), I do this: readDirectory = (String) FacesContext.getCurrentInstance() .getExternalContext().getInitParameter( "ReadDirectory"); It's work fine, but in asynchronous method (@Asynchronous)...

Assigning a Seam Component as An event handler to GWT Button

Hi I am designing a web application which will use gwt and seam. I have gone through the examples provided by Seam docs. There the proposed solution is to use remoting to hook gwt widgets to seam components. Is there any other technique by which this can be achieved ? ...

How to block an IP with Seam and JBoss AS?

Hi, for security reasons, we want to block users by IP adress in our application, if they are trying to login as admin and they type in the a wrong password 3 times. It is very easy to get the IP Adress of the user trying to login. I use this code snippet to get the IP: ExternalContext context = FacesContext.getCurrentInstance().getEx...

JBoss seam: are inherited methods intercepted?

If I extend a standard Java Class and make the subclass a Seam component, are the inherited methods going to have the overhead of interception? In other words, do I have to Override them and annotate them with @BypassInterceptors? ...

Problem with css richfaces (on seam)

Hi guys, I have a problem with the css generated by richfaces. When I deploy my application with eclipse, sometimes I have css, sometimes not. I have found that richfaces generate this file: http://localhost:7001/myproject/a4j/s/3_3_3.Final/stylesheet/theme.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__ And when this file is empty, I have none c...

Skin problem with richfaces on Weblogic 10.3

Hi guys, I have a big problem with richfaces and weblogic 10.3. I use seam 2.2.0 on weblogic for my project. All jsf and richfaces fonctionnalities work fine except one. The skin doesn't work, nothing is skinned so my application has none css and it's very dumpy. What is wrong in my configuration ? Thanks. Here is my richfaces confi...

Injection From Pages.xml (Seam)

Hi all, Does anyone know if I can inject value from pages.xml into a Seam component? In pages.xml there seems to be an in element that would indicate I can but I can't figure out how to use it & documentation is lacking. I'm trying to set a value in a component that varies from page to page. It needs to be set for page load & I don't...

Is there other way to perform Seam conversation to to handle multiple pageflow in web application?

I am reading book, Practical JBoss Seam Project. In the page 74, author mentioned "motivation for conversations". The concept is to handle multiple pageflow that user can have different sessions for the same page. For details to click here. I google this idea about conversation but I can't get good answer. My question is if I don't use S...

RENDER_RESPONSE takes to long in seam

Hi, I write application using JBOSS Seam with Richfaces. Unfortunately some pages of it load very long especially when I want to show about 100 rows (or more) in table . Getting response from database takes about 2453 ms, so it is quite well. However the phase RENDER_RESPONSE takes about 23750 ms, so it is unacceptable. The object which ...

Seam Page Action Not Being Called

I've got a page that displays an entity, but before rendering the page I need to perform a lookup of the entity based on a parameter that is passed in. To do this, I'm trying to use a Seam Page Action declared in my pages.xml file to call the lookup action before rendering the page. My setup looks like this: pages.xml: <page view-id=...

What is the 'official' SEAM way of listening to JSF-SEAM phases?

A simple question on the title. My case is that I want to listen to "before RENDER_RESPONSE" phase, and alter some components internal state. Is PhaseListener the "right way" to do this in SEAM applications? ...