<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">How should we handle the proposals?<div class=""><br class=""></div><div class="">- discuss by mail?</div><div class="">- PR to: <a href="https://github.com/beanvalidation/beanvalidation.org/blob/staging/proposals/BVAL-214.md" class="">https://github.com/beanvalidation/beanvalidation.org/blob/staging/proposals/BVAL-214.md</a></div><div class="">- comment on page:&nbsp;<a href="http://beanvalidation.org/proposals/BVAL-214/" class="">http://beanvalidation.org/proposals/BVAL-214/</a></div><div class=""><br class=""></div><div class="">Currently I have no idea what is the right way :)</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Hendrik</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 01.09.2016 um 13:02 schrieb Hendrik Ebbers &lt;<a href="mailto:hendrik.ebbers@me.com" class="">hendrik.ebbers@me.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I had a deeper look at&nbsp;BVAL-214 (<a href="http://beanvalidation.org/proposals/BVAL-214/" class="">http://beanvalidation.org/proposals/BVAL-214/</a>) and have some additional input. Since we depend on java 8 I think it would make sense to use suppliers to create the bean mocks for validation. This can look like this:</div><div class=""><br class=""></div><div class=""><pre style="background-color: rgb(255, 255, 255); font-family: Menlo;" class="">BeanValidator&lt;ContactDataModel&gt; contactValidator = BeanValidator.<span style="font-style:italic;" class="">build</span>(ContactDataModel.<span style="color:#000080;font-weight:bold;" class="">class</span>);<br class="">contactValidator.withProperty(<span style="color:#008000;font-weight:bold;" class="">"city"</span>, () -&gt; <span style="color:#660e7a;font-weight:bold;" class="">cityField</span>.getText()).<br class="">        withProperty(<span style="color:#008000;font-weight:bold;" class="">"zipCode"</span>, () -&gt; <span style="color:#660e7a;font-weight:bold;" class="">zipCodeField</span>.getText());</pre><div class=""><br class=""></div></div><div class="">In addition I think that it will be important to have a better feedback for the violations that are based on a UI field. If you have a violation based in the text of the cityField you normally want to mark that field in the UI. I think a consumer can really help here:</div><div class=""><br class=""></div><div class=""><pre style="background-color: rgb(255, 255, 255); font-family: Menlo;" class="">contactValidator.withProperty(<span style="color: rgb(0, 128, 0); font-weight: bold;" class="">"city"</span>, () -&gt; <span style="color: rgb(102, 14, 122); font-weight: bold;" class="">cityField</span>.getText(), v -&gt; markCityField(v));<br class=""></pre><div class="">By doing so you will always get the set of violations that is based on the value in the city field.</div></div><div class=""><br class=""></div><div class="">You can find a first idea of such an interface and 2 view controller examples here:&nbsp;<a href="https://github.com/guigarage/validation-playground/tree/master/src/main/java/com/guigarage/dynamicvalidation" class="">https://github.com/guigarage/validation-playground/tree/master/src/main/java/com/guigarage/dynamicvalidation</a></div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Hendrik</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 01.09.2016 um 10:14 schrieb Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org" class="">gunnar@hibernate.org</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<br class=""><br class="">Unfortunately I won't be able to attend JavaOne myself, but still it should be a great opportunity for members of the BV EG and community to meet and exchange.<br class=""><br class="">As per [1] there is a BV 2.0 Hackergarten event scheduled for Tuesday the 20th, led by Michael Nascimento. Thanks for taking this initiative, Michael!<br class=""><br class="">Interesting things to discuss and explore might be proposals written by then (e.g. the one around List&lt;@Email&gt;, Emmanuel is working on updating this one) and things like ordering of constraints (BVAL-248, [2]) or David Blevins' proposal around using Lambdas (BVAL-515, [3]). David should be there, so make sure to get hold of him :)<div class=""><br class=""></div><div class="">Another interesting topic is integration with other specs/techs (e.g. javax.money or JavaFX). Specifically, there are several pending issues around the integration of BV and JAX-RS:</div><div class=""><br class=""></div><div class="">*&nbsp;Provides means to disable BV during JAX-RS lifecycle validation (BVAL-520, [4])<br class="">* Provide facility for more flexible HTTP error codes when using BV with JAX-RS (BVAL-518, [5])</div><div class="">* Pass the request locale to BV's MessageInterpolator</div><div class=""><br class=""></div><div class="">Mostly these things would have to be done on the JAX-RS side, so it would be great to have a chat with them if there is the chance for it.</div><div class=""><br class=""></div><div class="">Apart from that, essentially anything would be great which helps with forming a picture of the community's needs and requirements.</div><div class=""><br class=""></div><div class="">Thoughts?</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">--Gunnar<br class=""><div class=""><br class="">[1] <a href="http://linkis.com/community.oracle.com/bhe4K" class="">http://linkis.com/community.oracle.com/bhe4K</a><div class="">[2]&nbsp;<a href="https://hibernate.atlassian.net/browse/BVAL-248" class="">https://hibernate.atlassian.net/browse/BVAL-248</a></div><div class="">[3]&nbsp;<a href="https://hibernate.atlassian.net/browse/BVAL-515" class="">https://hibernate.atlassian.net/browse/BVAL-515</a></div><div class="">[4] <a href="https://hibernate.atlassian.net/browse/BVAL-520" class="">https://hibernate.atlassian.net/browse/BVAL-520</a></div></div></div><div class="">[5] <a href="https://hibernate.atlassian.net/browse/BVAL-518" class="">https://hibernate.atlassian.net/browse/BVAL-518</a></div><div class=""><br class=""></div></div>
_______________________________________________<br class="">beanvalidation-dev mailing list<br class=""><a href="mailto:beanvalidation-dev@lists.jboss.org" class="">beanvalidation-dev@lists.jboss.org</a><br class=""><a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" class="">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>