jsp TextField binding

Posted by user72185 on Stack Overflow See other posts from Stack Overflow or by user72185
Published on 2010-05-20T09:22:04Z Indexed on 2010/05/20 9:30 UTC
Read the original article Hit count: 296

Filed under:
|
|

I have a panel in my Page1.jsp:

<webuijsf:panelLayout binding="#{Page1.dynamicFieldsPanel}"
    id="dynamicFieldsPanel" -rave-layout: grid"/>

Then I have this in Page1.java:

private PanelLayout dynamicFieldsPanel = new PanelLayout();

public void setDynamicFieldsPanel(PanelLayout pl)
{
    this.dynamicFieldsPanel = pl;
}

public PanelLayout getDynamicFieldsPanel()
{
    TextField textField = new TextField();
    this.dynamicFieldsPanel.getChildren().add(textField);

    return dynamicFieldsPanel;
}

How do I bind my dynamic TextField to something so I can retrieve the value entered by the user?

© Stack Overflow or respective owner

Related posts about jsp

Related posts about java