Gaurang
02-07-2007, 04:56 PM
I know this is silly question but this is very important for me. I have gone through all available post related to validation framework but i have not got any hint to solve my problem. so this post. :(
As document says, i should be able to use Validation Framework from any application layer. I am interested in invoking this validation framework from my BLC to validate the message object. I have define my XML file, but now I am not getting any idea about how to use this xml file and invoke validation.
It will be great if somebody provide me an example to use this xml config file for validation. Below is my sample xml file, now tell me how can i invoke this validatio from my BLC. Thanks in advance.
<objects xmlns="http://www.springframework.net" xmlns:v="http://www.springframework.net/validation">
<v:group id="tripValidator">
<v:required id="RequiredFieldValidator" test="SimpleMessage.RField">
<v:message id="error.departureAirport.required" providers="departureAirportErrors, validationSummary"/>
</v:required>
</v:group>
</objects>
As document says, i should be able to use Validation Framework from any application layer. I am interested in invoking this validation framework from my BLC to validate the message object. I have define my XML file, but now I am not getting any idea about how to use this xml file and invoke validation.
It will be great if somebody provide me an example to use this xml config file for validation. Below is my sample xml file, now tell me how can i invoke this validatio from my BLC. Thanks in advance.
<objects xmlns="http://www.springframework.net" xmlns:v="http://www.springframework.net/validation">
<v:group id="tripValidator">
<v:required id="RequiredFieldValidator" test="SimpleMessage.RField">
<v:message id="error.departureAirport.required" providers="departureAirportErrors, validationSummary"/>
</v:required>
</v:group>
</objects>