ꤡ¤Ţ¤ˇ¤żĄŁ¤˘¤ę¤Ź¤Č¤Ś¤´¤ś¤¤¤Ţ¤šŁĄ¤Ď¤Ď¤ĎĄŁĄŁĄŁ<br><br>
<div><span class="gmail_quote">2007/10/10, Yasuo Higa <<a href="mailto:higa@isid.co.jp">higa@isid.co.jp</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi, guys.<br>><br>> Can't get params..<br>><br>> When i use "params.get("form:date") != null", it throws params is null.
<br>><br>> Is there anything else i should do?<br>><br>Sorry, I was wrong. m(_ _)m<br>"param" is correct.<br>So, you should define your page class as follows:<br><br>private Map param;<br><br>public Map getParam() {
<br>return param;<br>}<br><br>public void setParam(Map param) {<br>this.param = param;<br>}<br><br>public Validator getDateValidator() {<br>ValidatorChain chain = new ValidatorChain();<br>TRequiredValidator validator = new TRequiredValidator();
<br>if (param.get("TestForm:date") != null) {<br> chain.add(validator);<br>}<br>return chain;<br>}<br><br>--<br>Yasuo Higa<br><a href="mailto:higa@isid.co.jp">higa@isid.co.jp</a><br>_______________________________________________
<br>Seasar-user mailing list<br><a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br><a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</a>
<br></blockquote></div><br>