initUI(style);
}
protected void initUI(final StyleInfo style) {
IModel<StyleInfo> styleModel = new CompoundPropertyModel(style != null ?
new StyleDetachableModel(style) : getCatalog().getFactory().createStyle());
styleForm = new Form("form", styleModel) {
@Override
protected void onSubmit() {
super.onSubmit();