1 Reply Latest reply on Apr 30, 2010 3:24 PM by Nick Belaevski

    Rich:Columns help

    leandro godoy Apprentice

      Good morning everyone,
      need to use rich: columns in a project but am having the following error:

      WARNING: /pages/buscaAvancada.xhtml @187,7 var="coluna" Property 'var' is not on type: org.richfaces.component.html.HtmlColumn

       

       

      what's wrong in my code?
      Thank you.

       

       

      <rich:dataTable value="#{buscaAvancada.model}" var="protoc"
                          width="750">
                          <f:facet name="header">
                              <h:outputText value="Rules"></h:outputText>
                          </f:facet>
                          <rich:columns value="#{buscaAvancada.colunas}" var="coluna">
                              <f:facet name="header">
                                  <h:outputText value="#{coluna.text}" />
                              </f:facet>

       

                              <h:outputText value="#{protoc[0]}" />
                          </rich:columns>
                      </rich:dataTable>

       

       

      private List<HtmlColumn> colunas = new ArrayList<HtmlColumn>();

       

          public void createColumn(String name) {
              HtmlColumn column = new HtmlColumn();       
              column.setLabel(name);
              colunas.add(column);
          }

       

          public List<HtmlColumn> getColunas() {
              return colunas;
          }

       

          public void setColunas(List<HtmlColumn> colunas) {
              this.colunas = colunas;
          }