This is because there is still an uncorrected error on the screen. Notice also, when you click the Submit button, the form is not submitted.
The goal of this task is to retrieve the control custom property value and subsequently process it to dynamically validate the "the customer's name" input control value. The next task is to modify some Oracle Web Determinations templates. InputTextMaxLengthMessage =Character length of the input should be less than or equal to Had the rulebase been using several locales, we could add the translated error messages to each locale-specific messages.properties file - this would enable the localized message to be displayed when the interview is associated to a specific locale. Since the rulebase is just using the English locale, we only need to add the error message in \WEB-INF\classes\configuration\messages.en.properties. To do this, we will set the error message inside the messages.properties files. We will configure the error message in such a way that can be localized. We are now ready to customize the Velocity templates.
Open the screens file and click on the customer_name: What is the customer's name? input control.To set the control property, do the following: In this example, we will validate input string length of the "the customer's name" against what is set in this property. As seen in the screenshot above, the "Max String Length" custom property has a default value of "0".
Add new Number Control Custom Property Go to File -> Project Properties -> Custom Property Definitions -> Control.In Oracle Policy Modeling, open the BonusFlightEligibility rulebase project located in \examples\rulebases\source\BonusFlightEligibility.We will define and set a custom property to allow a text input control to be validate for maximum length. Construct the example: Modify the rulebase exampleįirst, we need to modify the BonusFlightEligibility rulebase. This example demonstrates how a control value entered by the user, can be dynamically validated and allow its error message to be displayed on the screen.
#How to display error message brackets text editor how to#
Example - How to dynamically display an error message for a control Example - Dynamically display an error message for a control