• Application Layout control - Refresh order

    By Chris Kovacs 1 decade ago

    First of all: thanks for the awesome Extension Library! 

    I am currently struggling though with the order of partial refreshs once the whole layout control is being refreshed. For my application to work properly, it is important that the right column of the layout control gets refreshed AFTER the main area has been refreshed, as certain calculations are being performed within the main area whose results should eventually be shown on the right column panel.

    Using Firebug I could find out that the divs are arranged in the following (a little odd) way:

    <span aria-expanded="true" class="nodeLabelBox repTarget " role="treeitem">&lt;div<span class="nodeAttr editGroup ">&nbsp;class=&quot;lotusMain&quot;</span>&gt;</span></div>
    
    
    
            <span aria-expanded="false" class="nodeLabelBox repTarget " role="treeitem">&nbsp; &nbsp;&lt;div<span class="nodeAttr editGroup ">&nbsp;class=&quot;lotusColRight&quot;</span>&gt;&nbsp;</span>&lt;a<span class="nodeAttr editGroup ">&nbsp;id=&quot;lotusMainContent&quot;</span><span class="nodeAttr editGroup ">&nbsp;name=&quot;lotusMainContent&quot;</span>&gt;&lt;/a&gt;</div>
    </div>
    
    
            <span aria-expanded="false" class="nodeLabelBox repTarget " role="treeitem">&nbsp; &nbsp;&lt;div<span class="nodeAttr editGroup ">&nbsp;class=&quot;lotusContent&quot;</span><span class="nodeAttr editGroup ">&nbsp;role=&quot;main&quot;</span>&gt;</span></div>
    </div>
    
    </div>
  • something's wrong

    By Fero Kossuth 1 decade ago

    Your calculations should not be dependent on render order. It seems you put them into computed field script, very convenient, but troublesome.

    What about extracting your calculations to SSJ library or bean and invoke them at page level?