Skip to Main Content

Trouble in getting values from Dynamic component in JSF?

User_SH8A9Jun 6 2021 — edited Jun 7 2021

Hello Everyone,
I have just created the inputtext from backingbeans using following code
-> BackingBean :
private HtmlPanelGrid grid;
public void setDynamicPanelGrid(UIComponent component) {
this.grid = (HtmlPanelGrid) component;
}
void dosome()
Application app = FacesContext.getCurrentInstance().getApplication();
HtmlInputText inputtext = (HtmlInputText) app.createComponent(HtmlInputText.COMPONENT_TYPE);
grid.getChildren().add(inputtext );

}
==========
Jspx : <h:panelGrid binding="#{someBackingBean.dynamicPanelGrid}">

How can I create the inputtext successfully but i dont know how to get the entered values from this dynamic textbox
Kindly guide me.
Thanks in Advance
Ref: https://ludokingforpc.com/

Comments
Post Details
Added on Jun 6 2021
0 comments
18 views