protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { if (getUsers() == null) { setUsers(Collections.EMPTY_LIST); } if (getUser() == null) { setUser(new User()); } super.renderComponent(writer, cycle); }
@Override protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { super.renderComponent(writer, cycle); if (TapestryUtils.isRewinding(cycle, this)) { Set<OpenAcdRecipeStep> steps = new LinkedHashSet<OpenAcdRecipeStep>(); for (RecipeStepBean bean : getRecipeSteps().values()) { steps.add(bean.getRecipeStep()); } getObjectWithRecipe().setSteps(steps); } }