Skip to content
miguelperezcolom edited this page Sep 22, 2024 · 2 revisions

For editing a row from a crud you must override the method getDetail in the class implementing the Crud interface. E.g you must do something like this:

  @Autowired private LanguageDetail detail;

  @Override
  public LanguageDetail getDetail(LanguageRow row) throws Throwable {
    detail.load(row.getId());
    return detail;
  }

Please notice yu receive the selected row as parameter.

For returning back to the crud when you save the record details you must return the crud from your action. E.g.:

  @MainAction
  public ProgrammingLanguages save() throws Throwable {
    repo.save(this);
    return applicationContext.getBean(ProgrammingLanguages.class);
  }

  @MainAction(type = ActionType.Tertiary, position = ActionPosition.Left)
  public ProgrammingLanguages back() {
    return applicationContext.getBean(ProgrammingLanguages.class);
  }
Clone this wiki locally