[TEEDA-241] [Seasar-user:5910] Validationエラー後の条件分岐(Condition) Created: 2007-01-26  Updated: 2007-06-19  Resolved: 2007-06-19

Status: Resolved
Project: Teeda
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.8

Type: Bug Priority: Major
Reporter: shot Assignee: higa
Resolution: Fixed Votes: 0
Labels: None


 Description   

Validationエラー後にConditionによる条件分岐がうまくいきません。
Validationエラー後の分岐がtrueまたはfalseのどちらかとなってしまいます。

prerenderでflgInfoItemsを毎回生成する。
flgInfoItemsには、isDispがtrueとfalseを交互に返すように設定している。

例)flgInfoItemsに true,false,true を返す3つのitemを設定
<結果 初期表示や再表示>
メッセージあり
メッセージなし
メッセージあり

<Validationエラー後>
メッセージあり
メッセージあり
メッセージあり

---------------------------------------------------------------------
<span id="allMessages"></span>
<table id="flgInfoGrid">
<thead>
<tr><td>タイトル</td></tr>
</thead>
<tbody>
<tr>
<td>
<div id="isDisp"><span>メッセージあり</span></div>
<div id="isNotDisp"><span>メッセージなし</span></div>
</td>
</tr>
</tbody>
</table>

<table>
<tr>
<td>■必須項目</td>
<td><input type="text" id="name" label="名称" /></td>
</tr>
</table>
<input type="submit" id="doCheck" value="確認"/>


pageクラスのValidation

@Required(target = "doCheck")
public void setName(String name)

{ this.name = name; }

---------------------------------------------------------------------



 Comments   
Comment by higa [ 2007-06-19 ]

integrationテストも通しました。

Comment by shot [ 2007-06-16 ]

Teeda-integration-testにあるConditoinTestの以下が通りません。

・testConditionRestoreWhenValidationError
・testConditionRestoreWhenValidationErrorWithSpan

すいませんが、このテストが通るようになおしておいてください。

Comment by higa [ 2007-06-16 ]

これまでTConditionは、hiddenで状態を保持していたため、1つしか状態をもてなかったので、ForEachで使われるとうまく処理できませんでした。
これを、PageScopeでclientIdごとに状態を保持するように修正しました。

Generated at Sat Apr 20 20:14:13 JST 2024 using Jira 9.15.0#9150000-sha1:9ead8528714127d8cfabf2446010d7e62c0a195c.