[ https://issues.apache.org/jira/browse/OFBIZ-6690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14967496#comment-14967496 ]
Taher Alkhateeb commented on OFBIZ-6690: ---------------------------------------- I am not sure that we need to change anything else Jacques. We just need to stop manually assigning a CSS class using widget-style. In other words, we are just replacing manual CSS assignment with automatic one that comes from the required-field="true" attribute being set and translated at the template level. Or maybe I'm missing something? Not sure. > replace widget-style="required" with required-field="true" > ---------------------------------------------------------- > > Key: OFBIZ-6690 > URL: https://issues.apache.org/jira/browse/OFBIZ-6690 > Project: OFBiz > Issue Type: Sub-task > Components: ALL APPLICATIONS > Affects Versions: Trunk > Reporter: Pierre Smits > Assignee: Taher Alkhateeb > Labels: validation > Fix For: Upcoming Branch > > Attachments: OFBIZ-6690-SetupForms.xml.patch, > OFBIZ-6690-removewidgetstyle.patch > > > Currently many fields have 'widget-style="required" to indicate that input > for the field is required. Better is it to have 'required-field="true". This > not only opens up the possibility to define additional validation rules, but > the rendered also incorporates the aspects associated with > 'widget-style="required". -- This message was sent by Atlassian JIRA (v6.3.4#6332)