Hello Adithi,
Once your control has been passed through FTLand form ,validations can
be done at events using Simple Map Processors like this :
<simple-map-processor name="createPersonMap">
<process field="firstName">
<copy/>
<not-empty>
<fail-property
property="PracticeFirstNameMissingError" resource="PracticeUiLabels"/>
</not-empty>
</process>
<process field="middleName"><copy/></process>
<process field="lastName">
<copy/>
<not-empty>
<fail-property
property="PracticeLastNameMissingError" resource="PracticeUiLabels"/>
</not-empty>
</process>
</simple-map-processor>
and even in form you can specify which field is required :
<field name="salutation" required-field="true"><text/></field>
and in service :
<attribute name="firstName" mode="IN" type="String" optional="false"/>
This optional ="false" specifies this particular field is compulsory.
--
Thanks and Regards
Surya Kusumakar
Hotwax Media Pvt Ltd.
www.hotwaxmedia.com
Divesh Dutta wrote:
> Hi Adithi,
> validations for field can be done using EVENTS. you can refer practice
> applications.you can refer this below given link:
>
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application
>
> In part-3 you may get more details about EVENTS.Probably this may
> solve your problem.
>
> Thanks and Regards
> Divesh Dutta
> HotWax Media, Inc.
> adithi agarwal wrote:
>> Hii all
>>
>> Can someone explain me how we get the error messages..Where do we do
>> the validations for the fields..
>>
>> Thankyou
>>
>>
>>
>>
>