-
1. Re: Have you already tried JSF 2 with RichFaces 4?
raitodn Nov 23, 2010 8:15 AM (in response to ilya_shaikovsky)Hi IIya, I'm developing an application using RF 3.3.3 final, a while ago I've just tested if it would work with RF4M4.
Somehow I can no longer find HtmlDataTable under RF4M4, ok so I switch it to jsf one.
But then again I can't also find HtmlDragSupport, HtmlDropSupport, HtmlDnDParam.
could you please enlight me
many thanks
-
2. Re: Have you already tried JSF 2 with RichFaces 4?
mattball Nov 23, 2010 10:43 AM (in response to ilya_shaikovsky)Yes. I am currently building a demo (proof-of-concept) application using RichFaces 4 M4 in GlassFish 3.
The link to the poll does not work for me right now, btw.
-
3. Re: Have you already tried JSF 2 with RichFaces 4?
cmathrusse Nov 23, 2010 5:19 PM (in response to ilya_shaikovsky)Yes, I created an application which is deployed into our production environment with M2. I'm currently working with M4 for another new project. Interestingly enough, I'm having issues displaying labels with <h:selectOneMenu> items but I don't think that this should be effected by richfaces.
Another issue that I've come across is integration with Spring. Managed beans that are defined with annotations don't seem to get their dependencies autowired by Spring. Perhaps I'm missing something pertaining to configuration but currently I have to get the Spring ApplicationContext and perform a lookup of the bean rather than it being autowired.
-
4. Re: Have you already tried JSF 2 with RichFaces 4?
tonyshao Nov 23, 2010 9:36 PM (in response to ilya_shaikovsky)Using 3.3.3 final
-
5. Re: Have you already tried JSF 2 with RichFaces 4?
ilya_shaikovsky Nov 24, 2010 5:59 AM (in response to raitodn)1) use facesContext.getApplication.createComponent("org.richfaces.DataTable") . to create rich:dataTable dynamically instead of new UIComponent() or htmlComponent(). Then creation will not depends on concrete impl classes and you will not be bothered by such errors in case of any refactorings.
2) dnd is scheduled to M5 so please wait one more milestone!
P.S. Poll service is up so leave your votes!
-
6. Re: Have you already tried JSF 2 with RichFaces 4?
ilya_shaikovsky Nov 24, 2010 6:00 AM (in response to tonyshao)Link is working guys!
-
7. Re: Have you already tried JSF 2 with RichFaces 4?
raitodn Nov 24, 2010 8:14 AM (in response to ilya_shaikovsky)thank you very much IIya, I really appreciate your works.
-
8. Re: Have you already tried JSF 2 with RichFaces 4?
eurokey Nov 26, 2010 4:57 AM (in response to ilya_shaikovsky)I tried RichFaces 4 a few days ago. It seems you are on a good way to build the functionality of RichFaces 3 as a JSF 2.0 Features. Most of the components look already stable and usable. Also client validation looks very promising.
So far so good. But when I look over the same amount of time on the PrimeFaces Project and what Cagatay Civici has archived, more or less as one man show, I think you guys need to catching up a little.
His most on jQuery UI based components look very goods and are more feature rich. The integration of the Themeroller skinning engine makes skinning unbelievable easy, if it’s even needed because there are already 26 skins avaiable.
Of course PrimeFaces has its own problems, the datatable is still very buggy in some scenarios, but since the last two months PrimeFaces focused only on bug fixing and if Cagatay archives to finalize his datatable there won't be many reasons to use RichFaces at all.
Please don't be insulted by this post because this is really not what I'm trying to do. I still think if RichFaces 4 will be released it will be a great and stable JSF 2.0 Library even if it's not anymore the best out there.
-
9. Re: Have you already tried JSF 2 with RichFaces 4?
ensemien Mar 19, 2012 10:04 AM (in response to eurokey)good afternoon ,
it's my first time in Jboos community and i am very happy. i am enginner student,and i am working my Graduation Project,it is with (Spring,hibernate, JSF(RichFaces 4.2.0) ),
i am reading this Ebook ( practical richfaces second edition), but please, when i run the file (testRich.xhtml with rich:panel for example) i dont see the skin.
herewith the captures : testrich.xhtml ,web.xml and result in browser .
-------------------------------------------------------------------
*testRich.xhtml :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:form>
<rich:panel>
<f:facet name="header">
<h:panelGroup>
<h:outputText value="User information" />
</h:panelGroup>
</f:facet>
</rich:panel>
</h:form>
</ui:composition>
-----------------------------------------------------------------------------------------------------------------------------
* web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<display-name>rich</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
</web-app>
---------------------------------------------------------------------------------------------------
i am using eclipse indigo, and in WEB-INF/lib folder i put these jars :
• richfaces-core-api-4.2.0.Final.jar
• richfaces-core-impl-4.2.0.Final.jar
• richfaces-components-api-4.2.0.Final.jar
• richfaces-components-ui-4.2.0.Final.jar
• sac-1.3.jar
• cssparser-0.9.5.jar
• guava-r08.jar
• validation-api 1.0.0 GA.jar
• hibernate-validator 4.0.2 GA .jar
• slf4j-api-1.6.0.jar
• slf4j-jdk14-1.6.1.jar
please i need your help .
-
10. Re: Have you already tried JSF 2 with RichFaces 4?
ppitonak Mar 19, 2012 11:19 AM (in response to ensemien)Hi Omar,
- The correct name for skin attribute in web.xml is org.richfaces.skin
- Your xhtml page seems to be wrong. You need to either define template in your xhtml or make it standalone page, i.e. something like this:
<?xml version="1.0" encoding="UTF-8" ?> <!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:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets"> <h:head>...</h:head> <h:body> <h:form> <rich:panel> <f:facet name="header"> <h:panelGroup> <h:outputText value="User information" /> </h:panelGroup> </f:facet> </rich:panel> </h:form> </h:body> </html>
BTW please create a new thread for your question next time
-
11. Re: Have you already tried JSF 2 with RichFaces 4?
ensemien Mar 22, 2012 8:30 PM (in response to ppitonak)thanks a lot ,i make the changes that you mentionned ,and it works fine now
it's my first time (i dont know how to create the thread),but the next time i will create new thread .
many thanks
for the other persons who have the same probleme :
thread ricapitulatory :
my question was :
i am using : jsf 2.1.2 , richface 4.2.0
when i run the xhtml file,the CSS do not get loaded ,and JSF 2 doesn't know where to insert the resources(CSS, JS) needed by the page .
solution :
my xhtml (facelet) must be defined with <h:head> and <h:body> elements
.
-
12. Re: Have you already tried JSF 2 with RichFaces 4?
prabhavathykn Jun 19, 2013 7:01 AM (in response to ilya_shaikovsky)Hi ilya,
I need to develop a Dynawidget using the Richfaces 4.2 .
Please guide how to do it in Richfaces 4.2.
DynawidgetsComponent1.2.1 supoorts richfaces3.3.3final and it is not supoorting Richfaces 4.2.So I kindly request you to help me for the same.
Thanks and Regards,
Prabhavathy