<div>$B@uLn$G$9!#(B</div><div>$B$*@$OC$K$J$j$^$9!#(B</div><div><br></div><div>$BJV?.$"$j$,$H$&$4$6$$$^$7$?!#(B</div><div>$B$$$?$@$$$?%3%a%s%H$r;29M$K(Bvalidate.js$B$r=$@5$7!"0J2<$KBP1~$G$-$k$h$&$K3HD%$7$^$7$?!#!J%F%9%HIT==J,$G$9$,!K(B</div><div>$B!&%P%j%G!<%7%g%s<B9T$O%$%Y%s%H$,H/@8$7$?9`L\$N$_(B</div><div>$B!&%5%V%_%C%H<B9T;~$K%P%j%G!<%7%g%s<B9T(B</div><div><br></div>
<div>$B$?$@$7!"(Bvalidate.js$B$rD>@\=$@5$7$F$7$^$C$?$N$G$9$,!"$3$N$^$^;HMQ$7$F$b%i%$%;%s%9E*$KLdBj$J$$$N$G$7$g$&$+!)(B</div><div><br></div><div><br></div><div>$B;29M$^$G$K=$@5$7$?(Bvalidate.js$B$b5-:\$7$^$9!#(B<br></div><div><br></div><div>[$B;HMQNc(B]</div><div>Kumu.Validator.targets([&#39;doTest&#39;]); &nbsp; &nbsp; //&nbsp;$B%5%V%_%C%H%\%?%s2!2<;~$K%P%j%G!<%7%g%s<B9T(B</div>
<div>Kumu.Validator.validateAll(false); &nbsp; &nbsp; &nbsp;//&nbsp;$B%$%Y%s%H$,H/@8$7$?9`L\$N$_(B</div><div>KumuValidaterConf = {</div><div>&nbsp;&nbsp; &nbsp;&hellip;</div><div>}</div><div><br></div><div>[validate.js]</div><div><div>&nbsp;if (typeof(Kumu) == &#39;undefined&#39;) {</div>
<div>&nbsp;&nbsp;Kumu = {};</div><div>}else{</div><div>&nbsp;&nbsp;if (typeof(Kumu.Event) == &#39;undefined&#39;) {</div><div>&nbsp;&nbsp; &nbsp;Kumu.dynamicLoad(&#39;event&#39;);</div><div>&nbsp;&nbsp;}</div><div>}</div><div><br></div><div>if (typeof(Kumu.Validator) == &#39;undefined&#39;) {</div>
<div>&nbsp;&nbsp;Kumu.Validator = {};</div><div>}</div><div><br></div><div>var KumuValidatorConf;</div><div><br></div><div>Kumu.Validator = Kumu.extend(Kumu.Validator, {</div><div>&nbsp;&nbsp;_type : &#39;name&#39;,</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_validators : {},</div>
<div><br></div><div>&nbsp;&nbsp;_resultObj : [],</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;// add by m.asano 2009.3.23(start)</div><div>&nbsp;&nbsp;_targetType : &#39;name&#39;,</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_targets : [],</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_targetsObj : [],</div>
<div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_validateAll : true,</div><div>&nbsp;&nbsp;// add by m.asano 2009.3.23(end)</div><div>&nbsp;&nbsp; &nbsp;</div><div>&nbsp;&nbsp;_createValidator : function(type){</div><div>&nbsp;&nbsp; &nbsp;if(type.indexOf(&#39;:&#39;) &gt; 1){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;var obj;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;var arr = type.split(&#39;:&#39;);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;eval(&#39;obj = new Kumu.Validator.&#39;+arr[0]+&#39;Validator(&quot;&#39;+arr[1].toString()+&#39;&quot;);&#39;);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return obj; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;var obj;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;eval(&#39;obj = new Kumu.Validator.&#39;+type+&#39;Validator();&#39;);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return obj;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;modeId : function(type){</div>
<div>&nbsp;&nbsp; &nbsp;if(type){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;this._type = &#39;id&#39;;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;// addd by m.asano 2009.3.23(start)</div><div>&nbsp;&nbsp;modeTargetId : function(type){</div><div>&nbsp;&nbsp; &nbsp;if(type){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;this._targetType = &#39;id&#39;;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;targets : function(eventTargets){</div><div>&nbsp;&nbsp; &nbsp;this._targets = eventTargets;</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;validateAll : function(flag){</div>
<div>&nbsp;&nbsp; &nbsp;this._validateAll = flag;</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_createTargetsObj : function(){</div><div>&nbsp;&nbsp; &nbsp;if(this._targetsObj == null || this._targetsObj.length == 0){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;for(var i=0; i&lt;this._targets.length; i++){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;var el = this._getElementsTarget(this._targets[i]);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;for(var j=0; j&lt;el.length; j++){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this._targetsObj.push(el[j]);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;}</div>
<div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_getElementsTarget : function(id){</div><div>&nbsp;&nbsp; &nbsp;if(this._targetType == &#39;name&#39;){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return $n(id);</div><div>&nbsp;&nbsp; &nbsp;}else if(this._targetType == &#39;id&#39;){</div><div>
&nbsp;&nbsp; &nbsp; &nbsp;return [$i(id)];</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;// addd by m.asano 2009.3.23(end)</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_getElements : function(id){</div><div>&nbsp;&nbsp; &nbsp;if(this._type == &#39;name&#39;){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return $n(id);</div>
<div>&nbsp;&nbsp; &nbsp;}else if(this._type == &#39;id&#39;){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return [$i(id)];</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;_createChain : function(ids){</div><div>&nbsp;&nbsp; &nbsp;var chain = this._validators[ids];</div><div>
&nbsp;&nbsp; &nbsp;var e = this._getElements(ids);</div><div>&nbsp;&nbsp; &nbsp;if(!chain &amp;&amp; e){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;chain = new Kumu.Validator.ValidatorChain(e[0]);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;this._validators[ids] = chain;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;return chain;</div>
<div>&nbsp;&nbsp;},</div><div><br></div><div>&nbsp;&nbsp;_parse : function(validateConf){</div><div>&nbsp;&nbsp; &nbsp;if(validateConf){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;for(var v in validateConf){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;var conf = validateConf[v];</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(conf instanceof Array){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//chain</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var chain = this._createChain(v);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(chain){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(var i = 0; i &lt; conf.length; i++){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var validator = this._createValidator(conf[i]);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;chain.add(validator);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}else if(typeof(conf) == &#39;string&#39;){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(conf == &#39;result&#39;){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var e = this._getElements(v);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(e){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this._resultObj.push(e[0]);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}else if(conf instanceof Object){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var chain = this._createChain(v);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(chain){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(var ids in conf){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var validator = this._createValidator(ids);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;validator.showResult = conf[ids];</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;chain.add(validator);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;} &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp;},</div><div><br></div><div>&nbsp;&nbsp;loadValidator : function(){</div><div>&nbsp;&nbsp; &nbsp;if(KumuValidatorConf){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;this._regist(KumuValidatorConf);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;this._disabled();</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp; &nbsp;</div><div>&nbsp;&nbsp;_disabled : function(){</div><div>&nbsp;&nbsp; &nbsp;for(var i = 0; i &lt; this._resultObj.length; i++){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;this._resultObj[i].disabled = true;</div>
<div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div><br></div><div>&nbsp;&nbsp;_enabled : function(){</div><div>&nbsp;&nbsp; &nbsp;for(var i = 0; i &lt; this._resultObj.length; i++){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;this._resultObj[i].disabled = false;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>
&nbsp;&nbsp;},</div><div><br></div><div>&nbsp;&nbsp;// changed by m.asano 2009.3.23</div><div>&nbsp;&nbsp;//_validate : function(ev){</div><div>&nbsp;&nbsp;_validate : function(ev, elem){</div><div>&nbsp;&nbsp; &nbsp;var result = true;</div><div>&nbsp;&nbsp; &nbsp;for(var v in this._validators){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;var validator = this._validators[v];</div><div>&nbsp;&nbsp; &nbsp; &nbsp;// add by m.asano 2009.3.23(start)</div><div>&nbsp;&nbsp; &nbsp; &nbsp;if(!this._validateAll &amp;&amp; elem != null &amp;&amp; <a href="http://elem.id">elem.id</a> != <a href="http://validator.element.id">validator.element.id</a>){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;continue;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp;// add by m.asano 2009.3.23(end)</div><div>&nbsp;&nbsp; &nbsp; &nbsp;if(!validator.validate()){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;this._disabled();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;result = false;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;}</div>
<div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;if(result){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;this._enabled();</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;},</div><div>&nbsp;&nbsp; &nbsp;</div><div>&nbsp;&nbsp;_regist : function(validateConf){</div><div>&nbsp;&nbsp; &nbsp;this._parse(validateConf);</div><div>&nbsp;&nbsp; &nbsp;for(var v in this._validators){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;var elements = this._getElements(v);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;elements.map(function(element){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (element.type) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch (element.type.toLowerCase()) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case &#39;checkbox&#39;:</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case &#39;radio&#39;:</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// changed by m.asano 2009.3.23(start)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Kumu.Event.addEvent(element, &#39;click&#39;, this._validate.bindScopeAsEventListener(this));</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(this._targets == null || this._targets.length == 0){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Kumu.Event.addEvent(element, &#39;click&#39;, this._validate.bindScopeAsEventListener(this, element));</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}else{</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this._createTargetsObj();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (var i=0; i&lt;this._targetsObj.length; i++){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Kumu.Event.addEvent(this._targetsObj[i], &#39;click&#39;, this._validate.bindScopeAsEventListener(this, element));</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// changed by m.asano 2009.3.23(end)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case &#39;password&#39;:</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case &#39;text&#39;:</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case &#39;textarea&#39;:</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// changed by m.asano 2009.3.23(start)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Kumu.Event.addEvent(element, &#39;keyup&#39;, this._validate.bindScopeAsEventListener(this));</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(this._targets == null || this._targets.length == 0){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Kumu.Event.addEvent(element, &#39;keyup&#39;, this._validate.bindScopeAsEventListener(this, element));</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}else{</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this._createTargetsObj();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (var i=0; i&lt;this._targetsObj.length; i++){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Kumu.Event.addEvent(this._targetsObj[i], &#39;click&#39;, this._validate.bindScopeAsEventListener(this, element));</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// changed by m.asano 2009.3.23(end)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case &#39;select-one&#39;:</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case &#39;select-multiple&#39;:</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// changed by m.asano 2009.3.23(start)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Kumu.Event.addEvent(element, &#39;change&#39;, this._validate.bindScopeAsEventListener(this));</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(this._targets == null || this._targets.length == 0){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Kumu.Event.addEvent(element, &#39;change&#39;, this._validate.bindScopeAsEventListener(this, element));</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this._createTargetsObj();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (var i=0; i&lt;this._targetsObj.length; i++){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Kumu.Event.addEvent(this._targetsObj[i], &#39;click&#39;, this._validate.bindScopeAsEventListener(this, element));</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// changed by m.asano 2009.3.23(end)</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp;}.bindScope(this));</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>});</div><div><br></div><div>Kumu.Validator.ValidatorBase = function(){</div>
<div>&nbsp;&nbsp;this.result = false;</div><div>&nbsp;&nbsp;this.showResult = function(element, result){</div><div>&nbsp;&nbsp; &nbsp;this.result = result;</div><div>&nbsp;&nbsp; &nbsp;if(result){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;element.style.background = &#39;#ffffff&#39;;</div><div>&nbsp;&nbsp; &nbsp;}else{</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;element.style.background = &#39;#ff4500&#39;;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>};</div><div><br></div><div>Kumu.Validator.ValidatorChain = function(element){</div><div>&nbsp;&nbsp; &nbsp;</div><div>&nbsp;&nbsp;this.element = element;</div>
<div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;this.validators = [];</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;this.add = function(validator){</div><div>&nbsp;&nbsp; &nbsp;this.validators.push(validator);</div><div>&nbsp;&nbsp;};</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;this.validate = function(evt){</div>
<div>&nbsp;&nbsp; &nbsp;this.result = false;</div><div>&nbsp;&nbsp; &nbsp;for(var i = 0; i &lt; this.validators.length; i++){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;var validator = this.validators[i];</div><div>&nbsp;&nbsp; &nbsp; &nbsp;var result = validator.validate(this.element.value);</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;validator.showResult(element, result);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;if(!result){</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return false;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;this.result = true;</div><div>&nbsp;&nbsp; &nbsp;return true</div><div>&nbsp;&nbsp;}</div>
<div>}</div><div><br></div><div>Kumu.Validator.RequiredValidator = function(){</div><div>&nbsp;&nbsp;this.validate = function(v){</div><div>&nbsp;&nbsp; &nbsp;if(v == null || v.length == 0){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return false;</div><div>&nbsp;&nbsp; &nbsp;}else{</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;return true;</div><div>&nbsp;&nbsp; &nbsp;}&nbsp;</div><div>&nbsp;&nbsp;}</div><div>}</div><div>Kumu.Validator.RequiredValidator.prototype = &nbsp;new Kumu.Validator.ValidatorBase();</div><div><br></div><div>Kumu.Validator.RegularExpressionValidator = function(pattern){</div>
<div>&nbsp;&nbsp;this.pattern = pattern;</div><div>&nbsp;&nbsp;this.validate = function(v){</div><div>&nbsp;&nbsp; &nbsp;var re = new RegExp(this.pattern);</div><div>&nbsp;&nbsp; &nbsp;var v = v.toString();</div><div>&nbsp;&nbsp; &nbsp;if(!v.match(re)){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return false; &nbsp; &nbsp; &nbsp;</div>
<div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return true;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>}</div><div>Kumu.Validator.RegularExpressionValidator.prototype = &nbsp;new Kumu.Validator.ValidatorBase();</div><div>&nbsp;&nbsp;&nbsp;</div><div>Kumu.Validator.IntegerValidator = function(){</div>
<div>&nbsp;&nbsp;this.validate = function(v){</div><div>&nbsp;&nbsp; &nbsp;var re = /^[-]?([1-9]\d*)?\d$/;</div><div>&nbsp;&nbsp; &nbsp;var v = v.toString();</div><div>&nbsp;&nbsp; &nbsp;if(!v.match(re)){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return false; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return true;</div>
<div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>}</div><div>Kumu.Validator.IntegerValidator.prototype = new Kumu.Validator.ValidatorBase();</div><div><br></div><div>Kumu.Validator.MinRangeValidator = function(value){</div><div>&nbsp;&nbsp;this.value = value;</div>
<div>&nbsp;&nbsp;this.validate = function(v){</div><div>&nbsp;&nbsp; &nbsp;var v = v.toString();</div><div>&nbsp;&nbsp; &nbsp;if(v &gt; this.value){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return true;</div><div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return false;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div>
<div>}</div><div>Kumu.Validator.MinRangeValidator.prototype = new Kumu.Validator.ValidatorBase();</div><div><br></div><div>Kumu.Validator.MaxRangeValidator = function(value){</div><div>&nbsp;&nbsp;this.value = value;</div><div>&nbsp;&nbsp;this.validate = function(v){</div>
<div>&nbsp;&nbsp; &nbsp;var v = v.toString();</div><div>&nbsp;&nbsp; &nbsp;if(v &lt; this.value){</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return true;</div><div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return false;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>}</div><div>Kumu.Validator.MaxRangeValidator.prototype = new Kumu.Validator.ValidatorBase();</div>
<div><br></div><div>Kumu.Validator.DoubleValidator = function(){</div><div>&nbsp;&nbsp;this.validate = function(v){</div><div>&nbsp;&nbsp; &nbsp;var re = /^[-]?([1-9]\d*)?\d(\.\d*)?$/;</div><div>&nbsp;&nbsp; &nbsp;var v = v.toString();</div><div>&nbsp;&nbsp; &nbsp;if(!v.match(re)){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;return false; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return true;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>}</div><div>Kumu.Validator.DoubleValidator.prototype = new Kumu.Validator.ValidatorBase();</div><div>
<br></div><div>Kumu.Validator.MinLengthValidator = function(value){</div><div>&nbsp;&nbsp;this.value = value;</div><div>&nbsp;&nbsp;this.validate = function(v){</div><div>&nbsp;&nbsp; &nbsp;var v = v.toString();</div><div>&nbsp;&nbsp; &nbsp;if(v.length &gt; this.value){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;return true;</div><div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return false;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>}</div><div>Kumu.Validator.MinLengthValidator.prototype = new Kumu.Validator.ValidatorBase();</div><div><br>
</div><div>Kumu.Validator.MaxLengthValidator = function(value){</div><div>&nbsp;&nbsp;this.value = value;</div><div>&nbsp;&nbsp;this.validate = function(v){</div><div>&nbsp;&nbsp; &nbsp;var v = v.toString();</div><div>&nbsp;&nbsp; &nbsp;if(v.length &lt; this.value){</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;return true; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp;}else{</div><div>&nbsp;&nbsp; &nbsp; &nbsp;return false; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp;}</div><div>}</div><div>Kumu.Validator.MaxLengthValidator.prototype = new Kumu.Validator.ValidatorBase();</div>
<div>Kumu.Event.addOnLoadEvent(Kumu.Validator.loadValidator.bindScope(Kumu.Validator));</div><div><br></div></div><div><br></div><div><br></div><br><br><div class="gmail_quote">2009/03/23 12:33  <span dir="ltr">&lt;<a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">$BJFNS$G$9!#(B<br>
<br>
$BC1=c$K(Baaa$B9`L\$G%(%i!<$K$J$C$?>l9g$K!"$=$l0J9_$r(B<br>
$B%P%j%G!<%7%g%s%A%'%C%/$7$J$$$N$G$"$l$P!"(B_validate<br>
$B4X?t$r3HD%$9$l$PNI$$$G$9!#(B<br>
<br>
&nbsp;_validate : function(){<br>
 &nbsp; var result = true;<br>
 &nbsp; for(var v in this._validators){<br>
 &nbsp; &nbsp; var validator = this._validators[v];<br>
 &nbsp; &nbsp; if(!validator.validate()){<br>
 &nbsp; &nbsp; &nbsp; this._disabled();<br>
 &nbsp; &nbsp; &nbsp; result = false;<br>
 &nbsp; &nbsp; &nbsp; return; // $B0J9_$O=hM}$7$J$$(B<br>
 &nbsp; &nbsp; }<br>
 &nbsp; }<br>
 &nbsp; if(result){<br>
 &nbsp; &nbsp; this._enabled();<br>
 &nbsp; }<br>
&nbsp;},<br>
<br>
$B;n$7$F$$$J$$$N$G62=L$G$9$,!"$h$m$7$/$*4j$$$7$^$9!#(B<div><div></div><div class="h5"><br>
<br>
----- Original Message ----- From: &quot;$B@uLn8n(B&quot; &lt;<a href="mailto:asano1225@gmail.com" target="_blank">asano1225@gmail.com</a>&gt;<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$B@uLn$G$9!#$*@$OC$K$J$j$^$9!#(B<br>
<br>
$BJV?.$"$j$,$H$&$4$6$$$^$9!#(B<br>
<br>
$B@bL@ITB-$G!VF~NO$7$?9`L\$@$1$r%P%j%G!<%7%g%s%A%'%C%/$9$k!W$,@53N$KEA$o$j$^$;$s$G$7$?!#$9$_$^$;$s!#(B<br>
<br>
$BNc$($P!"(B<br>
function test1(element, result){<br>
 &nbsp; if(result){<br>
 &nbsp; &nbsp; &nbsp; element.style.background = &#39;#ffffff&#39;;<br>
 &nbsp; }else{<br>
 &nbsp; &nbsp; &nbsp; element.style.background = &#39;#ffc0cb&#39;;<br>
 &nbsp; &nbsp; &nbsp; alert(&quot;$BCM$rF~NO$7$F$/$@$5$$(B&quot;);<br>
 &nbsp; }<br>
}<br>
(test2$B>JN,(B)<br>
KumuValidatorConf = {<br>
 &nbsp; aaa : {&#39;Required&#39; : test1},<br>
 &nbsp; bbb : {&#39;MaxLength:3&#39; : test2}<br>
}<br>
$B$N$h$&$K$7$?$H$-!"(Baaa$B9`L\(B($B%F%-%9%H%U%#!<%k%I(B)$B$N(Bkeyup$B%$%Y%s%H$,H/@8$7$?%?%$%_%s%0$G!"(Baaa$B$H(Bbbb$B$N%P%j%G!<%7%g%s%A%'%C%/$,<B9T$5$l$F$$$k$h$&$K8+<u$1$i$l$^$7$?!#!J(Bbbb$B$OL$F~NO!K(B<br>
$B$h$C$F!"(Baaa$B9`L\!J%$%Y%s%H$,H/@8$7$?9`L\!K$KBP$9$k%P%j%G!<%7%g%s%A%'%C%/$N$_<B9T$7$?$$$N$G$9$,!"2DG=$G$7$g$&$+!)(B<br>
$B!J%3!<%k%P%C%/4X?t(B(test1, test2)$BFb$G!"%(%i!<;~$K(Balert$BJ8$rI=<($7$F$$$k$3$H$,4X78$7$F$$$k$N$G$7$g$&$+!)!K(B<br>
<br>
$B$^$?!"65$($F$$$?$@$$$?%5%V%_%C%H;~$K%P%j%G!<%7%g%s%A%'%C%/$9$kJ}K!$b;n$7$^$7$?!#(B<br>
$B>e5-$,4X78$9$k$H;W$&$N$G$9$,!"(Baaa$B$N%A%'%C%/;~$K(Baaa$B$H(Bbbb$B$N%P%j%G!<%7%g%s%A%'%C%/$,<B9T$5$l!"(Bbbb$B$N%A%'%C%/;~$K$b(Baaa$B$H(Bbbb$B$N%P%j%G!<%7%g%s%A%'%C%/$,<B9T$5$l$F$7$^$$$^$9!#(B<br>
$B!J>e5-$,2r7h$9$l$P!"$3$A$i$b2r7h$9$k$H;W$$$^$9!#!K(B<br>
<br>
$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B<br>
<br>
<br>
2009/03/23 8:15 &lt;<a href="mailto:yone@abby.co.jp" target="_blank">yone@abby.co.jp</a>&gt;:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$BJFNS$G$9!#(B<br>
<br>
KumuValidatorConf$B$G@_Dj$7$?%P%j%G!<%7%g%s$,<B9T$5$l$k%?%$%_%s%0$O!"!J%5%V%_%C%H;~$G$O$J$/!K3F9`L\$KCM$,F~NO$5$l$?%?%$%_%s%0!J!)!K$HG'<1$7$F$$$^$9!#(B<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
</blockquote>
<br>
$B8=:_!"%P%j%G!<%7%g%s$,<B9T$5$l$k%?%$%_%s%0$O(B<br>
validate.js$BFb$N(B_regist$B4X?tFb$G0J2<$N$h$&$K@_Dj$5$l$F$$$^$9!#(B<br>
-checkbox/radio$B$O(Bclick$B;~(B<br>
-password/text/textarea$B$O(Bkeyup$B;~(B<br>
-select-one/select-multiple$B$O(Bchange$B;~(B<br>
<br>
&nbsp;$BNc$($P0J2<$N$h$&$J$3$H$O2DG=$G$7$g$&$+!)(B<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$B!&F~NO$7$?9`L\$@$1$r%P%j%G!<%7%g%s%A%'%C%/<B9T$9$k!#(B<br>
$B$b$7$/$O(B<br>
$B!&%5%V%_%C%H;~$K%P%j%G!<%7%g%s%A%'%C%/<B9T$9$k!#(B<br>
<br>
</blockquote>
<br>
$BF~NO9`L\$@$1$r%P%j%G!<%7%g%s%A%'%C%/$9$k$N$G$"$l$P(B<br>
$BFH<+%P%j%G!<%?$r<+:n$7$FF~NO$,$"$k>l9g$N$_%P%j%G!<%7%g%s$r(B<br>
$B<B9T$9$l$PNI$$$H;W$$$^$9!#(B<br>
$B0J2<$N(BValidator$B$N<+:n;2>H(B<br>
<a href="http://teeda.seasar.org/ja/kumu_validate.html" target="_blank">http://teeda.seasar.org/ja/kumu_validate.html</a><br>
$BNc!KF~NO$,$"$C$?>l9g$N$_<B9T(B<br>
Kumu.Validator.FooValidator = function(){<br>
&nbsp;this.validate = function(v){<br>
 &nbsp;if(v == null || v.length == 0){<br>
 &nbsp; &nbsp;return true;<br>
 &nbsp;}else{<br>
 &nbsp; &nbsp;var re = /^[-]?\d*$/;<br>
 &nbsp; &nbsp;var v = v.toString();<br>
 &nbsp; &nbsp;if(!v.match(re)){<br>
 &nbsp; &nbsp; &nbsp;return false;<br>
 &nbsp; &nbsp;}else{<br>
 &nbsp; &nbsp; &nbsp;return true;<br>
 &nbsp; &nbsp;}<br>
 &nbsp;}<br>
&nbsp;}<br>
}<br>
Kumu.Validator.FooValidator.prototype = new Kumu.Validator.ValidatorBase();<br>
KumuValidatorConf = {<br>
 &nbsp;test : [&#39;Foo&#39;],<br>
}<br>
<br>
$B$^$?!"$"$k%\%?%s$r%/%j%C%/$7$?:]$K$@$1%P%j%G!<%7%g%s$rE,MQ$9$k$K$O(B<br>
_regist$B4X?t$r0J2<$N$h$&$K$9$l$P$$$1$k$H;W$$$^$9!#(B<br>
<br>
&nbsp;_regist : function(validateConf){<br>
 &nbsp;this._parse(validateConf);<br>
 &nbsp;Kumu.Event.addEvent(document.$B%U%)!<%`MWAG(B.$B%\%?%sMWAG(B, &#39;click&#39;,<br>
 &nbsp; &nbsp;this._validate.bindScopeAsEventListener(this));<br>
&nbsp;}<br>
<br>
$BHFMQE*$JBP1~$K$J$C$F$$$^$;$s$,!"(Bvalidate.js$B$r%+%9%?%^%$%:$9$l$P(B<br>
$BBP1~$O2DG=$@$H;W$$$^$9!#(B<br>
<br>
$B$^$?@uLn$5$s$,:n@.$5$l$F$$$k(Balert$B$,I=<($5$l$k$b$N$N4JC1$J(B<br>
$B%5%s%W%k$r8+$;$FD:$1$k$H2?$+$7$iJ}K!$,Ds<(=PMh$k$+$b$7$l$^$;$s!#(B<br>
<br>
<br>
$B59$7$/$*4j$$$7$^$9!#(B<br>
<br>
----- Original Message ----- From: &quot;$B@uLn8n(B&quot; &lt;<a href="mailto:asano1225@gmail.com" target="_blank">asano1225@gmail.com</a>&gt;<br>
<br>
<br>
<br>
&nbsp;$B@uLn$G$9!#$*@$OC$K$J$j$^$9!#(B<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
$BJV?.$"$j$,$H$&$4$6$$$^$7$?!#(B<br>
<br>
$B7k6I!"%/%i%$%"%s%HB&$G$b%P%j%G!<%7%g%s$r9T$&$3$H$r8!F$$7$F$$$k$N$G$9$,!"(BKumu$B$N(BValidator$B$NF0:n$K$D$$$F65$($F$/$@$5$$!#(B<br>
<br>
KumuValidatorConf$B$G@_Dj$7$?%P%j%G!<%7%g%s$,<B9T$5$l$k%?%$%_%s%0$O!"!J%5%V%_%C%H;~$G$O$J$/!K3F9`L\$KCM$,F~NO$5$l$?%?%$%_%s%0!J!)!K$HG'<1$7$F$$$^$9!#(B<br>
<br>
$B%P%j%G!<%7%g%s$N%3!<%k%P%C%/4X?t$r@_Dj$7!"%(%i!<;~$K$O(Balert$BJ8$G!"%(%i!<%a%C%;!<%8$rI=<($7$h$&$H$7$?$N$G$9$,!"#1$D$N%P%j%G!<%7%g%s%A%'%C%/$,<B9T$5$l$k$H!"$^$@L$F~NO$NB>$N9`L\$N%P%j%G!<%7%g%s%A%'%C%/$b<B9T$5$l$^$9!#(B<br>
$B$h$C$F!"$^$@L$F~NO9`L\$N%(%i!<%a%C%;!<%8%@%$%"%m%0$bI=<($5$l$F$7$^$&$N$G!"$3$N2sHr:v$rD4::$7$F$$$^$9!#(B<br>
<br>
$BNc$($P0J2<$N$h$&$J$3$H$O2DG=$G$7$g$&$+!)(B<br>
$B!&F~NO$7$?9`L\$@$1$r%P%j%G!<%7%g%s%A%'%C%/<B9T$9$k!#(B<br>
$B$b$7$/$O(B<br>
$B!&%5%V%_%C%H;~$K%P%j%G!<%7%g%s%A%'%C%/<B9T$9$k!#(B<br>
<br>
$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B<br>
<br>
<br>
2009/03/19 16:00 Koichi Kobayashi &lt;<a href="mailto:koichik@gmail.com" target="_blank">koichik@gmail.com</a>&gt;:<br>
<br>
&nbsp;$B>.NS(B (koichik) $B$G$9!%(B<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Date: &nbsp; &nbsp;Thu, 19 Mar 2009 12:04:53 +0900<br>
From: &nbsp; &nbsp;$B@uLn8n(B &lt;<a href="mailto:asano1225@gmail.com" target="_blank">asano1225@gmail.com</a>&gt;<br>
To: &nbsp; &nbsp; &nbsp;<a href="mailto:seasar-user@ml.seasar.org" target="_blank">seasar-user@ml.seasar.org</a><br>
Subject: [Seasar-user:17079]<br>
[Teeda]xxxItems$B$K(BJavaScript$B$G9TDI2C8e!"%P%j%G!<%7%g%s%(%i!<$,H/@8$9$k$HDI2C$7$?9T$,$J$/$J$k(B<br>
<br>
&gt;<br>
<br>
$B0lMw$KI=<($5$l$F$$$k(BxxxItems$B$KBP$7!"(BJavaScript$B$G9TDI2C$7$?8e!"EPO?$J$I$N(Bdo$B%a%=%C%I$G%P%j%G!<%7%g%s%(%i!<$,H/@8$9$k$H!"(BxxxItems$B$N%5%$%:$O85$N>uBV$KLa$j$^$9!#(B<br>
<br>
do$B!A(B() $B%a%=%C%I$,8F$P$l$?>l9g!$(BTeeda $B$H$7$F$O(B<br>
$B%P%j%G!<%7%g%s$O=*$o$C$F$*$j!$$=$N8e$NIA2h$OF~NO;~$N(B<br>
$B>uBV$G$O$J$/!$%Z!<%8%/%i%9$N>uBV$GIA2h$5$l$^$9!%(B<br>
<br>
&gt;<br>
<br>
$BNc$($P!"%F%-%9%H%U%#!<%k%I$J$I$KCM$rF~NO$7!"%P%j%G!<%7%g%s%(%i!<$,H/@8$7$F$b!"F~NO$7$?CM$OJ];}$5$l$F:FIA2h$5$l$k$N$G!"(BxxxItems$B$bJQ99$,J];}$5$l$k$N$+$H;W$C$F$$$?$N$G$9$,!"$3$l$O;EMM$G$7$g$&$+!)(B<br>
<br>
$B<B:]$K$O!$(BxxxItems $B$O%5%V%_%C%H;~$N>uBV$r0];}$7$F$$$^$9!%(B<br>
$B%5%V%_%C%H;~$N>uBV$H$$$&$N$O!$(BxxxItemsSave $B$K$h$C$F(B<br>
$BJ];}$5$l$F$$$kCM$G$"$j!$(BJavaScript $B$GDI2C$5$l$?(B<br>
$B>pJs$OH?1G$5$l$F$$$^$;$s!%(B<br>
JavaScript $B$,DI2C$9$k(B &lt;input&gt; $B$d(B &lt;select&gt; $BEy$O(B<br>
xxxItems $B$=$N$b$N$G$O$J$$$3$H$KCm0U$7$F$/$@$5$$!%(B<br>
$B$=$l$i$O(B xxxItems $B$N;R%3%s%]!<%M%s%H$KH?1G$5$l$^$9!%(B<br>
<br>
xxxItems $B<+BN$K(B JavaScript $B$GDI2C$5$l$?>pJs$,(B<br>
$BH?1G$5$l$k$N$O(B UPDATE_MODEL_VALUES $B%U%'!<%:$G$"$j!$(B<br>
$B$3$l$O%P%j%G!<%7%g%s%(%i!<$,H/@8$9$k$H<B9T$5$l$^$;$s!%(B<br>
<br>
<a href="http://teeda.seasar.org/ja/extension/concept/lifecycle.html#JSF" target="_blank">http://teeda.seasar.org/ja/extension/concept/lifecycle.html#JSF</a><br>
$B%i%$%U%5%$%/%k$H$N4X78(B<br>
<br>
$B$3$N$?$a!$(BxxxItems $B$O%5%V%_%C%H;~$N>uBV$9$J$o$A(B<br>
$BA0$NIA2h;~$N>uBV(B (JavaScript $B$K$h$jDI2C$5$l$k(B<br>
$B9T$r4^$^$J$$>uBV(B) $B$N$^$^$H$J$j$^$9!%(B<br>
<br>
&gt; $B;EMM$N>l9g$O!"(BxxxItems$B$NJQ99$rJ];}$9$kJ}K!$O$J$$$G$7$g$&$+!)(B<br>
<br>
$B<B:]$K$O%P%j%G!<%7%g%s$G%(%i!<$K$J$C$?>l9g$G$b(B<br>
xxxItems $B$K(B JavaScript $B$K$h$kJQ99$rH?1G$5$;$kJ}K!$H(B<br>
$B$$$&$3$H$K$J$j$^$9$,!$$$$$J}K!$,;W$$$D$-$^$;$s!%(B<br>
$BB>$NJ}$O$I$&$d$C$F$k$s$G$7$g$&$M!)(B<br>
<br>
<br>
$BL5M}LpM}$J0F$H$7$F$O!$(BxxxItems $B$N%5%$%:$r$"$i$+$8$a(B<br>
$BA}$d$7$F$*$/$H$$$&$N$,9M$($i$l$^$9!%(B<br>
$B>/!9LLE]$G$9$,!$(BxxxItems $B$NMWAG$G$"$k(B Dto $B$K(B<br>
$BM-8z!?L58z$rI=$9%U%i%0$r;}$?$;$F!$(B<br>
# $B%Z!<%8%/%i%9$K$bI,MW$G$9!%(B<br>
<br>
public class XxxDto {<br>
&nbsp;public boolean enable;<br>
&nbsp;...<br>
}<br>
<br>
xxxItems $B$O<B:]$KDI2C$5$l$&$k>e8B$N%5%$%:$K$J$k$h$&$K(B<br>
$BM=Hw$N(B XxxDto $B$r;}$?$;$^$9!%(B<br>
$BNc$($P:GBg(B 100 $B7o$^$GA}$d$;$k$J$i!$IA2h;~$K$O(B<br>
10 $B7o$7$+$J$/$F$b(B xxxItems $B$NMWAG?t$O(B 100 $B$K(B<br>
$B$J$k$h$&$K!$M=Hw$N(B XxxDto $B$rF~$l$F$*$-$^$9!%(B<br>
$B$?$@$7!$M=Hw$N(B XxxDto $B$N(B enable $B%U%i%0$O(B false $B$K$7$^$9!%(B<br>
<br>
HTML $B$G$O!$(Benable $B$,(B false $B$N>l9g$OIA2h$7$J$$$h$&$K(B<br>
$B$7$^$9!%(B<br>
$B$^$?!$(Benable $B$r1#$7%U%#!<%k%I$K;}$?$;$^$9!%(B<br>
<br>
&lt;input type=&quot;hidden&quot; id=&quot;xxxItemsSave&quot; /&gt;<br>
&lt;div id=&quot;xxxItems&quot;&gt;<br>
&nbsp;&lt;input type=&quot;hidden&quot; id=&quot;enable&quot; /&gt;<br>
&nbsp;&lt;div id=&quot;isEnable&quot;&gt;<br>
 &nbsp;...<br>
&nbsp;&lt;/div&gt;<br>
&lt;/div&gt;<br>
<br>
JavaScript $B$G9T$rDI2C$9$k:]!$(Benable $B$N(B value $B$O(B<br>
true $B$K$7$^$9!%(B<br>
<br>
$B$3$l$G%P%j%G!<%7%g%s%(%i!<$,H/@8$7$?>l9g$G$b(B<br>
xxxItems $B$O>e8BJ,$N%5%$%:$r;}$C$F$$$k$N$G!$(B<br>
$BDI2C$5$l$?9T$NJ,$bIA2h$5$l$^$9!%$?$V$s!%(B<br>
$B<B:]$K$O;n$7$F$$$J$$$N$G$^$:$$$H$3$m$,$"$k$+$b(B<br>
$B$7$l$^$;$s$,!%(B<br>
<br>
<br>
$B<B:]$N0F7o$G;H$C$F$k?M$NJ}$,$$$$0F$r;}$C$F$k$+$b(B<br>
$B$7$l$^$;$s!%$J$K$+$"$l$P<+J,$bCN$j$?$$$G$9!%(B<br>
<br>
<br>
--<br>
&lt;component name=&quot;koichik&quot;&gt;<br>
 &nbsp;&lt;property name=&quot;fullName&quot;&gt;&quot;Koichi Kobayashi&quot;&lt;/property&gt;<br>
 &nbsp;&lt;property name=&quot;email&quot;&gt;&quot;<a href="mailto:koichik@gmail.com" target="_blank">koichik@gmail.com</a>&quot;&lt;/property&gt;<br>
 &nbsp;&lt;property name=&quot;blog&quot;&gt;&quot;<a href="http://d.hatena.ne.jp/koichik" target="_blank">http://d.hatena.ne.jp/koichik</a>&quot;&lt;/property&gt;<br>
&lt;/component&gt;<br>
<br>
</blockquote>
<br>
</blockquote>
---<br>
$BJFNS(B $B@5L@(B<br>
<a href="http://www.abby.co.jp" target="_blank">http://www.abby.co.jp</a><br>
</blockquote></blockquote>
<br></div></div>
---<br>
$BJF(B $BNS!!@5(B $BL@(B<div><div></div><div class="h5"><br>
<a href="http://www.abby.co.jp" target="_blank">http://www.abby.co.jp</a> <br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</div></div></blockquote></div><br>