seam

How to integrate seam with jQuery

Our project is developed with seam. Customer changes the UI and provided the UI prototype using jQuery. Now we are facing lots of trouble integrating jQuery into seam. Customer wanted more rich UI. (1) How do I create modal-popup in seam. Any basic code?? (2) How do I call partial submit (or ajax call) using jQuery? In other words how d...

Porting Jboss/Seam App to newer versions

Hi, I have a Web App running using SEAM 2.0.2 on JBoss 4.2. When I tried to run it using Seam 2.1 and JBoss 5, all sorts of problems arised. Is there a porting guide available for this scenario that you're aware of ? Thanks. ...

How can I to order an EntityQuery query in a seam app?

My project was originally generated by seam-gen and the action "List" bean, OfficeViewList looks pretty much like it did when first generated. The bean extends EntityQuery. Now I want to order the results. What is the best way to do this? Do I want to add some kind of "order by" class to my EJBQL? Or do I want to set the select order...

What is the best method to GZIP a JSF-Seam web app pages

Hi, I'm developing an JSF web app on Tomcat, planning to use Seam in the near future, and I want to add compression of our web pages and resources (i.e. Javascript & CSS files). I'm aware of three methods to GZIP responses in a Java web : Use Ehcache GZIP filter: it's used in Appfuse, so it's probably solid and it checks if the user a...

Annotations through Applications in Seam

I want to split up my project in diffrent modules so i can just swap them out if needed. Atm i just Jboss Developer Studio. So i want my templates , login etc to be in 1 module/Application Then i want to be able to access thease annotations and beans in another application. Is this possible to do ? Or is this seperation of modules ...

Has anyone successfully run integration tests with Jboss embedded, Seam and Maven?

Have been trying to get integration testing working with my seam project and the Jboss embedded container but am not having much success. Have been doing a lot of reading and have been trying what is mentioned in this JIRA but am not having any luck. Amy currently just trying to get the 'testproject-master-JBSEAM-2371.zip' project work...

Seam - No Active Event Context

Hi all, I am having problems with my Seam application, I'm not sure if it is from using Maven along with Jetty for testing or simply a misconfiguration on my part. The error I am getting is rather simple, when Seam attempts to close the event context, it expects it to be open and it must have already been closed by something else. The...

how to personnalize item display in a JSF selectOneMenu component ?

Hello, I am actually using h:selectOneMenu to display items, given to it from f:selectItems tag. Rather than displaying a text, I wanna prefer to display an image. How is it possible, since there I have not found any way to render html coming from the selectItem "value" attribute ? Thanks, here is my current code, without any image d...

accessing request parameters from inside validator

Is there a proper way to access other form fields from inside a validator? Is there another solution than: context.getViewRoot().findComponent("formid:exampleField:example")? f.e I want to validate a city field inside a custom validator and checking if country is US. ...

how is seam proxying classes

seam actually proxies every class for interception. is there a difference between proxied classes and proxied classes that implement interfaces?? f.e. like in spring where a proxy instance is made implementing all interfaces specified in the class. has someone any performance experiences between java.lang.reflect.Proxy vs. cglib or java...

Eclipse j2ee and bundled web tool platform confuses me

Hello good fellas i'm sure everybody is cool.I'm about to start a tutorial about jsp and jsf and the required tool is eclipse for j2ee and web tool platform.I'm a bit confused about where to find it bundled with wtp? and in which distribution is it Europa , Galileo or Ganymede ?.i know that it's here in entreprise java because it's cle...

Best java webframe backend for GWT frontend?

What is the best java based web framework backend for a GWT frontend? Possible Backends: seam, jsf, spring web ... ? Specially I am interested in practical experience and PROS and CONS. Btw: - No dynamic typed Languages please - Have anybody tried seam or spring for this? ...

How to invalidate a field in seam?

I need to validate two user input fields against each other in seam. Field1 must be greater than Field2 for each row in a ui:repeat tag. As of now, i have the two fields wrapped in an s:decorate tag that wraps all input in an s:validateAll tag. This allows me to float an error message out to the right of the fields if validation fails fo...

Java Regular Expression, match everything but

Hi all, I would like to match everything but *.xhtml. I have a servlet listening to *.xhtml and I want another servlet to catch everything else. If I map the Faces Servlet to everything (*), it bombs out when handling icons, stylesheets, and everything that is not a faces request. This is what I've been trying unsuccessfully. Patter...

How to condition navigation in seam on a parameter

I have a Seam application originally generated by seam-gen with a view Search.xhtml. Search.xhtml has a number of input fields, half of which are bound to the Office entity and half to the Devices entity. For example, if you enter a hostname, it is bound to a field in Devices, if you enter a City, it is bound to a field in Office. The...

Constructor injection with JBoss Seam

Hi, I'm new to JBoss Seam. I'd like to know how do I instantiate a class without a no-arg constructor in JBoss Seam. I have to instantiate JsonPrimitive (from Google Gson framework) that has just constructors which receive arguments. How the regular code would be: import com.google.gson.JsonPrimitive; ... JsonPrimitive jsonPrimitive =...

selectBooleanCheckbox in a DataTable in ui:repeat

Hello, I'm having some problem using multiple selectBooleanCheckBox in multiple DataTables in ui:repeat. Something like this <ui:repeat var="f" value="#{mybean.values}"> <rich:dataTable value="#{f.values}" var="v"> <rich:column> <h:selectBooleanCheckbox value="#{mybean.selected[v.id]}"/> </rich:column> ...

Seam view aliases

Hi all, I am running a Seam web application with Richfaces for the JSF implementation. I would like to map a view to a particular URL much like you could with Spring MVC in the Url Map. Here is a snippet of my /WEB-INF/pages.xml <page view-id="*" scheme="http"> <navigation from-action="#{identity.logout}"> <redirect view-id="/cont...

Seam Richfaces form validation

Hi all, My form validation works great, but the messages use the JSF component name and not the field label. For instance, I have a field subject and the error message I get when it is empty is something along the lines of: UIComponent:contactBean.firstName cannot be empty. My Form: <div class="field"> <s:decorate id="firstNameDecor...

Which Seam Context To Use For A Overview Page With Filters (State)

Hi all, I have a overview page containing a list with some links from which multiple workflows can be started (seam conversations). The overview page also has some filters that can be used to search the list. Therefore I would like to keep state (for the filters) on the serverside. At the moment this overview page uses a context of ...