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

Sandbox 'form' code not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.3-SNAPSHOT
    • 1.1.4-SNAPSHOT
    • None
    • None
    • MyFaces 1.1.2, Tomahawk 1.1.3-SNAPSHOT (CVS as of 02/05/2006),Tomahawk-Sandbox 1.1.3-SNAPSHOT (CVS as of 02/05/2006)

    Description

      The Sandbox form component allows the action attribute to be manually specified by overriding the getActionUrl(FacesContext facesContext, UIForm form) method. However the HtmlFormRendererBase class's encodeBegin method calls getActionUrl(facesContext) meaning that, in fact the getActionUrl(FacesContext facesContext, UIForm form) in the subclass isn't called.

      I can't see any way using getActionUrl(facesContext) to alter the forms action attribute so, as a work around I've written my own custom form component which overrides encodeBegin. Is it possible that HtmlFormRendererBase can be altered so it uses getActionUrl(FacesContext facesContext, UIForm form) ?

      Attachments

        1. Sandbox-form.patch
          1 kB
          Pete Muir

        Activity

          People

            mmarinschek Martin Marinschek
            pmuir Pete Muir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: