Hi,
I am learning webflow and set up very simple project.
This is the flow:
I use Tiles for views and both views got two fragments - a & b that just dump the current date & time.Code:<?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd" start-state="start"> <view-state id="start" view="main"> <transition on="go"> <render fragments="b" /> </transition> <transition on="goo" to="next"> <render fragments="b" /> <!--<evaluate expression="flashScope.text='adsf'"></evaluate> --> </transition> </view-state> <view-state id="next" view="next"> </view-state> </flow>
What was counter-intuitive for me:
* partial rendering via <render fragment../> does not work unless I have the Spring.AjaxEventDecoration in combination - is this really how it was intended to be or am I doing something wrong? Without the ajax decoration, both fragments are rendered, regardless what I specify in <render ...>. Yes, I understand the whole page is sent, but I expected that the fragments not mentioned in the render tag would be used cached. Effectively from what I see the <render> tag makes no sense without the Ajax decoration - is this so?
* putting <evaluate> tag in the <transition> prevents it from transiting - this is pretty unexpected and I don't remember reading this in the manual - did I miss something?
Cheers,
Georgi


Reply With Quote