1 2 Previous Next 16 Replies Latest reply: Jul 6, 2011 4:36 AM by Lukáš Fryč RSS

Richfaces 4 and Web Flow, partial rendering problem

Benoit VI Newbie

Hello, I have noticed a problem with Richfaces 4.0.0.Final and Spring Web Flow 2.3.0. I cannot say if it is Richfaces or Web Flow relevant... perhaps the two ...


I have a flow, and a transition with a <render> tag (designed to do partial rendering with web flow) ,  for instance :

<view-state id="testPage" >

<transition on="doit">

     <render fragments="myregion"/>




When using an a4jcommandButton , for instance :

<a4j:commandButton action="doit" render="myregion"/>


<a4j:commandButton action="doit" render="myregion"/>


The following exception occurs :


at java.util.AbstractList.add(AbstractList.java:131)

at java.util.AbstractList.add(AbstractList.java:91)

at java.util.AbstractCollection.addAll(AbstractCollection.java:305)

at org.richfaces.context.ExtendedPartialViewContextImpl.visitActivatorAtRender(ExtendedPartialViewContextImpl.java:346)




The richfaces class ExtendedPartialViewContextImpl expects a collection of ids supporting addAll() method, but the collection provided by Web flow (via org.springframework.faces.webflow.FlowPartialViewContext.getRenderIds() ) doesnt match this requirement.


I am not sure this is a Richfaces bug, however, I submit it here ...



Best regards



1 2 Previous Next