Variables in plsql

Variable: Variable is the name of reserved memory location. Each variable has a specific data type which determines the range of values and set of operations for that variable. PL/SQL variables naming rules: A variable name can’t contain more than 30 characters. A variable name must start with an ASCII letter followed by any number, … Read more

Jsf commandbutton html tag

JSF h:commandButton tag is used to render HTML input of type=”submit” button. JSF tag: <h:commandButton value="Click Here" /><h:commandButton value="Click Here" /> Rendered HTML tag: <input type="submit" name="j_idt10:j_idt13" value="Click Here" /><input type="submit" name="j_idt10:j_idt13" value="Click Here" /> Attribute of h:commandButton tag: Attribute Description id id for the tag rendered A boolean value; false would suppress rendering styleClass … Read more

Categories JSF

Jsf selectmanylistbox html tag

JSF h:selectManyListbox tag is used to render a multiple select HTML input element of the type “select” with size and multiple specified. JSF tag: <h:selectManyListbox value="#{testBean.data}" /> <f:selectItem itemValue="1" itemLabel="Item 1" /> <f:selectItem itemValue="2" itemLabel="Item 2" /> </h:selectManyListbox><h:selectManyListbox value="#{testBean.data}" /> <f:selectItem itemValue="1" itemLabel="Item 1" /> <f:selectItem itemValue="2" itemLabel="Item 2" /> </h:selectManyListbox> Rendered HTML tag: <select … Read more

Categories JSF

Jsf selectonelistbox html tag

JSF h:selectOneListbox tag is used to render a single select HTML input element of the type “select” with size specified. JSF tag: <h:selectOneListbox value="#{testBean.data}" /> <f:selectItem itemValue="1" itemLabel="Item 1" /> <f:selectItem itemValue="2" itemLabel="Item 2" /> </h:selectOneListbox><h:selectOneListbox value="#{testBean.data}" /> <f:selectItem itemValue="1" itemLabel="Item 1" /> <f:selectItem itemValue="2" itemLabel="Item 2" /> </h:selectOneListbox> Rendered HTML tag: <select name="j_idt6:j_idt8" size="2"> … Read more

Categories JSF

Jsf selectoneradio html tag

JSF h:selectOneRadio tag is used to render a single HTML radio button and provides the formatting with HTML table and label tags. JSF tag: <h:selectOneRadio value="#{testBean.data}" /> <f:selectItem itemValue="1" itemLabel="Item 1" /> <f:selectItem itemValue="2" itemLabel="Item 2" /> </h:selectOneRadio><h:selectOneRadio value="#{testBean.data}" /> <f:selectItem itemValue="1" itemLabel="Item 1" /> <f:selectItem itemValue="2" itemLabel="Item 2" /> </h:selectOneRadio> Rendered HTML tag: <table> … Read more

Categories JSF

Jsf setPropertyActionListener html tag

JSF f:setPropertyActionListener tag is used set a value directly into managed bean’s property. It uses setter method of the property for assigning the value. Example: Test.java import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped;   /** * Managed bean. * @author w3schools */ @ManagedBean(name="test") @SessionScoped public class Test { private String userName;   public String getUserName() { return userName; … Read more

Categories JSF

Jsf attribute html tag

JSF f:attribute tag is used to assign an attribute value to a JSF UI component or a parameter to a component which can be get via action listener. Attributes of f:attribute tag. Attribute Description name The name of the attribute to set value The value of the attribute Example: Test.java import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import … Read more

Categories JSF

Jsf param html tag

JSF f:param tag is used to pass parameters to JSF UI Component. Note: 1. If f:param component is used with h:outputFormat then it specifies the placeholder. 2. If f:param component is used with other component then it specifies the request parameter. Attributes of f:param tag. Attribute Description id Identifier for a component binding Reference to … Read more

Categories JSF

Jsf messages html tag

JSF h:messages tag is used to render all messages for JSF UI Components in current page. JSF tag: <h:messages style="color:red;" /><h:messages style="color:red;" /> Rendered HTML tag: <ul style="color:red"> <li> UserName: Validation Error: Value is required </li> <li> Password: Validation Error: Value is required </li> </ul><ul style="color:red"> <li> UserName: Validation Error: Value is required </li> <li> … Read more

Categories JSF

Jsf message html tag

JSF h:message tag is used to render a message for a specific JSF UI Component. JSF tag: <h:inputText id="userName" size="15" label="UserName" required="true"> </h:inputText> <h:message for="userName " style="color:red" /><h:inputText id="userName" size="15" label="UserName" required="true"> </h:inputText> <h:message for="userName " style="color:red" /> Rendered HTML tag: <span style="color:red">UserName: Validation Error: Value is required</span><span style="color:red">UserName: Validation Error: Value is required</span> Attributes … Read more

Categories JSF