jsf

Is there a list of AJAX JSF Libraries available?

I'm looking for an alternative to www.jsfmatrix.net to get a better idea of what JSF libraries are out there and to avoid having to write my own grid/table components. Or are these 27 the best the world has to offer (really only 3 are worth their salt.) ...

Seam/JSF form submit firing button onclick event

I have a search form with a query builder. The builder is activated by a button. Something like this <h:form id="search_form"> <h:outputLabel for="expression" value="Expression"/> <h:inputText id="expression" required="true" value="#{searcher.expression}"/> <button onclick="openBuilder(); return false;">Open Builder</button> <h:...

How to reduce javax.faces.ViewState in JSF

What is the best way to reduce the size of the viewstate hidden field in JSF? I have noticed that my view state is approximately 40k this goes down to the client and back to the server on every request and response espically coming to the server this is a significant slowdown for the user. My Environment JSF 1.2, MyFaces, Tomcat, Toma...

Handling a colon in an element ID in a CSS selector

JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or something? input#search_form:expression { ///... } ...

Determine the ID of the JSF container form

I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary. included.xhtml <ui:component> <h:inputText id="contained_field"/> <h:commandButton actionListener="#{backingBean.update}" value="Submit"/> </ui:component> example_containing.xh...

Blank Page in JSF

Hello there! If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout. A similar error were reported at this Sun forumn´s post, but without answers. Anyone else with the same problem, or have a solution? ;) Due to some requests. Here follow more datails: web.xml <error-p...

Modular web apps

I've been looking into OSGi recently and think it looks like a really good idea for modular Java apps. However, I was wondering how OSGi would work in a web application, where you don't just have code to worry about - also HTML, images, CSS, that sort of thing. At work we're building an application which has multiple 'tabs', each tab b...

Spring vs. JSF

I have a dilemma at my job. We're looking to integrate two different J2EE projects and they both use different frameworks for the web component. We're also looking to add more dynamic capability/AJAX to it. One uses JSF and the other uses Spring. Basically we're trying to pick one of the projects and integrate them using that technol...

Server-side DataTable Sorting in RichFaces

I have a data table with a variable number of columns and a data scroller. How can I enable server side sorting? I prefer that it be fired by the user clicking the column header. <rich:datascroller for="instanceList" actionListener="#{pageDataModel.pageChange}"/> <rich:dataTable id="instanceList" rows="10" value="#{pageDataModel}" ...

Can I use a Hashtable in a unified EL expression on a c:forEach tag using JSF 1.2 with JSP 2.1?

I have a Hashtable<Integer, Sport> called sportMap and a list of sportIds (List<Integer> sportIds) from my backing bean. The Sport object has a List<String> equipmentList. Can I do the following using the unified EL to get the list of equipment for each sport? <h:dataTable value="#{bean.sportIds}" var="_sportId" > <c:forEach items=...

How to create a GET request with parameters, using JSF and navigation-rules?

Is there a way to create an html link using h:outputLink, other JSF tag or code to create a non faces request (HTTP GET) with request parameters? For example I have the following navigation-rule <navigation-rule> <navigation-case> <from-outcome>showMessage</from-outcome> <to-view-id>/showMessage.jsf</to-view-id> ...

Tomahawk and scrolling tabs

Hello, is there a tomahawk component, that enables "scrollable tabs"? What I mean is something for the following situation: If I have very many tabs, the tab-bar gets a little arrow on the side to scroll through all the open tabs (like in firefox). Is there a tomahawk component for creating something similar? ...

Issues working with JSF redirect and WebTrends

On our new platform we are utilizing JSF. Our WebTrends tags are not reflecting the proper page title on this platform. It currently is displaying the name of the users previous page instead of the current page. We are making use of the JSF Navigation rule in which we have some "< redirect />" tags. Has anyone experienced this and is...

Formatting a double in JSF

I have a problem similar to the one found here : http://stackoverflow.com/questions/86531/jsf-selectitem-label-formatting. What I want to do is to accept a double as a value for my and display it with two decimals. Can this be done in an easy way? I've tried using but that seems to be applied on the value from the inputText that is...

Unified Navigation System for JSF (menus, breadcrumbs, sitemap)

We're using MyFaces, Richfaces & Restfaces to build a website on top of Oracle Stellant CMS. We're not using Site Studio. Are there any widgets/combination of widgets out there that could provide a unified navigation system? The site structure needs to be read from a DB table and CMS metadata fields, and we need a top tab menu, an expand...

What's the best way to let a JSF view generate a response to a non-jsf request?

I have a servlet which is in the same web application as the JSF servlet. How do I replace (rather than redirect) the servlet response with the JSF response? ...

How can jsessionID be suppressed on OC4J?

I'm deploying a JSF (myfaces, restfaces, and richfaces) app to OC4J. I don't want the jsessionid to appear in the status bar or the URL address. I have managed to suppress it in almost all cases. The one case that I still have problems with is when the site is first visited with a "clean" browser (with no cache, history, etc.). In this c...

Navigation on validation failure in Seam/JSF

I've been playing with Seam (2.0.2.SP1) for a few weeks, and I have most of the basics nailed down, but I haven't come up with a decent solution to the following. Suppose I have a form at /foo.xhtml, with a rewrite rule such that URLs like /foo.seam?id=<fooId> are converted to /foo/<fooId>. There's a commandButton on the form with an a...

Relocate JSF-generated javascript

I am using lots of commandLinks in my app. For them to work, JSF generates some wild Javascript ( function dpf(f) {var adp... ). Sadly, the script-tag destroys my layout. (It really does - I am sure about that). Is there a way to force JSF to generate the script-tag somewhere else? ...

Combining different javascript objects rendered by multiple components

I have a component which writes/generates javascript from a server side renderer. This component can be used in multiple times in a same page. However, once the page is loaded I have to collect all the variables or JSO written by this multiple components in the page. How can I do this so that I will have a collection of all the variables...