Jsf validateLongRange example

JSF f validateLongRange tag: JSF f: validateLongRange tag is used to validate the range of a numeric value. Syntax: <f:validateLongRange minimum="m" maximum="n" /><f:validateLongRange minimum="m" maximum="n" /> JSF f validateLongRange tag attribute: Attribute Description 1. minimum It specify minimum long value within an optional range 2. maximum It specify maximum long value within an optional range Example: … Read more

Categories JSF

Jsf validateLength example

JSF f validateLength tag: JSF f:validateLength tag is used to validate the length of a string. Syntax: <f:validateLength minimum="m" maximum="n" /><f:validateLength minimum="m" maximum="n" /> JSF f validateLength tag attribute: Attribute Description 1. minimum It specify minimum number of characters 2. maximum It specify maximum number of characters Example: test.xhtml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD … Read more

Categories JSF

Jsf validator tag tutorial

Validation: Validation is a process of checking something against a standard. What is a validator? In programming validator is used to perform the validation process. JSF validator tags: JSF provides inbuilt validators to validate the UI component data. JSF validators can validates length, type, format etc. For using JSF validator tags we have to use … Read more

Categories JSF

jsf custom converter example

JSF Custom Converter Example: Let us discuss how to create custom converter in JSF with example. Steps to create custom converter in JSF: 1. First create a converter class by implementing javax.faces.convert.Converter interface 2. Override getAsObject() and getAsString() methods of above interface. 3. Assign a unique converter ID to the custom convertor by using @FacesConverter … Read more

Categories JSF

Jsf convertdatetime example

JSF f convertdatetime tag: JSF f:convertdatetime tag is a standard JSF converter which is used to converts a string into a date of specific format. It is also used for date format validation. JSF convertdatetime tag attributes: Attribute Description type date (default), time, or both dateStyle default, short, medium, long, or full timeStyle default, short, … Read more

Categories JSF

Jsf convertnumber example

JSF f convertnumber tag: JSF f:convertNumber tag is a standard JSF converter which is used to converts a string into a number of specific format. It is also used for valid number validation. JSF converter tag attributes: Attribute Description 1. type number (default), currency , or percent 2. pattern Formatting pattern, as defined in java.text.DecimalFormat … Read more

Categories JSF

JSF converter tags tutorial

What is a converter? In programming converter is used to transform the component data from strings to Java objects and vice versa. JSF converter tags: JSF provides inbuilt converters to transform the UI component data from strings to Java objects used in a managed bean and vice versa. For example a date object is represented … Read more

Categories JSF

angularjs filter tutorial

AngularJS filters: AngularJS filters are used to format the data. AngularJS filters can be added to expressions and directives using pipe character |. Syntax: {{ expression | filter }}{{ expression | filter }} In case of multiple filters: {{ expression | filter1 | filter2 }}{{ expression | filter1 | filter2 }} Commonly used AngularJS filters: … Read more

Angularjs MVC tutorial

AngularJS MVC: AngularJS mvc framework provides the facility to build flexible and loosely coupled applications. MVC stands for Model-View-Controller design pattern which separates the business logic, presentation logic and navigation logic. Where: Model: is responsible for encapsulating the application data. View: is responsible for rendering the model data. Controller: is responsible for receiving the user … Read more

AngularJs controller tutorial

AngularJs controller: AngularJS controllers are used to control the data and flow of AngularJS applications. The ng-controller directive is used to define the AngularJS controller. AngularJS controllers are JavaScript Objects containing attributes or properties and functions. Each AngularJS controller accepts $scope as a parameter which refers to the application or module which is to be … Read more