Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Optimizing web application based on Spring Webflow

user5970066Feb 19 2011 — edited Feb 19 2011
Hi,

I have an application base on Spring Weblfow 2.0, tiles and Ajax - Prototype.
The main page is composed of such DIVs:
<div id="header">
<div id="body">
<div id="footer">

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.


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?
Making a javascript that would ping for actions to do held on server side would be higly inefficient propably..
What do you think?
Any samples?


Best regards, Top
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2011
Added on Feb 19 2011
2 comments
433 views