[richfaces-planning-issues] [JBoss JIRA] (RFPL-1430) Integration: investigate integration of RichFaces 4 and Spring WebFlow
RH Bugzilla Integration (Commented) (JIRA)
jira-events at lists.jboss.org
Mon Dec 5 08:28:41 EST 2011
[ https://issues.jboss.org/browse/RFPL-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648020#comment-12648020 ]
RH Bugzilla Integration commented on RFPL-1430:
-----------------------------------------------
Karel Piwko <kpiwko at redhat.com> made a comment on [bug 760115|https://bugzilla.redhat.com/show_bug.cgi?id=760115]
Description of problem:
In order to use Spring WebFlow 2.3 with RichFaces 4 you have to define an extra bean to resolve RichFaces resources. This bean is not automatically a part of faces:resources.
Version-Release number of selected component (if applicable):
Richfaces 4.1.0.CR1-redhat-1
How reproducible:
Always.
Steps to Reproduce:
1. Include RichFaces 4.1
2. Include Spring WebFlow 2.3
3. Configure Spring WF with following:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:faces="http://www.springframework.org/schema/faces"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/faces http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">
<faces:resources />
<!-- Maps request paths to flows in the flowRegistry; e.g. a path of /hotels/booking looks for a flow with id "hotels/booking" -->
<bean id="flowMapping" class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<property name="order" value="1" />
<property name="flowRegistry" ref="flowRegistry" />
<property name="defaultHandler">
<!-- If no flow match, map path to a view to render; e.g. the "/intro" path would map to the view named "intro" -->
<bean class="org.springframework.web.servlet.mvc.UrlFilenameViewController" />
</property>
</bean>
<!-- Maps logical view names to Facelet templates in /WEB-INF (e.g. 'search' to '/WEB-INF/search.xhtml' -->
<bean id="faceletsViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.faces.mvc.JsfView" />
<property name="prefix" value="/WEB-INF/" />
<property name="suffix" value=".xhtml" />
</bean>
<!-- Dispatches requests mapped to org.springframework.web.servlet.mvc.Controller implementations -->
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" />
<!-- Dispatches requests mapped to flows to FlowHandler implementations -->
<bean class="org.springframework.faces.webflow.JsfFlowHandlerAdapter">
<property name="flowExecutor" ref="flowExecutor" />
</bean>
</beans>
Actual results:
404 errors when when a CSS file is requested.
Expected results:
CSS and JS files are found.
Workaround:
Add following into configuration:
<!-- RichFaces resource handling https://issues.jboss.org/browse/RFPL-1430 -->
<bean name="richfacesResourceHandler" class="org.springframework.faces.webflow.JsfResourceRequestHandler" />
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="order" value="1" />
<property name="mappings">
<value>
/rfRes/**=richfacesResourceHandler
</value>
</property>
</bean>
and change the order of flowMapping to 2.
> Integration: investigate integration of RichFaces 4 and Spring WebFlow
> -----------------------------------------------------------------------
>
> Key: RFPL-1430
> URL: https://issues.jboss.org/browse/RFPL-1430
> Project: RichFaces Planning
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.0.Final
> Reporter: Nick Belaevski
> Assignee: Lukáš Fryč
> Labels: tran
> Fix For: 4.0.1.Milestone1
>
> Attachments: booking-richfaces.zip
>
>
> Investigate integration of Spring WebFlow and RF4. We use standard JSF 2 APIs, so we to develop PoC and find out about possible issues.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-planning-issues
mailing list