Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1849

javascript on button should be removed or configurable by user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.3-SNAPSHOT
    • 1.2.3
    • None
    • None

    Description

      Actually, myfaces 1.2 renders a javascript on button like this:

      onclick="if(typeof window.clearFormHiddenParams_form3!='undefined')

      {clearFormHiddenParams_form3('form3');}

      but jsf ri does nothing. Myfaces renders a hidden fields with name="form:_idcl" that allow submit through javascript. The default behavior should not have this.

      The suggestion is create a param

      org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON

      by default false but when set to true it renders the javascript.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: