<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>From: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Emmanuel Bernard <<a href="mailto:emmanuel.bernard@jboss.com">emmanuel.bernard@jboss.com</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">6 March 2009 21:03:51 GMT</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Ed Burns <<a href="mailto:Ed.Burns@Sun.COM">Ed.Burns@Sun.COM</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Cc: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>>, Dan Allen <<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Subject: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Re: [426-BeanValidation] Default Enablement Change</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ed,<div>What are you reasons for not allowing this "auto" mode by default (both for the default validator and the validate empty fields?</div><div><br></div><div>We initially had something like you proposed but we decided to align with JPA to get a better cleaner alignment of the Java programmatic model at large (SE and EE). I can understand your uneasiness (I was a bit initially too) but I think it's for the greater of JSF and the platform, esp wrt ease of use.</div><div>We are at an interesting tipping point. BV is not in applications yet so we can define the best defaults for the present and the future. It will be too late to move forward after that. Remember, if BV is not in the classpath, nothing changes. If someone wants to force the old legacy approach, it's two properties away.</div><div><br></div><div>Emmanuel</div><div><br><div><div>On Mar 6, 2009, at 15:47, Dan Allen wrote:</div><blockquote type="cite"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Ed Burns</b> <span dir="ltr"><<a href="mailto:Ed.Burns@sun.com">Ed.Burns@sun.com</a>></span><br>Date: Fri, Mar 6, 2009 at 3:41 PM<br> Subject: [426-BeanValidation] Default Enablement Change<br>To: <a href="mailto:JSR-314-OPEN@jcp.org">JSR-314-OPEN@jcp.org</a><br><br><br>Change 1<br> <br> <br> When sitting down to move the content out of Appendix C and into the<br> spec proper, I came across this statement, currently in setion 2.3.2 of<br> Appendix C.<br> <br> If Beans Validation is present in the environment (i.e., the<br> javax.validation.Validation class is available on the classpath), the<br> validator with javax.faces.Bean is considered the default validator if<br> no default validators are defined.<br> <br> I would like to remove this statement and replace it with.<br> <br> If running in a container that supports Beans Validation, adding the<br> validator with id "javax.faces.Bean" to the default-validator section<br> enables Beans Validation integration.<br> <br> Change 2<br> <br> In section 11.1.3, where we declare the context-params and how to handle<br> them, this text appears:<br> <br> * javax.faces.VALIDATE_EMPTY_FIELDS -- If this param is set, and calling<br> toLowerCase().equals("true") on a String representation of its value<br> returns true, all submitted fields will be validated. This is<br> necessary to allow the model validator to decide whether null or empty<br> values are allowable in the current application. If the value is<br> "false", null or empty values will not be passed to the validators. If<br> the value is the string "auto", the runtime must check if JSR-303<br> Beans Validation is present in the current environment. If so, the<br> runtime must proceed as if the value "true" had been specified. If<br> JSR-303 Beans Validation is not present in the current environment,<br> the runtime most proceed as if the value "false" had been specified.<br> <br> I would like to add the following after the last sentance above. If the<br> param is not set, the system must behave as if the param was set with<br> the value "false"<br> <br> ACTION: please reply my 0900 EST Monday 20090309.<br> <br> Thanks,<br> <br> Ed<br> <font color="#888888"><br> --<br> | <a href="mailto:ed.burns@sun.com">ed.burns@sun.com</a> | office: 408 884 9519 OR x31640<br> | homepage: | <a href="http://ridingthecrest.com/" target="_blank">http://ridingthecrest.com/</a><br> </font></div><br><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br> <br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don't hear back for more than a week,<br> it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters. Please don't hesitate to resend a message if<br>you feel that it did not reach my attention.<br></blockquote></div><br></div></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Pete Muir</div><div><a href="http://www.seamframework.org">http://www.seamframework.org</a></div><div><a href="http://in.relation.to/Bloggers/Pete">http://in.relation.to/Bloggers/Pete</a></div></div></div></div></div></span> </div><br></body></html>