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

t:panelTab onclick attribute doesn't seem to work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.6
    • 1.1.7
    • Tabbed Pane
    • None
    • Windows XP, Websphere 6.1, Facelets 1.1.14, MyFaces Core 1.2.3

    Description

      I am trying to call a custom javascript function when the user clicks on tab2.

      This is what i got:

      <script type="text/javascript">
      <!--
      function hello()

      { alert("Hello"); }

      -->
      </script>

      <t:panelTabbedPane serverSideTabSwitch="false">
      <t:panelTab id="tab1" label="Tab1">
      Tab 1 data
      </t:panelTab>

      <t:panelTab id="tab2" label="Tab2" onclick="hello()">
      Tab 2
      </t:panelTab>
      </t:panelTabbedPane>

      When I look at the generated HTML I don't see the call to hello().

      Attachments

        1. tomahawk-1309.patch
          0.8 kB
          Paul Rivera

        Activity

          People

            lu4242 Leonardo Uribe
            mahendan Mahendan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified