protected void setForm ( final T bean , final AjaxRequestTarget target ) { LOG . debug ( "Setting form to {}" , bean ) ; // update the model with the new bean formModel . setObject ( bean ) ; // add the form to the target target . add ( form ) ; // update the button updateSaveButton . setModel ( Model . of ( "Update" ) ) ; target . add ( updateSaveButton ) ; }
Sets the form to the bean passed in updating the form via AJAX .