7172737475767778798081
// populate node ResourceNode resource = (ResourceNode) getContainer().getSession().getItem( node.getPath()); model.setObject(new BrixNodeModel(resource)); model.apply(); getContainer().save(); // done getSession().info(getString("saved"));
5657585960616263646566
form.add(new SubmitLink("save") { @Override public void onSubmit() { BrixNode node = nodeModel.getObject(); model.apply(); node.save(); getSession().info(getString("propertiesSaved")); goBack(); } });
3738394041424344454647
form.add(new TextResourceEditor("editor", model)); form.add(new SubmitLink("save") { @Override public void onSubmit() { model.apply(); getNode().save(); // done getSession().info(getString("saved")); done(); }
107108109110111112113114115116117
form.add(new Button("save") { @Override public void onSubmit() { JcrNode node = nodeModel.getObject(); node.checkout(); adapter.apply(); node.save(); node.checkin(); getSession().info(getString("status.saved")); goBack();
3435363738394041424344
Form<Void> form = new Form<Void>("form"); form.add(new SubmitLink("submit") { @Override public void onSubmit() { buffer.apply(); folderNodeModel.getObject().save(); getSession().info(PropertiesTab.this.getString("propertiesSaved")); } }); add(form);