seam

How to re-render a RichFaces component after a4j link is invoked

Hoping someone can help me with a slight hurdle I've come up against in regards to re-rendering of RichFaces components after an a4j link/button has performed it's action. A simplified version of my problem is as follows: I have 2 output components displaying a text value which are rendered based on some value in my manager class: <h:...

Seam RestEasy Webservices are not Working when Application is configured for Seam JBPM

Hi All, I have a Requirement for JBPM. so i included JBPM Configuration in the web.xml and done all the necessary changes. because of this the Existing RestEasy services in the Application are not running.if i comment the JBPM configuraiton in Web,xml RestEasy services are working. i couldn't figure out the Problem. please help me on th...

Best practice for including version info in Java web apps and libraries?

I'm working on a project that is implementing a number Java web applications (and associated JAR files) using Seam. What is considered best practice with regard to including version information in deployments? What I need to understand is how web applications should contain and publish their versions and how the same can be done for JA...

Java Seamframework - Restful URLs - How to?

Hey there, I'm planning on starting a web project, and I've been searching for the best option. Ultimately I choose to stick with Java + Seam + J Boss AS + JPA Hibernate. But regarding URL Rewriting its been a really long run, without many accomplishments. I'll have a hierarchical structure, Ex. Category -> Sub-category -> Sub-sub-cat...

How can I block HTTP session timeouts in my Seam applications?

We have a rather restrictive architecture where we have a portal-like Seam application which launches further 'child' Seam applications inside an iFrame. We have a problem where the portal application's HTTP session times out even though the 'child' applications are still being used. We need to keep the HTTP session timeouts to keep th...

How can i change the unsorted icon for a rich:column?

Hi, Is there a way to change the default unsorted icon for a rich:column? I am aware that you can add sortIcon="/images/myPic.png", but i don't want to have to add that for every single column. I tried adding an attribute selector to my CSS file to "hide" the image: img[src="/app/a4j/g/3_3_0.GAorg.richfaces.renderkit.html.iconimages....

How do you unit test Jboss Rules (Drools) rules?

I have written a few Drools rules for my Seam application and am wondering how I go about unit testing these. Does anybody have any sample code that can show me how to go about doing this? ...

Seam: programatically set s:decorate to invalid state.

If you've used JBoss SEAM you've probably used the s:decorate tag. Quite a handy tag. Anyway I need to a way to set its invalid state through java. I've bound the xml tags to UIDecorate instance but I'll be damned if I can figure out how to set the 'invalid' state so that the decorator will apply the appropriate error CSS classes when...

How to profile session memory usage in Java/Seam web application?

Is there any way/tool to profile per-session memory usage in a Java web application? More specifically I'm using Seam and I have a few objects which are specific for the user or for the user's current session so they're set to be stored in the user's session. Some time ago my application would run out of memory when hitting a certain n...

Auto logon on SEAM + JSF

My webapp needs to auto-login when the user access the app url: example: http://myapp/home.xhtml?token={3bcdc006-05fc-4ce1-953a-17375edcf2a2} on my pages.xml i have the following: <pages xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com...

how to disable action execution on ajax requests

INITIAL POSITION: We are using SEAM together with RICHFACES. We've got the following page configuration with an action (called actionBean.doBefore), that should be executed once on page load: <page> <action execute="#{actionBean.doBefore}"/> <navigation from-action="#{actionBean.doAfter}"> <redirect view-id="/view/component/...

Reloading a configuration file under jBoss

Hello everyone. Inspired by how Log4j reload its configuration files everytime I change it, I wrote a similar mbean task that read my xml file put in server/(myconfig)/conf Now I need to access it from my web application, which is in the deploy folder packaged as a .war file (it's a SEAM application). Should I create a method in the ...

How to get current EAR location programmatically with JBoss

Hi there! Does anyone know how to get programmatically the absolute path in the filesystem for an EAR deployed in JBoss, from Java code within that same EAR? I need this because I want to copy some files that are inside the EAR to another part of the filesystem, on deploy-time. Thank you everyone! ...

Session objects into Seam Interceptors

Hello guys, once more i'm here asking help on seam subject. Currently we have the following interceptor for audit @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Interceptors(LoggingInterceptor.class) public @interface IAuditavel { } and the interceptor itself private EntityManager em; @Logger private Log lo...

Are there any disadvantages to SEAM?

As a java web applications developer I have used this last year JSF (SUN) for a framework to my web applications. I have to say I quite liked using it, it makes the developing easier. Recently, I have read a lot of good things about JBoss Seam, but I still haven't encountered a person that has used it. From what I have read it seems tha...

Prettyfaces with Seam beans

Hi, Trying to solve this problem for two days without any luck. The problem occur when i try to define a url-mapping in pretty-config.xml that relay on a bean created with Seam <url-mapping id="test"> <pattern>/test/#{testBean.param}</pattern> <view-id>/test.faces</view-id> </url-mapping> bean source: package com.web.jsfbean; impo...

Seam 2.2 and JBoss Tools 3.1, Why JBoss Tools doesnt work anymore?

Hello Stackoverflow, I've downloaded the new Seam 2.2GA but it doesn't work with the current version of JBoss Tools 3.1. Anyone had any luck making those work together again? Is there a new version of JBoss Tools out somewhere? maybe a beta, something you can get back to generating Seam projects in eclipse, rather than using the seam-...

Using Nuxeo, how do I lock down a page so that it redirects to the login page if the user is unauthenticated?

I have been put on to a project using Nuxeo, late in it's lifecycle and need to change a few things before it goes live. I am having trouble finding out where I need to look to lock down a Nuxeo based application so that a user is redirected to the login page if they are unauthorised and access a restricted page. Can someone please sho...

Seam and Dojo vs RichFace or IceFace ..

I am just scratching my head on using DoJo in Seam in place of RichFaces or IceFace. I couldn't find any article or tutorial out there in the web. The reason for my question is that Iam coming out of a DoJo/Domino project and like to have this project in J2EE/Seam/DoJo. Appreciate any input... TIA. ...

Jbpm ProcessDefinition has always version -1

Hi. I have a strange behaviour going on. I am using Seam and JBPM. When I say: ProcessDefinition templateDefinition = Jbpm.instance().getProcessDefinitionFromResource(ap.getJpdl()); //This will return Enkeltanledning.jpdl.xml templateDefinition.getVersion(); It always returns -1. However, when I select from the database, I get versi...