0 Replies Latest reply on Apr 20, 2011 4:05 PM by jgomezp

    Problem with filter in a UIColumn backbean

    jgomezp

      Hi.

       

      I'm trying to do a UIColumn backbean for a datatable, I'm using RF4. The code is some like this:

       

       

      public UIColumn getTestColumn() {

              FacesContext context = FacesContext.getCurrentInstance();

              testColumn = new UIColumn();

              HtmlPanelGrid panelGrid = new HtmlPanelGrid();

              HtmlOutputLabel label = new HtmlOutputLabel();

              label.setValue("PvcodDos");

              panelGrid.getChildren().add(label);

              panelGrid.getChildren().add(getText());

              testColumn.getFacets().put("header",panelGrid);

              return testColumn;

          }

       

       

      public HtmlInputText getText() {

              FacesContext context = FacesContext.getCurrentInstance();

              text = new HtmlInputText();

              AjaxBehavior ajaxBehavior = new AjaxBehavior();

              List renderList = new ArrayList();

              renderList.add("idcucod");

              renderList.add("idpanel");

              ajaxBehavior.setRender(renderList);

              ajaxBehavior.addAjaxBehaviorListener( new AjaxBehaviorListener() {

                  @Override

                  public void processAjaxBehavior(AjaxBehaviorEvent event) throws AbortProcessingException {

       

                  }

              });

              text.setValueExpression("value", context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(),                "#{ventaBean.cucod}", String .class));

              text.addClientBehavior("blur", ajaxBehavior);

              return text;

          }

       

      if I use only de method getText() as a back bean in a h:inputText work well, but when I use getTestColumn() as a back bean in a rich:colunm don't work. I can see that the ajax is execute, but don't render and don't take the new values that I put in the filter. Can somebody help me????