richfaces

How to use Google Guice with Richfaces 4.3.7

喜夏-厌秋 提交于 2020-01-25 05:28:07
问题 I'm programming a web app which uses richfaces 4.3.7 and google guice 4.0. The problem is that richfaces using guava 18 und google guice using guava 16, this results with the following Exception: java.lang.RuntimeException: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class org.richfaces.resource.ResourceLibraryFactoryImpl Caused by: java.lang

How to use Google Guice with Richfaces 4.3.7

天大地大妈咪最大 提交于 2020-01-25 05:28:06
问题 I'm programming a web app which uses richfaces 4.3.7 and google guice 4.0. The problem is that richfaces using guava 18 und google guice using guava 16, this results with the following Exception: java.lang.RuntimeException: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class org.richfaces.resource.ResourceLibraryFactoryImpl Caused by: java.lang

How to create commandlink programmatically

那年仲夏 提交于 2020-01-21 15:26:24
问题 We have a system built on seam/richfaces. There's this webpage where the tables are rendered from dynamic context (from multiple different datasources, and each of them uses a different layout to represent essentially the same real world concept). As a result, this table is binded to a bean, and it's columns/layout are generated from this bean. Now I need to add a command link on a specific column, equivalent to <a4j:commandLink value="#{actBean.Ids}" action="#{actBean.genDetails}"> <f

Richfaces style classes redefinition

萝らか妹 提交于 2020-01-17 08:11:30
问题 I spend all day and can't change rich:panel style class. This is the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:rich="http://richfaces.org/rich"> <h:head> <title>Test</title> <style type="text/css"> .rich-panel{ border: 0px; background: blue

Conditional Navigation of rich:dataTable using rich:dataScroller

☆樱花仙子☆ 提交于 2020-01-17 01:01:55
问题 When the user tries to switch on to the next page of the rich:dataTable using rich:dataScroller, basing on a JS condition, an Alert will be displayed. If OK'd then only the 2nd page has to be shown. If Cancel'd then the first page itself should be displayed. In richfaces3.3, there was onPageChange event on dataScroller, which is not available in richfaces 4.3. Pls suggest. 来源: https://stackoverflow.com/questions/20370046/conditional-navigation-of-richdatatable-using-richdatascroller

Conditional Navigation of rich:dataTable using rich:dataScroller

不羁的心 提交于 2020-01-17 01:01:52
问题 When the user tries to switch on to the next page of the rich:dataTable using rich:dataScroller, basing on a JS condition, an Alert will be displayed. If OK'd then only the 2nd page has to be shown. If Cancel'd then the first page itself should be displayed. In richfaces3.3, there was onPageChange event on dataScroller, which is not available in richfaces 4.3. Pls suggest. 来源: https://stackoverflow.com/questions/20370046/conditional-navigation-of-richdatatable-using-richdatascroller

RichFaces CSS not working

江枫思渺然 提交于 2020-01-16 19:14:22
问题 I'm trying develop my first aplication with richfaces, to do this I'm using samples from rf site. In this moment I try develop dropdown menu as link below http://showcase.richfaces.org/richfaces/component-...nu&sample=topMenu&skin=classic But I can't change color of bar menu. I want this: But I have this: I'm working in netbeans and have added richfaces to a JSF (with facelets) project. I just added the jar and css files of richfaces, nothing more. Bellow my facelet template and my menu file:

Exception thrown in @PostConstruct causes IllegalStateException in JSF 2.1

半腔热情 提交于 2020-01-15 11:26:11
问题 I have an init method on my @ViewScoped mananged bean. In the post construct i load data from the db. I have a custom ExceptionHandlerWrapper to catch all excptions and send to an error pages. However when @PostConstuct throws an exception i recieve an IllegalStateException and am not redirected to the error page. I have tried many combinations..... Ive tried this inside my ExcpetionHandler externalContext.getRequestMap().put(ERROR_BEAN_ID, ERROR_TEXT); externalContext.dispatch(ERROR_PAGE);

Is there how to validate into rich:calendar if the date selected is before a specific date?

风格不统一 提交于 2020-01-15 03:53:34
问题 I have this component: <rich:calendar enableManualInput="true" value="#{home.born}" datePattern="dd/MM/yyyy" /> and i need to validate if the selected date is equal or before actual date at the momment... Is there how to do it only with rich:calendar or i must verify it into home? Problem solved! i've used the solution provided by Balusc. Thanks everybody! :) 回答1: To validate it on the server side, you can use a Validator . <rich:calendar ...> <f:validator validatorId="notAfterToday" /> <

RichFaces application, should I use rich:dataTable or jQGrid, pros cons?

て烟熏妆下的殇ゞ 提交于 2020-01-14 19:15:47
问题 Following on from here, I need to have an inline editable grid in my web application using RichFaces 3.3.3, JSF 1.2 and Facelets. My options are the rich:dataTable RichFaces control, or the jQuery plugin, jQGrid I have tried both and found the following so far: jQGrid works really well, but I am not sure what will happen if I try to refresh JSF controls from the grid, if that's possible? I am hesitant to use or trigger RichFaces modal windows from the jQGrid, can this cause problems? Or