完了するのに少し時間がかかるクラスがあり、グラフ化する値のリストを計算します。そのクラス全体で、テーブルにスローするいくつかのキー値を生成します。
したがって、私の質問は、チャート作成アクションがテーブルをロードするのを完了するまでテーブルを待機させる方法です。
私のグラフ生成
<!-- Graph -->
<s:if test="currentUser.getElec_end1() != null">
<div id="graphContent">
<img src="<s:url action='generateElectricityChart' />" />
</div>
</s:if>
しかし、上記の生成が完了した後にこれをトリガーしたい
<div id="dateTable">
<table id="pricingTable">
<tr><th>Pricing Start</th><th>Term Start</th><th>Term End</th><th>Last Date</th><th>Price</th></tr>
<tr><td><s:property value="currentUser.getElec_pricing_start1()" /></td><td><s:property value="currentUser.getElec_start1()" /></td><td><s:property value="currentUser.getElec_end1()" /></td><td><s:property value="currentUser.getElec_date1()" /></td><td><s:property value="getPrice1()" /></td></tr>
</table>
</div>
ループに陥るトリッキーな部分は、このテーブルの上記のデータが、ページの読み込み、ページ固有の変数、セッション情報などを処理するコントローラー クラスで初期化されるため、本質的にこのアクションに関連付けられていないことです。 .