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

please add onclick and rendered attribute to jscookmenu item

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JS Cook Menu
    • None

    Description

      onclick on menu item - suppose we have (for example) menu: file->logout in our app and we want to ask user if he is sure to logout (JS confirm).
      now i must redirect user to "beforeLogoutPage" with onload attrib that calls JS function. that JS function asks user if he is sure and than it clicks hidden command button - its absurd and pathetic, isnt it?.
      but having onclick attrib witch would "catch" false JS function result and cancel submit would be great.

      rendered atribute would be helpfull also-now im puting menu item into scriptlet to conditionally render it-bruteforce

      Attachments

        Activity

          People

            hazems Hazem Saleh
            slawek Slawomir Sobotka
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: