seam

SEAM ENTITYQUERY - Problems with Restriction seam-gem example

My project was originally generated by seam-gen and the action "List" bean is not working as i expected. The restriction array has all the attributes from table and is behaving as if all the parameter were mandatory. See the List Bellow: package br.com.autenticis.comvenif_red_web.session; import br.com.autenticis.comvenif_red_web.entit...

What is the default scope of an entity-manager-factory Seam component?

When we declare persistence units in Seam's components.xml, there's almost always a <persistence:entity-manager-factory> and a <persistence:managed-persistence-context>. Those two elements can have a scope attribute. What's the default scope of those two components? It's not stated in the xsd. ...

Project to isolate entities in Seam

Hi guys, Is it possible to have a Seam project just for entities (src/main) and other projects access them ? I have a situation that a organization has 6 projects accessing the same entities and i don't want to replicate them in each project. If it is possible, how can i do that ? where can i found documentation about it ? thanks, C...

How to download file from inside Seam PDF

...

Multiple pages in portlet

Hello everyone, i'm facing the following problem, there are two pages (views) in my portlet, first with rich:tree of components and the second with create/edit form for this components. On the first page i have the following code: <s:link value="#{treeitem.name}" view="/view/testSet/testSetCreation.xhtml"> <a4j:support event="oncl...

Do not understand passing parameters in seam

As I debug my seam application, it dawns on me that I don't really understand how parameter passing works. The following terminology really has me confused. So I am asking this very general question in the hopes of getting a good explanation of what works with what and what certain things are for. First of all, to get from one page to...

EJB into SEAM Component (Different projects and same JBoss)

Hey guys, I have the following setup: JBoss 4.2.3 under that i have: --> Project A (Wich is not SEAM 2.1.2GA based) EJBs: * beanA (JNDI = beanA/remote) * beanB (JNDI = beanB/remote) --> Project B (SEAM based) EJBs / Components: * ComponentX * ComponentY On component X i have the current pie...

With which versions of GWT does Seam work?

Hello, I recently tried to combine SEAM and GWT in a project - but failed using GWT 1.7.1 and Seam 2.1.2 CR2 and Seam 2.2.0 GA (if you have any ideas why - here is the post). I was wondering: Do you have any experiences which versions of GWT work with which version of SEAM out of the box? With workarounds? Thx! (PS: For Seam < 2.1.0 an...

Seam: login using external SSO application

I have a Seam application that have to use an external one to login. The logic is as follows: My app sends user to external SSO URL User does what it takes to authenticate there On success, the external app redirects user back to my app with a random token My code should contact the external app via HTTP with the passed token and get...

How to implement a data-based ComboBox control with GraniteDS?

I'm trying to integrate Seam and Flex with GraniteDS, with the goal of implemenenting a code generation tool for main use cases of CRUD operations. One of my needs is to have the possibility to generate a combo box to reference a parent entity from another. For example, a state combo box in my county edition/creation screen. My first a...

How do you create a DAO class for Seam / JPA (hibernate)?

Hi, I'm learning Seam and JPA/Hibernate and while I could find some examples on how to build a DAO class with Hibernate I'm a bit confused on how to do the same thing with Seam (or even if that is at all necessary). I do know that seam manages the transactions using its conversations so I don't (?) have to worry about committing / roll...

Seam validation question - check for at least one field filled

I have a situation in my form that the user must fill at least one of the fields. Using "required" command, i cannot do that. What is the best way to validate this in seam ? i dont want to use javascript. Thanks! ...

Sending Email: JBoss AS-5.1 + Seam-2.2

Hello, could anybody tell me if it is possible to send email from localhost using JBoss AS-5.1 + Seam-2.2? I've tryed launching mail example which goes with Seam, but the result is unsatisfactory. Clicking the "Send Plain Text Email" button leads to the following message: Email sending failed: Could not connect to SMTP host: loca...

JSF selectManyCheckbox

Hello! I'm having a hard time with a selectManyCheckbox. Basically what I am doing is loading a List of Categories in a selectManyCheckbox type controller (have done this either with a List or with a List with convertEntity). My problem is with the selected elements (value="#{cardListProvider.categoriesHolder.selectedCategories}"). Afte...

Seam cache provider with ehcache null

Hi every one, I'm trying to configure seam/ehcache following the tutorial from jboss page: http://docs.jboss.org/seam/2.1.2/reference/en-US/html/cache.html I put the ehcache.1.2.3.jar in project.ear/lib and injected CacheProvider as especified, but the CacheProvider always return null. The documentation doesn't show any aditional conf...

Help With TreeCache (Jboss Cache) configuration for 2 entity manager

Hi guys, I'm in a big trouble at moment. I need to configure a cluster cache for my seam application, but i'm having problem beacuse i have 2 entity managers, one for oracle and other one for mysql. If i remove mysql persistence-unit and entity manager, everything works fine, but when it is active the following error is displayed: org...

jboss seam deployment error

I am using the JBoss Tools to deploy a seam application to a JBoss server from within eclipse. I am consistently seeing a strange behavior. Every time the .xhtml files are changed the seam application is auto-deployed as expected. However, the entity manager instance is becoming null and I am forced forced to restart the seam application...

JSF a4j:commandLink component doesn't work inside a4j:repeat

Hi guys! I have such code in my JSF template: <h:form> <table id="users" cellspacing="0"> <a4j:repeat var="person" value="#{personList}"> <tr> <td class="col1"> <a4j:commandLink disabled="#{!canCreatePerson}" styleClass="#{canCreatePerson ? '' : 'inactive_link'}" action="#{adminPageController.create}" reRend...

What is a simple example of using Seam's MockExternalContext to unit test?

I'm trying to unit test my seam components, and so far I've been doing pretty well with the EasyMock that my team has been using. However, I have run into a wall with javax.faces.context.ExternalContext. Since it's not an interface, I can't run EasyMock.createMock() on it. Seam has a MockExternalContext, but I have no idea how to use ...

About ending conversation in SEAM 2.1.2

Hi guys, I have a question about seam 2.1.2 I want to end a conversation when the user click in menu, but this must be done in menu.xhtml or pages.xml. I need this because i have the following problem: click page 'A' in menu click in "search" button to show the list A. forget about list 'A' and click in page 'B' in menu. click in "se...