richfaces

How to add richfaces to maven project

独自空忆成欢 提交于 2019-12-02 07:17:01
I'm trying to use popup component in my app. I use JSF, Glassfish. Here's my pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>pl.karta</groupId> <artifactId>epacjent</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>epacjent</name> <properties> <org.richfaces.bom.version>4.2.2.Final</org.richfaces.bom.version> <gae.version>1.4.2</gae.version> </properties>

params not getting passed to backing bean for h:commandLink under rich:popupPanel and t:dataList

為{幸葍}努か 提交于 2019-12-02 04:06:42
I have rich:popupPanel which contains t:dataList under one column of t:dataTable. This dataList has h:commandLink which has f:param inside it. It was working fine for richfaces 3.3 but after migration to richfaces 4, it stopped working. To mention the fact that I was using rich:modalPanel in place of rich:popupPanel over there. I went through quite a few links: https://community.jboss.org/thread/202583 commandButton/commandLink/ajax action/listener method not invoked or input value not updated but of no help :(. Am I missing something? Currently, bean is session-scoped and I am using getter to

RichFaces dynamic TabPanel

≯℡__Kan透↙ 提交于 2019-12-02 04:05:12
问题 How to implement a simple add/remove dynamic <rich:tabPanel> ? (I've seen people asking this around so I thought postin a Q&A of a simple implementation) 回答1: The implementation has 3 custom classes: Content: contains the values to be displayed in a tab; ItemTab: contais an UITab object and a Content object; MyTabs: EJB managed bean that provides access to the tabs and adding/removal methods. The code is: Content: public class Content { String name; String job; String dept; public Content() {

IllegalArgumentException: duplicate key (JSF)

╄→гoц情女王★ 提交于 2019-12-02 04:02:37
I'm using Tomcat 7, Richfaces 4.2.2, MyFaces 2.1.5 and Facelets. When I start Tomcat I get the error: An error occured while initializing MyFaces: duplicate key: class javax.faces.convert.BooleanConverter java.lang.IllegalArgumentException: duplicate key: class javax.faces.convert.BooleanConverter at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:221) at com.google.common.collect.ImmutableMap$Builder

JSF2.0 + Richfaces 3.3.3, jsp not found error

喜夏-厌秋 提交于 2019-12-02 03:53:36
I created simple project using JSF2.0 + Richfaces3.3.3 + tomcat6.0.29 in Netbeans6.9.1 Step1 : File -> NewProject + Select JSF 2.0 + Prefered Page Language as JSP Step 2: Jar JSF2.0 jsf-api.jar JSF2.0 jsf-impl.jar JSTL1.1 - Standard.jar JSTL1.1 - jstl.jar jsf-facelets.jar (Facelets 1. 1. 15) richfaces-api-3.3.3.Final.jar richfaces-ui-3.3.3.Final.jar richfaces-impl-jsf2-3.3. 3.Final.jar commons-beanutils-1.8.3.jar commons-collections-3.2. 1.jar commons-digester-2.0.jar commons-logging-1.1.1.jar and hth-api-0.4.0.jar web.xml file <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5"

Servlet Faces Servlet is not available (richfaces 4,tomcat 7)

倾然丶 夕夏残阳落幕 提交于 2019-12-02 03:31:49
I am trying out my first richfaces project. So I created a new JSF project (using JBoss Tools eclipse plugin) with the following options selected: JSF2.0 JSFKickStartWithoutLibs I did no changes to generated sample.The exported WAR file contains the following libraries /WEB-INF/lib/common-annotations.jar /WEB-INF/lib/commons-beanutils.jar /WEB-INF/lib/commons-collections.jar /WEB-INF/lib/commons-digester.jar /WEB-INF/lib/commons-logging.jar /WEB-INF/lib/cssparser-0.9.5.jar /WEB-INF/lib/guava-r09.zip /WEB-INF/lib/richfaces-components-api-4.0.0.Final.jar /WEB-INF/lib/richfaces-components-ui-4.0

RichFaces fileupload and h:message problem

一世执手 提交于 2019-12-02 02:31:52
问题 I am using RichFaces 4. My problem is that the message does not appear at all. If I use rich:message the message appears briefly then dissapears. This is the controller: public void uploadListener(final FileUploadEvent event) throws IOException { final UploadedFile item = event.getUploadedFile(); final FacesContext context = FacesContext.getCurrentInstance(); final Application application = context.getApplication(); final String messageBundleName = application.getMessageBundle(); final Locale

javax.faces.FacesException: java.lang.ClassCastException: java.lang.String cannot be cast to javax.faces.component.UIComponent

孤人 提交于 2019-12-01 19:59:43
My Java EE web application is working fine with Glassfish 2.1. Now I want to migrate to Glassfish 3.1.1 I have followed the modifications provided here my dependencies for richfaces are as follow:- <dependency> <groupId>org.richfaces.framework</groupId> <artifactId>richfaces-api</artifactId> <version>3.3.3.Final</version> </dependency> <dependency> <groupId>org.richfaces.framework</groupId> <artifactId>richfaces-impl-jsf2</artifactId> <version>3.3.3.Final</version> </dependency> <dependency> <groupId>org.richfaces.ui</groupId> <artifactId>richfaces-ui</artifactId> <version>3.3.3.Final</version

a4j:commandButton reRendering rich:datatable

左心房为你撑大大i 提交于 2019-12-01 18:43:30
My issue is that I am trying to have a column in my datatable show an outputtext by default, and replace that with an inputtext when the commandbutton is pressed. Have not found a solution. First post by the way. I have an a4j:commandButton that I am looking to reRender this part of my dataTable <a4j:commandButton reRender="yieldTable" action="#{yieldSearch.activateVisible()}" id="modify" styleClass="editLargeIcon" value="Modify"> </a4j:commandButton> <rich:dataTable id="yieldTable" value="#{yieldSearch.yfitem.yielditem}" var="_yield"> <rich:column> <f:facet name="header">%-YLD</f:facet> <h

a4j:commandButton reRendering rich:datatable

主宰稳场 提交于 2019-12-01 17:27:46
问题 My issue is that I am trying to have a column in my datatable show an outputtext by default, and replace that with an inputtext when the commandbutton is pressed. Have not found a solution. First post by the way. I have an a4j:commandButton that I am looking to reRender this part of my dataTable <a4j:commandButton reRender="yieldTable" action="#{yieldSearch.activateVisible()}" id="modify" styleClass="editLargeIcon" value="Modify"> </a4j:commandButton> <rich:dataTable id="yieldTable" value="#