[Seasar-user:10373] Re: [Teeda] ConditionとValidatorの同時使用は不可能ですか?

Shinpei Ohtani [E-MAIL ADDRESS DELETED]
2007年 9月 6日 (木) 19:58:58 JST


大谷です.

ちょっと調べてみます.
しばしお待ちください.

07/09/06 に 松崎 学<[E-MAIL ADDRESS DELETED]> さんは書きました:
> 大谷さん
>
> 松崎です。お世話になります。
>
> バージョンは
> S2Container 2.4.17
> S2Dao 1.0.44
> Teeda 1.0.10
> です。
>
> 以上、よろしくお願いいたします。
>
> On Thu, 6 Sep 2007 17:00:42 +0900
> "Shinpei Ohtani" <[E-MAIL ADDRESS DELETED]> wrote:
>
> > 大谷です.
> >
> > 使っているTeedaのバージョンなど
> > 基本情報を教えてもらえないでしょうか?
> >
> > 07/09/05 に 松崎 学<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > > 松崎です。いつもお世話になっております。
> > >
> > > ConditionとValidatorを同時に使用する事は不可能なのでしょうか?
> > > 現在、以下の様な感じでConditionで表示/非表示を切り替えているTextboxに
> > > 必須入力Validatorをかけているのですが、
> > > バリデーションでエラーになるとConditionでの表示/非表示が無効になり、
> > > 全てのTextboxが表示されてしまいます。。。
> > >
> > > ・HTML
> > > <table>
> > >   <span id="isDayReport">
> > >   <tr>
> > >     <td>
> > >       <input id="inYearMonthDayFrom" />
> > >       〜
> > >       <input id="inYearMonthDayTo" />
> > >     </td>
> > >   </tr>
> > >   </span>
> > >   <span id="isNotDayReport">
> > >   <tr>
> > >     <td>
> > >       <input id="inYearMonth" />
> > >     </td>
> > >   </tr>
> > >   </span>
> > > </table>
> > >
> > > ・Java
> > > // フィールド(GetterとSetterは省略)
> > > private Date inYearMonthDayFrom;
> > > private Date inYearMonthDayTo;
> > > private Date inYearMonth;
> > >
> > > // Condition
> > > public boolean isDayReport() {
> > >     // メソッドの中身は省略
> > > }
> > >
> > > // Validator
> > > public Validator getInYearMonthDayFromValidator() {
> > >     // メソッドの中身は省略
> > >     // (TRequiredValidatorを継承した自作Validatorで必須チェックを行う)
> > > }
> > > public Validator getInYearMonthDayToValidator() {
> > >     // メソッドの中身は省略
> > >     // (TRequiredValidatorを継承した自作Validatorで必須チェックを行う)
> > > }
> > > public Validator getInYearMonthValidator() {
> > >     // メソッドの中身は省略
> > >     // (TRequiredValidatorを継承した自作Validatorで必須チェックを行う)
> > > }
> > >
> > > 以上、よろしくお願いいたします。
> > >
> > > --
> > > 松崎 学 <[E-MAIL ADDRESS DELETED]>
> > >
> > > _______________________________________________
> > > Seasar-user mailing list
> > > [E-MAIL ADDRESS DELETED]
> > > https://ml.seasar.org/mailman/listinfo/seasar-user
> > >
> >
> >
> > --
> > =============================
> > Shinpei Ohtani
> > [E-MAIL ADDRESS DELETED]
> > =============================
> > _______________________________________________
> > Seasar-user mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://ml.seasar.org/mailman/listinfo/seasar-user
>
> --
> 松崎 学 <[E-MAIL ADDRESS DELETED]>
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>


-- 
=============================
Shinpei Ohtani
[E-MAIL ADDRESS DELETED]
=============================



Seasar-user メーリングリストの案内