Skip to main content

Manfred Riem

I love working with a broad range of technologies. At work it is mostly JavaEE and JavaSE technologies, as a hobby I do some Java on devices.

 

mriem's blog

JSF Tip #9 - The BeanValidator

Posted by mriem on September 17, 2012 at 4:07 PM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

Since JSF 2 it is also possible to use BeanValidation as specified in JSR 303. The following blog article describes how this JSR has been integrated within JSF 2.

With the following JSF managed bean.

JSF Tip #8 - Writing your own Validator

Posted by mriem on September 9, 2012 at 10:40 AM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

Writing your own validator is a straightforward process. It involves implementing the Validator API and making sure you register it properly.

Say you want to write a validator that will not allow you to use the string "Hello World" as a value.

JSF Tip #7 - The RequiredValidator

Posted by mriem on September 7, 2012 at 8:33 PM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

Say you want to make sure that a value is required.

JSF Tip #6 - The RegexValidator

Posted by mriem on September 6, 2012 at 7:28 PM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

If you want to validate input against a regular expression then you would use the RegexValidator.

Say you want to make sure only letters are used for a name.

JSF Tip #5 - The DoubleRangeValidator

Posted by mriem on September 5, 2012 at 2:49 PM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

Just like the LongRangeValidator before the DoubleRangeValidator validates if the given value is within the given range, but then a range of doubles.

Say you want to make sure your donors can donate as little as 1.00 but at most 250.00.

JSF Tip #4 - The LongRangeValidator

Posted by mriem on September 5, 2012 at 5:02 AM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

If you want to make sure a value is within given Long range then the LongRangeValidator is for you!

Say you want to make sure your users are at least 13 but at most 18.

JSF Tip #3 - The LengthValidator

Posted by mriem on September 4, 2012 at 5:36 AM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

The LengthValidator is one of the standard validators that is specified by the JavaServerFaces specification. It allows you to verify (validate) if the proposed input (submitted value) on a given component is valid.

JSF Tip #2 - The JSF Validator API

Posted by mriem on September 3, 2012 at 4:55 AM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

The definition of a Validator according to the Validator interface:

JSF Tip #1 - Introduction to JSF Validators

Posted by mriem on September 1, 2012 at 1:49 AM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

During the JSF lifecycle each input value can be validated. As such the JSF runtime allows you to write validators that will take care of that during request processing.

Integration testing on Weblogic using HtmlUnit and Maven

Posted by mriem on January 13, 2012 at 10:50 AM PST

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

 In the previous articles we have concentrated on testing using Glassfish. But can you use the same
recipe to do testing on Weblogic. The answer is YES, but ..... Yea you know there is always a caveat.