Package com.jk.web.faces.components
Class JSFComponentFactory
java.lang.Object
com.jk.web.faces.components.JSFComponentFactory
This class is a factory used to create JSF (Jakarta Server Faces) components.
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic UIActionsThis method creates an actions region component.static org.primefaces.behavior.ajax.AjaxBehaviorThis method creates an Ajax behavior.static org.primefaces.component.column.ColumnThis method creates a column component.static jakarta.faces.component.UICommandcreateCommandButton(String value) This method creates a command button component with the given value.static jakarta.faces.component.UIComponentcreateComponent(String componentType) This method creates a generic UI component based on the given component type.static jakarta.faces.component.UIDataThis method creates a data table component.static UIFieldsThis method creates a fields region component.static jakarta.faces.component.UIComponentTHis method creates a form component.static UIFormLayoutThis method creates a form layout component.static jakarta.faces.component.UIInputcreateInput(String label, Class type) This method creates an input component with a label and data type.static jakarta.faces.component.UIInputcreateInputText(String label) This method creates an input text component with a label.static jakarta.faces.component.html.HtmlOutputLabelcreateLabel(String labelId) This method creates a label component with the provided identifier (ID).static jakarta.el.ValueExpressionThis method creates a label value expression component with the provided key.static jakarta.faces.component.UIOutputThis method creates an output text component with null value.static jakarta.faces.component.UIOutputcreateOutputText(String value) This method creates an output text component with the provided value.static jakarta.faces.component.UIOutputcreateOutputText(String el, boolean b) This method is yet to be implemented (TBI).static jakarta.faces.component.UIInputThis method creates a text area component.static jakarta.faces.component.UIComponentThis method creates a tree component. 
- 
Constructor Details
- 
JSFComponentFactory
public JSFComponentFactory() 
 - 
 - 
Method Details
- 
createActionsRegion
This method creates an actions region component.- Returns:
 - the created actions region component.
 
 - 
createAjax
public static org.primefaces.behavior.ajax.AjaxBehavior createAjax()This method creates an Ajax behavior.- Returns:
 - the created Ajax behavior.
 
 - 
createColumn
public static org.primefaces.component.column.Column createColumn()This method creates a column component.- Returns:
 - the created column component.
 
 - 
createCommandButton
This method creates a command button component with the given value.- Parameters:
 value- Specifies the value to set for the command button.- Returns:
 - the created command button component.
 
 - 
createComponent
This method creates a generic UI component based on the given component type.- Parameters:
 componentType- Specifies the type of the component to create.- Returns:
 - the created UI component.
 
 - 
createDataTable
public static jakarta.faces.component.UIData createDataTable()This method creates a data table component.- Returns:
 - the created data table component.
 
 - 
createFieldsRegion
This method creates a fields region component.- Returns:
 - the created fields region component.
 
 - 
createForm
public static jakarta.faces.component.UIComponent createForm()THis method creates a form component.- Returns:
 - the created form component.
 
 - 
createFormLayout
This method creates a form layout component.- Returns:
 - the created form layout component.
 
 - 
createInput
This method creates an input component with a label and data type.- Parameters:
 label- Specifies the label for the input component.type- Specifies the data type of the input.- Returns:
 - the created input component.
 
 - 
createInputText
This method creates an input text component with a label.- Parameters:
 label- Specifies the label for the input text component.- Returns:
 - the created input text component.
 
 - 
createLabel
This method creates a label component with the provided identifier (ID).- Parameters:
 labelId- Specifies the label identifier (ID).- Returns:
 - the created label component.
 
 - 
createLabelValueExpression
This method creates a label value expression component with the provided key.- Parameters:
 key- Specifies the key associated with this component.- Returns:
 - the created label value expression component.
 
 - 
createOutputText
public static jakarta.faces.component.UIOutput createOutputText()This method creates an output text component with null value.- Returns:
 - the created output text component.
 
 - 
createOutputText
This method creates an output text component with the provided value.- Parameters:
 value- Specifies the value of the output text component.- Returns:
 - the created output text component.
 
 - 
createOutputText
This method is yet to be implemented (TBI).- Parameters:
 el- Specifies the method parameters that are yet to be implemented (TBI).b- Specifies the method parameters that are yet to be implemented (TBI).- Returns:
 - null.
 
 - 
createTextArea
public static jakarta.faces.component.UIInput createTextArea()This method creates a text area component.- Returns:
 - the created text area component.
 
 - 
createTreeComponent
public static jakarta.faces.component.UIComponent createTreeComponent()This method creates a tree component.- Returns:
 - the created tree component.
 
 
 -