[ https://issues.apache.org/jira/browse/OFBIZ-7511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344183#comment-15344183 ] Nicolas Malin edited comment on OFBIZ-7511 at 6/22/16 12:02 PM: ---------------------------------------------------------------- Thanks Diversh for the explanation, I had some difficulty than Jacques to understand exactly the problem. When we extend a form we can surcharge a field with only the wanted attribute to complete or change. Maybe override a field came from auto-field-* element would be treated like that. {code} <form name="EditExampleFeature" type="single" target="updateExampleFeature" title="" default-map-name="exampleFeature"> <auto-fields-service service-name="updateExampleFeature"/> <field name="exampleFeatureId" tooltip="${uiLabelMap.CommonNotModifRecreat}"/> <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> </form> {code} Or for not disturbing developer and xsd, we can change the field analyse like service definition {code} <form name="EditExampleFeature" type="single" target="updateExampleFeature" title="" default-map-name="exampleFeature"> <auto-fields-service service-name="updateExampleFeature"/> <override field name="exampleFeatureId" tooltip="${uiLabelMap.CommonNotModifRecreat}"/> <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> </form> {code} I quite aware of going off on a tangent, but sometime a hight level idea can resolve a specific case and some others ! :) was (Author: soledad): Thanks Diversh for the explanation, I had some difficulty than Jacques to understand exactly the problem. When we extend a form we can surcharge a field with only the wanted attribute to complete or change. Maybe override a field came from auto-field-* element would be treated like that. {code} <form name="EditExampleFeature" type="single" target="updateExampleFeature" title="" default-map-name="exampleFeature"> <auto-fields-service service-name="updateExampleFeature"/> <field name="exampleFeatureId" tooltip="${uiLabelMap.CommonNotModifRecreat}"/> <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> </form> {code} Or for not disturbing developer and xsd, we can change the field analyse like service definition {code} <form name="EditExampleFeature" type="single" target="updateExampleFeature" title="" default-map-name="exampleFeature"> <auto-fields-service service-name="updateExampleFeature"/> <override field name="exampleFeatureId" tooltip="${uiLabelMap.CommonNotModifRecreat}"/> <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> </form> {code} I quite aware of going off on a tangent, but sometime an hight level idea can resolve a specif case and some others ! :) > Add proper form validation across the application > -------------------------------------------------- > > Key: OFBIZ-7511 > URL: https://issues.apache.org/jira/browse/OFBIZ-7511 > Project: OFBiz > Issue Type: Improvement > Components: ALL APPLICATIONS > Affects Versions: Trunk > Reporter: Deepak Dixit > > This is the place holder task for adding proper form validation across the application. -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |