Home / Interview / JSF :: General Questions

Interview :: JSF

21)

What is the use of the View module?

The module shows the user interface

22)

What is h:outputText tag in JSF (JavaServer Faces)?

The JSF is used to render a plain text. If the "styleClass", "style", "dir" or "lang" attributes are present, render a "span" element. If the "styleClass" attribute is present, render its value as the value of the "class" attribute.

23) What is h:form tag in JSF (JavaServer Faces)?

The tag represents an input form. It includes child components that can contain data which is either presented to the user or submitted with the form. It can also include HTML markup to lay out the components on the page.

24) What is h:commandButton tag in JSF (JavaServer Faces)?

The tag creates a submit button and used to submit an application form.

25) What is h:inputTextarea tag in JSF (JavaServer Faces)?

The tag renders an HTML "textarea" element. It allows a user to enter multiline string.

26) What is h:commandLink tag in JSF (JavaServer Faces)?

JSF renders it as an HTML "a" anchor element that acts as a form submit button when clicked. So, you can create an anchor tag by using this tag. An h:commandLink tag must include a nested h:outputText tag, which represents the text that the user clicks to generate the event. It's also required to be placed inside a tag.

27) What is h:inputSecret tag in JSF (JavaServer Faces)?

It is a standard password field which accepts one line of text with no spaces and displays it as a set of asterisks as it is entered. In other words, we say, it is used to create an HTML password field which allows a user to input a string without the actual string appearing in the field.

28) What is h:inputHidden tag in JSF (JavaServer Faces)?

It renders an HTML "input" element of type hidden. It does not appear on the web page, so you can pass hidden information while submitting the form.

29) What is h:inputFile tag in JSF (JavaServer Faces)?

JSF renders it as an HTML element of type file. It is used to get the file as input. In HTML form, it allows a user to upload a file.

30) What is h:graphicImage tag in JSF (JavaServer Faces)?

JSF renders an HTML element "img" tag. This tag is used to render an image on the web page.