[jira] [Commented] (OFBIZ-7511) Add proper form validation across the application

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7511) Add proper form validation across the application

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344183#comment-15344183 ]

Nicolas Malin commented on OFBIZ-7511:
--------------------------------------

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)