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

panelNavigation2 seems incompatible with Trinidad

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.1.6
    • 1.1.6
    • Panel Navigation2
    • None

    Description

      When I enable the trinidad renderer in the face-config.xml the menu doesn't work anymore. I get a javascript error
      Error: clear_menu_5Fform is not defined
      Following is an example of a panelNavigation that works fine, as long as I don't use Trinidad:

      <h:form id="menu_form" styleClass="naked">
      <t:panelNavigation2 id="pn2" styleClass="nav1" layout="list" itemClass="mypage" activeItemClass="selected" openItemClass="selected">
      <t:commandNavigation2 value="index" action="index">
      <t:outputText value="Home" />
      </t:commandNavigation2>
      </t:panelNavigation2>
      </h:form>

      When I use Trinidad I get Javascript errors when clicking on the navigation links and nothing else happens, i.e. no navigation or changing pages.
      When I look in the sourcecode of the generated page the javascript section is indeed missing. When I disable the trinidad renderer again (removing the entry in the application section in the faces-config.xml) the javascript appears in the source of the page again. Somehow the trinidad renderer eliminates the javascript inline sections from the output.

      Tested with Tomahawk 1.1.6 and Trinidad 1.0.3

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stoeve Jan Stövesand
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: