-
1. Richfaces 4 and Web Flow, partial rendering problem
lfryc May 16, 2011 11:17 AM (in response to bvi)Hello Benoit,
the best you can do is providing us small maven-based sample application where we can reproduce the issue.
Can I ask you for doing that?
-
2. Richfaces 4 and Web Flow, partial rendering problem
bvi May 17, 2011 7:38 AM (in response to lfryc)Yes you can :-) I will do that asap
-
3. Re: Richfaces 4 and Web Flow, partial rendering problem
bvi May 17, 2011 10:50 AM (in response to bvi)Hello, here is a small maven-based project .
In the "test" flow, you can comment/uncomment the render tag to see the different behaviors with a4j:commandButton (exception raised, or not :-).
Best regards,
-
fr.maif.samplewebflow.zip 15.3 KB
-
-
4. Richfaces 4 and Web Flow, partial rendering problem
lfryc May 20, 2011 9:09 AM (in response to bvi)Hello Benoit, thanks for the sample!
I will look into it next week.
-
5. Re: Richfaces 4 and Web Flow, partial rendering problem
jonask Jun 1, 2011 7:38 AM (in response to bvi)hi im looking for a example with RF4 and spring so i used your example but i alwys get this error
java.lang.IllegalArgumentException: Unable to load class 'demo.DemoBean'
complete : http://pastebin.com/n4KdJ0qf
would be great, if you could help me with this. i used maven to import your project...
-
6. Re: Richfaces 4 and Web Flow, partial rendering problem
bvi Jun 1, 2011 8:01 AM (in response to jonask)Do you use Eclipse/WTP ? I've had the same error on the first run of project, perhaps due to WTP.
Try to do "Maven... Update project configuration" , it will republish the project correctly, normally ....
-
7. Re: Richfaces 4 and Web Flow, partial rendering problem
jonask Jun 1, 2011 8:31 AM (in response to bvi)yes, i use eclipse/WTP
i did how you told me and now have a problem in the project:
"classpath error: unable to find org.aspectj.lang.JoinPoint (check that aspectjrt.jar is in your classpath) fr.maif.samplewebflow Unknown Java Problem"
i think thats the problem because i cant create the bean...
-
8. Re: Richfaces 4 and Web Flow, partial rendering problem
muralib12 Jun 13, 2011 9:01 AM (in response to lfryc)Hi Lukas,
did you get a chance to look into this issue. am also facing the same error.
-
9. Re: Richfaces 4 and Web Flow, partial rendering problem
muralib12 Jun 15, 2011 1:05 AM (in response to muralib12)Hello Benoit,
Did you find any work around for this issue??
-
10. Re: Richfaces 4 and Web Flow, partial rendering problem
muralib12 Jun 16, 2011 3:47 AM (in response to muralib12)Hi all,
this problem solved: please refer: http://blog.springsource.com/2010/08/05/spring-web-flow-2-2-0-m1-released/
i forgot to add Ajax handler.
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
<property name="flowExecutor" ref="flowExecutor" />
<property name="ajaxHandler">
<bean class="org.springframework.faces.webflow.JsfAjaxHandler"/>
</property>
</bean>
and used h:commandbutton+f:ajax rather a4j:commandbutton
-
11. Re: Richfaces 4 and Web Flow, partial rendering problem
bvi Jun 16, 2011 9:11 AM (in response to muralib12)Hi, no I don't think my problem is solved :-)
It occurs with Spring Web Flow 2.3.0 and it doesn't concern h:commandButton + f:ajax (work nice) but a4j:commandButton itself :-)
Cheers,
-
12. Re: Richfaces 4 and Web Flow, partial rendering problem
muralib12 Jun 17, 2011 6:58 AM (in response to bvi)Hi Benoit,
Yes, the problem is not solved. it happens even with a4j:ajax tag.
Can anybody from Rich Faces please respond. It is blocking our migration work badly.
-
13. Re: Richfaces 4 and Web Flow, partial rendering problem
lfryc Jun 17, 2011 11:29 AM (in response to bvi)Sorry I haven't look into this issue closer yet!
Benoit, I have reproduced that issue with your sample and got a opinion that SWF implementation of PartialViewContext is invalid here,
and there is regrettably nothing we could do about it.
This issue is in FlowPartialViewContext.getRenderIds() which returns immutable collection.
return Arrays.asList(fragmentIds);
But reference implementation states that this collection should be mutable:
/** * <p class="changed_added_2_0">Return a * <code>Collection</code> of client identifiers from the current request * with the request parameter name {@link #PARTIAL_RENDER_PARAM_NAME}. * If there is no such request parameter, return an empty <code>Collection</code>. * These client identifiers are used to identify components that * will be processed during the <code>render</code> phase of the * request processing lifecycle. The returned <code>Collection</code> is * mutable.</p> * * @throws IllegalStateException if this method is called after * this instance has been released * * @since 2.0 */ public abstract Collection<String> getRenderIds();
Could you please open an issue in SWF issue tracker and link it here?
-
14. Re: Richfaces 4 and Web Flow, partial rendering problem
bvi Jun 22, 2011 5:54 AM (in response to lfryc)