Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-784

user specified onclick contents not rendered in panel tabs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.3
    • 1.1.7
    • Tabbed Pane
    • None

    Description

      If onclick attribute is specified in panelTab tag, the contents of the attribute is not rendered.
      Offending code is in HtmlTabbedPaneRenderer.writeHeaderCell

      ...
      writer.writeAttribute("onclick", "return myFaces_showPanelTab(" + tabIndex + ",'" + getTabIndexSubmitFieldIDAndName(tabbedPane, facesContext) + "'," + '\'' + getHeaderCellID(tab, facesContext) + "','" + tab.getClientId(facesContext) + "'," + getHeaderCellsIDsVar(tabbedPane, facesContext) + ',' + getTabsIDsVar(tabbedPane, facesContext) + ',' + (activeUserClass != null ? '\'' + activeUserClass + '\'' : "null") + ',' + (inactiveUserClass != null ? '\'' + inactiveUserClass + '\'' : "null") + ',' + (activeSubStyleUserClass != null ? '\'' + activeSubStyleUserClass + '\'' : "null") + ',' + (inactiveSubStyleUserClass != null ? '\'' + inactiveSubStyleUserClass + '\'' : "null") + ");", null);
      ...

      Attachments

        Activity

          People

            cagatay_civici Cagatay Civici
            roku Rolf Kulemann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: