Back Forum Reply New

How to reload webflow on server demand?

Hi,

I have an application base on Spring Weblfow 2.0, tiles and Ajax - Prototype.
The main page is composed of such DIVs:
lt;div id=quot;headerquot;gt;
lt;div id=quot;bodyquot;gt;
lt;div id=quot;footerquot;gt;

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
footer: something-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.
All DIVs int my html structure that are holding specific flows should listen for events and in an event is received, the flow in each DIV should reload and new data would be displayed
The problem is not with efficiency of the application but with the unreadable way in which it is developed.
Imagine an accound header jsp in which you have 20 conditions eximining some request parameters and send request through Ajax.Updater to different DIVs to reload some parts of the page.
I would like to have some general solution for this problem which should be on the server side. That means that I would like to remove all this conditions from different jsp (nobody remembers why there are here) and manage it on the server side.

All DIVs int my html structure that are holding specific flows should listen for events and in an event is received, the flow in each DIV should reload and new data would be displayed

What do you think?
Any samples?Best regards, Top
¥
Back Forum Reply New