In this recipe, we will create a new converter with client-side capabilities to check whether the value is a valid XML syntax or not. Then, we will apply this on the
CodeSample attribute. You can continue from the previous recipe, or you can grab this project's recipe by cloning the
CreatingCustomCSConverter application from the Git repository.
Create a class that implements
org.apache.myfaces.trinidad.validator.ClientConverterinterfaces and override its methods.
Register the converter inside the
Apply the converter on input components.
The second step is important since...