[Seasar-user:18020] 【Teeda】複数のプロパティを使用したValidatorの作り方

thomas [E-MAIL ADDRESS DELETED]
2009年 7月 17日 (金) 15:11:11 JST


Hello,

I need to get the property values in validator Class.

I followed this link
http://ml.seasar.org/archives/seasar-user/2008-April/013811.html

I got the null value.


Ths following is my Page class

    @Check(messageId="E01")
    public String joblevel;

    public String levelname;

    public String description;




This is my coding in Validator Class

        UIViewRoot viewRoot = context.getViewRoot();
        UIComponent levelname =
viewRoot.findComponent("layoutChildBody:joblevelmasterCreateForm:levelname");

        System.out.println("UIComponent--------------------->"+levelname);

System.out.println("UIInput------------------------------->"+((UIInput)levelname));

System.out.println("Value---------------------------------->"+((UIInput)levelname).getValue());


I got the following values in Console.

UIComponent--------------------->[E-MAIL ADDRESS DELETED]
UIInput------------------------------->[E-MAIL ADDRESS DELETED]
Value---------------------------------->null


What mistake i made in my coding?

Thanks in advance,
トマス
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20090717/926188cc/attachment.html>


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