Ejemplo n.º 1
0
  protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) {
    if (getUsers() == null) {
      setUsers(Collections.EMPTY_LIST);
    }
    if (getUser() == null) {
      setUser(new User());
    }

    super.renderComponent(writer, cycle);
  }
Ejemplo n.º 2
0
 @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);
   }
 }