1 Reply Latest reply on Jan 16, 2009 10:53 AM by ethnarch

    some more info

    ethnarch

      I probably should have posted this code also, this is where I am generating the new object go easy on me if this is all wrong. The summaryFactory is where the code above lives.

      public void encodeEnd(FacesContext context){
       BizRulesSummaryPanelFactory summaryFactory = new BizRulesSummaryPanelFactory();
       HtmlOutputLabel p = new HtmlOutputLabel();
       p.setValue("test");
       BRRule brRule = (BRRule)getAttributes().get("brRule");
      
       try{
       if(brRule!=null){
       UIComponent component = summaryFactory.build(this, brRule, context);
       component.encodeAll(context);
       this.getChildren().add(component);
       }
       this.getChildren().add(p);
       }catch(IOException e){
       logger.error(e);
       }
       }