Announcement Announcement Module
No announcement yet.
Optimizing web application based on Spring Webflow Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:
    <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