Feb 19th, 2011, 09:10 AM
Optimizing web application based on Spring Webflow
I have an application base on Spring Weblfow 2.0, tiles and Ajax - Prototype.
The main page is composed of such DIVs:
Here Prototype comes into action - it just loads specified webflow definition to specified DIV, for example
header: customerAccountInfo-flow.xml (this holds menu which can reload the body)
body: customerAccoundDetails-flow.xml or for example accountHistory-flow.xml, order-flow.xml
Now the problem is how to optimize it. When you click the menu in customerAccountInfo-flow.xml something is reloaded into body div and for example
making a new order from order-flow.xml reloads also header div with new statistics..
In practise there are plenty of JSTL conditions on jsp pages which in some specific cases reloads different divs. It is really hard to understand and read from.
I am thinking of some way in which server would tell flows to reload in specific DIVs. There should be a list of operations in spring configured which would trigger some actions.
But how to reload some div from server side?
What do you think?
Best regards, Top