I am developing a custom JSF UIInput that expects a specially designed value from the user. In order to validate user input, I need to run a chain of check which is only related to the application in hand. This is not just a normal email or phonenumber input field, it is a text input that has the overall value that needs to be deformed in parts and each part has to be validated.
I have been able to make myself a component. @SpaceComponent ("MyComponent") public class MyComponent UIInput {public String getFamily ()) extends {...} encodeBegin () {...} encodeEnd () {. ..}}
I also have a valid class which works all it is ready. However, I need it To include a custom legalization for this component as the default, I can do it manually as follows: but expected usage will be and the verifier should be there automatically. I've been googling all day now but I can find the basic examples of that do not want to use. Just add component to the creator. mycomponent.taglib.xml is bundled inside Meta-INF and I use the component successfully I can do
Public class Automation DetectionWidator Applicable Legalization {Public throws value valid (...) Valuer applicants {...}}
& lt; Custom: myComponent & gt; & Lt; F: Validator validator id = myaComponentValidator ??? / / Gt; & Lt; / Custom: myComponent & gt;
& lt; Custom: myComponent / & gt;
Public MyComponent () {AddValidator (New Automation Distributor ()); }
No comments:
Post a Comment