*
* @param attributeInfo The new attribute definition for whom to display the correct <code>FormItem</code>.
*/
public void setAttributeInfo(AttributeInfo attributeInfo) {
formItem = AttributeFormFieldRegistry.createFormItem(attributeInfo,
new DefaultAttributeProvider(layer.getServerLayerId()));
//formItem = factory.createEditableFormItem(null, attributeInfo);
if (formItem != null) {
formItem.setDisabled(false);
formItem.setShowTitle(false);
form.setFields(formItem);