The name Property

To work with legacy Web applications, you could specify the name property as you did for HTML pages. For example,

<window xmlns:h="http://www.w3.org/1999/xhtml">
<h:form method="post" action="/my-old-servlet">
<grid>
<rows>
<row>When <datebox name="when"/> Name <textbox name="name"/> Department
<combobox name="department">
<comboitem label="RD"/>
<comboitem label="Manufactory"/>
<comboitem label="Logistics"/>
</combobox>
</row>
<row>
<h:input type="submit" value="Submit"/>
</row>
</rows>
</grid>
</h:form>
</window>

Once users press the submit button, a request is posted to the my-old-servlet servlet with the query string as follows.

/my-old-servlet?when=2006%2F03%2F01&name=Bill+Gates&department=Manufactory

Thus, as long as you maintain the proper associations between name and value, your servlet could work as usual without any modification.