jsf

JBoss Richfaces ModalPanel - condition based invokation

I am using JBoss Richfaces and I need to invoke rich:modalPanel when a particular condition happens. The sample code is here-- This is the modalpanel <rich:modalPanel id="show_alert" height="125" width="325" zindex="2000"> <h:outputText value="shamik testing"/><br/> <a4j:commandButton value="#{uiLabel.no}" onclick="# ...

Firefox requesting images slowly

I have created a simple JSF image browsing app, and I'm having a problem with firefox. The app itself is running inside Tomcat. The pictures are stored in a directory that is served by Apache. I've got 9 pictures that get shown on a page. The servers are on a machine separate from the client. When I try to load the page in firefox...

JSF commandButton with immediate="true"

I have a situation where there is a selectOneMenu that has a value bound to a backing bean. I need to have a button that doesn't update model values (that is why it has immediate="true" property). That button's action method changes the value the selectOneMenu is bound to, but when the page is redisplayed the original value is displaye...

JSF JSTL problem with nested forEach

Inside a nested foreach, accessing the same variable is returning different values. This happens when the page is reloaded, not on first load. <ui:composition xmlns="http://www.w3.org/1999/xhtml" (...) xmlns:c="http://java.sun.com/jstl/core" xmlns:h="http://java.sun.com/jsf/html"&gt; (...) <c:forEach items="#{controller.av...

Howto make javax.faces.model.SelectItem selected

I'm creating a List of javax.faces.model.SelectItem (in a bean) for use with a h:selectManyCheckbox but I cannot figure out how to make a SelectItem selected. Does anyone know how to do this? Must be possible, right?... public List<SelectItem> getPlayerList(String teamName) { List<SelectItem> list = new ArrayList<SelectItem>(); ...

How do I stop richfaces adding borders to panels and calendars?

I'm hoping to use a custom richfaces skin to handle the bulk of my presentation work. Unfortunately richfaces renders borders around every cell in a calendar component and around each panel. I would like to turn them off so that day numbers site in an open grid with no borders. There is no obvious way to do that using skins or attributes...

date+time picker for jsf

Is there any ready-to-use component for JSF that allows to chose the Date + the Time of an event? All components I know only allow for date. adding time manually is tedious. ...

JSF Tuning

Running into an issue where JSF is filling up our sessions. We had a system crash the other day. Sent the Heap to IBM for review and found that we had some sessions as large as 50M. They found JSF components in the session and some very large. So, is there any tuning that can be done? Configuration items to look at? Or other directi...

back commandbutton in jsf

how would one implement a back-button as a commandbutton that works universally? with back button i don't mean the browser-button, but rather a button that sits somewhere on the page. it is not always possible to use the Post-redirect-get pattern. its quite impractial to pass around the information on every single where the button shoul...

JSF tutorials

Are there any good JSF tutorials? Let's say I'm new to JSF. Any way that my skills would get up to speed? Any good sites? ...

JSF ResponseWriter custom components

I know about startElement, endElement, and writeAttribute methods on ResponseWriter. My problem is that I want to for example output a h:commandLink by declaring it like HtmlCommandLink link = new HtmlCommandLink(); . How can I output other UIComponents like this in my own component? I might want to use some RichFaces ajax stuff in my c...

How to add existing JSF components to my own custom components?

Hello! I have a tag class which extends UIComponent and UIOutput. In this class I have encodeBegin and encodeEnd which I can use my contextWriter to output any kinda html tag I want too by using writer.startElement("div", myComponent) and so on. My problem now is that I need to insert for example a instead of using the writer.startEl...

How to render an image with map with JSF/Richfaces ?

I want to perform the followning task using JSF / Richfaces On click of a link - I would like to generate a PNG image with map (portion of the image should be click-able) and render under a panel. When I generate the image, I know the co-ordinates of the image which needs to be click-able. So I can generate the map. But I want to do it...

Compare JSF implementations

I would be glad to get references to resources and people's experience on comparison of known JSF implementations: MyFaces and IceFaces in terms of component's richness, ease to develop, popularity, stability, community support, etc. Update: as it was pointed out the initial question is not accurate enough. There are few JSF implementa...

How to enumerate and initialise beans in spring/jsf

After my user logins, i'd like to enumerate all of the beans faces-config and initialize selectivly some of the beans, what is the best way of doing this? The beans are initialized by spring when the application session starts, but not just after the login process (via JAAS) finishes. I guess I'm asking how to enumerate the beans liste...

JSF MethodExpression isn't triggering my backing bean action

Hello everyone! I have the problem that my code isn't triggering the action in my backing bean. The code is as follows: HtmlCommandButton replyCommentButton = new HtmlCommandButton(); replyCommentButton.setId("replyCommentButton" + commentCounter); replyCommentButton.setValue("Create reply"); String action = "#{Handler.action_replyToCom...

JSF Validation not finding custom ResourceBundle class

Hello, I have a custom ResourceBundle class org.example.web.UILabels.java which works well in running code but the JSF editor in Eclipse is not finding it, I assume the editor/validator is only looking for properties files by the name. This also means I no longer get type ahead find on the resources which was very nice to have. Any ide...

Remove gradients from richfaces controls

I'd like to use the richfaces panel as its basically the right shape and is skinnable, so I can change font, colour etc. However, as part of the default skin the horizontal bar containing the header has a gradient. My design has a flat simple colour with no gradient of any kind. How do I stop richfaces adding a gradient? If possible I...

JSF 1.2 Custom Component - Body Content From Backing Bean

Hi I am developing a custom component using JSF 1.2 . My tag class extends UIComponentELTag and has variables of data type ValueExpression. The values for these are getting set from the corresponding attributes of the tag. (Using setProperties function) Example, <sr:show name="#{backingBean.name}" ...> #{backingBean.mainContent}</sr:...

RichFaces: Displaying a notification "popup" when AJAX operation succeeded

We are currently developing a B2B web shop based on Java EE 5, JSF, Facelets and RichFaces. The technology has really worked very well so far, but now I am facing a small problem I just can't figure out how to solve: Products are listed as tables, where every item can be added to the shopping basket by clicking on a small icon at the en...