I have the following code in the manage bean:

  private String sortColumn;
  private boolean sortAscending;

  public String getSortColumn() {
    return sortColumn;
  }

  public void setSortColumn(String sortColumn) {
    this.sortColumn = sortColumn;
  }

  public boolean isSortAscending() {
    return sortAscending;
  }

  public void setSortAscending(boolean sortAscending) {
    this.sortAscending = sortAscending;
  }



The xhtml looks like:
              <t:dataTable id="myListDataTable"
value="#{mainPage.myListsModel}" var="item"
                sortColumn="#{mainPage.sortColumn}"
                sortAscending="#{mainPage.sortAscending}"
preserveDataModel="true"
                preserveSort="true">
                           
                                <h:column>
                               
                                    <f:facet name="header">
                    <t:commandSortHeader columnName="id" arrow="true">
                      <h:outputText value="#{msg.myListId}"/>
                    </t:commandSortHeader>
                  </f:facet>
                                   
                                    <h:commandLink
action="#{mainPage.update}" immediate="true">
                   
                                      <h:outputText value="#{item.id}" />
                   
                                    </h:commandLink>
                                   
                               
                                </h:column>
.... other columns ....

  </t:dataTable>



When I click on the column header (in this case Id, i got a "Error on
page" javascript error).
Any clue?
Regards
    Marius


begin:vcard
fn:Oancea Marius
n:Marius;Oancea
org:Hermann Oberth Faculty of Engineering, Lucian Blaga University of Sibiu;Department of Computer Science
adr:;;4 Emil Cioran Str.;Sibiu;Sibiu;550025;Roumania
email;internet:[EMAIL PROTECTED]
title:Asist. Ing.
tel;home:+40 369 401740
tel;cell:+40 742 207963
url:http://www.csac.ulbsibiu.ro
version:2.1
end:vcard

Reply via email to