Where could you write code to change the color of a JSF…

Where could you write code to change the color of a JSF input text component if the value of the salary field on
the same page is higher than a fixed value? (Choose the best answer.)

Where could you write code to change the color of a JSF input text component if the value of the salary field on
the same page is higher than a fixed value? (Choose the best answer.)

A.
in a backing bean

B.
in the validation for the view object’s salary attribute

C.
in the CSS file that defines the skin for the application

D.
in a custom validator defined at the field level

Explanation:
In JSF, there is no official way to validate multiple components or fields. To solve it, you need to create a
custom validator.
http://www.mkyong.com/jsf2/multi-components-validator-in-jsf-2-0/



Leave a Reply 0

Your email address will not be published. Required fields are marked *