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

JSCookMenu problems in a Trinidad project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.5
    • JS Cook Menu
    • None
    • Any project configured to use both Trinidad and MyFaces Tomahawk

    Description

      Using JSCookMenu in a MyFaces+Trinidad project leads to some problems.

      1) HtmlJSCookMenuRenderer tries to find the parent form searching for an UIForm component, but the Trinidad CoreForm doesn't extend UIForm. The enclosing so isn't recognized, and another dummyform gets rendered in the page.

      2) HtmlJSCookMenuRenderer also call HtmlFormRendererBase.addHiddenCommandParameter to add an hidden fields, needed by JSCookMenu, in the form. That field however doesn't get rendered and a javascript error happens when trying to use the menu. This is probably caused by the Trinidad renderer that override the MyFaces one, and happens using either <h:form> or <af:form>.

      Problem 1) also makes it impossible to use the <af:form>'s targetFrame feature to load the action result in another target/frame.

      Attachments

        1. JSCookMenu-with-Trinidad-refactored.patch
          13 kB
          Cosma Colanicchia
        2. JSCookMenu-with-Trinidad.patch
          4 kB
          Cosma Colanicchia

        Activity

          People

            matzew Matthias Wessendorf
            cosma Cosma Colanicchia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: