seam

parameter value lost (seam framework)

Hi, After clicking on an image, the user is redirected to a new page like: /viewPalermoUser.seam?accountId=100245 with the code: <s:link title="#{messages['palermo.userlist.view']}" view="/portal/custom/palermo/administration/viewPalermoUser.xhtml" propagation="none"> <f:param name=...

Facebook sharing feature on seam

Good morning all. I'm developing a web application, using Seam. I have the following problem: I have my site with Locale set to "en". I'm trying to share a specific page: ../pt/news.xhtml?id=8 The first portion of this url (/pt/) "tells" the webserver that the article displayed on news.xhtml page with id=8 must be in portuguese. To do...

Is it possible to use Seam in a JBoss timed service?

I've started to write some new JBoss timed service that was meant to use some existing seam components. But it seems that I can't access these components because of non-existing contexts. Is it possible to use them other than in the typical situation with JSF? A little snippet to demonstrate what I want to do... @Service public class M...

How to set a define inside other define

Hi all! I'm developing a web application in jboss, seam, richfaces. I'm using a template(xhtml) as master page of all others and there i set two insert tags. <ui:insert name="head"/> <ui:insert name="body"/> The problem is that in pages that use this master page as template, the <ui:define name="head">...</ui:define> must be defined i...

seam-gen doesn't generate EntityQuery interfaces for @ManyToMany members

@org.jboss.seam.annotations.security.management.UserRoles exposed in the User interface returns a simple List method. seam-gen doesn't generate EntityQuery interfaces for @ManyToMany members like the getUserRoles mentioned above. How do we enable this, so that the resultant roles are shown in a paginated fashion. Edit 1: This is the ...

Cross field validation with Hibernate Validator (3.1.0.GA)

How do we enforce cross field validation with hibernate validator 3.1.0.GA create table user (id, start_date, end_date, ...) e.g. college graduation finishing date for a student should be greater than the graduation start date How do we enforce this, so that the validation messages can be shown in the UI on save / update operations. T...

Seam outjections will be removed ?

Hi, Jacob Orshalick (author of Seam Framework: Experience the Evolution of Java EE ) said: Outjection allows you to make variables available from the current context for injection or access through EL. This can be beneficial if you want to loosely couple several components that inject the same context variable (like the current use...

How to reorder input field

I haved generated simple CRUD application from seam-gen using seam generate-ui command, but the edit page for insert data into database was genated and orderd by name. For example if entity class contain name,lastname and age. Seam-gen will generate and ordered field list to age,lastname, and name (order by name). The question is how d...

i got the following error while deploying seam application

Exception during request processing: Caused by javax.servlet.ServletException with message: "#{registration.register}: javax.ejb.EJBTransactionRolledbackException" javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.cat...

conditional check in c:if always fails

The c:if test always fails for me and it never gets inside the loop. I am using the following namespaces xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:c="http://java.sun.com/jstl/core" The string ('array') to be split is "Tom and Jerry are GAP1 friends" <s:decorate template="/layout/display-text.xhtml"> <c:set var="arra...

How can I start a process on the start of a Seam application

I tried annotating the class with the scopetype APPLICATION and a method with the @Create, @Beg, but this doesn't seem to work. What I want is to start an infinite loop right when the application starts. ...

Seam2.2.0GA facesMessages.addFromResourceBundle() doesn't work with JBoss5.1.0GA

It seems a bug of Seam2.2.0GA or I missed something, here is the senario: use seam-gen generated the dummy project, change the AuthenticatorBean.java in the hot folder: add: @In FacesMessages facesMessages; public boolean authenticate() { ... facesMessages.addFromResourceBundle("hello"); } also change the *.war/WEB-INF/classes/mes...

c:forEach doesn't render inside rich:dataTable

I am using c:forEach inside rich:dataTable. But c:forEach doesn't substitute the values for answer.choices variable and hence nothing is rendered. Is it wrong to use c:forEach inside a rich:dataTable? ...

Using a4j:repeat or ui:repeat inside rich:dataTable doesn't render radio buttons properly

While using <c:forEach> the items values is not substituted properly. If i use <a4j:repeat> or <ui:repeat> instead of <c:forEach> inside a <rich:dataTable>, radio button is not rendering properly. I also found reason for this in http://community.jboss.org/wiki/Cantusea4jrepeattoiteratethemenuItemstabsetc How do I resolve this issue? <f...

what is seam api?

what is seam api and what are the advantages of using it? ...

checks for constraint violation before persisting an entity

What is the best mechanism for preventing constraint violation checks before creation | modification of an entity? Suppose if the 'User' entity has 'loginid' as the unique constraint, would it be wise to check if there is an user entry already with this loginid name before creation or modification. OR Would you let the database throw...

Image storage as a service

Google App Engine provides a image API for storing / retrieving images. We are currently not in a position to deploy our application on top of App Engine because of limitations in the java frameworks (jboss seam 2.2.0) we are using to build our j2ee application. We would eventually want to deploy our production application on top of Goo...

Image uploader + crop

Hello! I'm running a web application built on Seam. I would like to have an image upload + crop component.Preferably on client side, so the image uploaded to the server would be the result of the crop. I read this can be made with Flash 10. I was thinking flex is also a possibility. Does anyone has good hints to give me, what component ...

How to access javascript value in a4j

Hi there. I need to set a Bean value with one javascript return value. Something like: <script type="text/javascript"> function getUserId(){ return 4; } </script> <h:inputText name="lala" value="getUserId()"/> Thanks ...

How to display the appropriate message (info or warn) in s:decorate?

I am actually checking for availability of a login name and would like to show the info image or warn image with an appropriate message. Currently we get 2 error messages on non availability of a login name. <s:decorate id="loginIdField" template="/layout/edit.xhtml"> <ui:define name="label">Desired Login Na...