Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-538

ClassCastException occurs in HtmlTableRenderer (for <t:datatable>) if rowId does not evaluate to a String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.1.1
    • General
    • None

    Description

      If the rowId property of a <t:datatable> tag does not evaluate to a String, an ugly ClassCastException is thrown by renderRowStart() method of the HtmlTableRendererClass.

      This is caused by :
      String rowId = (String) uiData.getAttributes().get(JSFAttr.ROW_ID);

      Instead of a cast to String, the toString() method should have been used....
      (Then we could put a variable of type Int of Long in the rowId (which sounds natural)...)

      Attachments

        Activity

          People

            bruno_dev Bruno Aranda
            fbascheper Erik-Berndt Scheper
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: