so i started to refactor the featureset-01 example (which is already shipped with myfaces-extval) to bv-constraints. since myfaces-extval provides ui-optimized approaches not everything will be possible. anyway, the result of this first step is client-side validation of @NotNull and @Size via the client-side validation feature of myfaces trinidad.
the rendered result:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC1UhyCBy7LDDSm3S_xNZ3vSQbgwcXfIcb1dn1WuobEvBIk2I5_YFo2kY05C8OZI4rzO5sRsUPzicTNVrDpbFI62v7qZp0nohyphenhyphendDPtnS09Hho8IAMUl3TdVtl2ttPL1Sk18J5S-nsp1nU/s400/result.png)
as you might already know extval also initializes the component based on constraints. that results in the correct values e.g. of the maxlength attribute - a section of the page above:
this example uses the same xhtml pages like featureset-01 - so the important part of the facelets-component is:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJIKcq9xm7u5OeRN4i2cdxSqz8mRF_TZ-X9Lk19fzVSCH69ASB_4K-uEshM06KAKEMmnLpTsVorkNzjakDw1AMZQ6aoMI21-hDjyqA-5zNUVlol8KzWARBlTbaoaBW9myXYjxNUJXpTBI/s400/page_source.png)
and the most important part - a section of the entity:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrXuvAMzxaSRiRQaNQ5jyZi5DC_cC2LQ1QdJXYx1w7ggtghQRRZrieMHe6wj5-4J3ItUXyO-AEby7FD6SEljPd5WPqYR24QJsb0mIiSvRkqG8-jJf48v6ya_OJ52ixxgyHoliOpmiPj9s/s400/bean.png)