ICEfaces
  1. ICEfaces
  2. ICE-5005

Add auto-fill support to ICEfaces in IE

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      IE
    • Affects:
      Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      A workaround would be to use a basic JSP or HTML page to get the auto-fill to work, then navigate to an ICEfaces page after the login.

      Description

      When submitting a login form with a commandButton the AutoComplete Password notification does not pop up, allowing a user to save their password in the application. This functionality does work with Firefox.

      The reason that the notification does not show is due to IE not recognizing a JavaScript submit as a login submit. http://blogs.msdn.com/ieinternals/archive/2009/09/11/Troubleshooting-Stored-Login-Problems-in-IE.aspx

        Activity

        Hide
        Ken Fyten added a comment -

        Mark Collette says:

        It seems that just like how there's outputLink, that does a non-Ajax GET,
        we need outputButton, or a flag on commandButton, that would do a
        non-Ajax postback. There's got to be times where you'd want to postback
        against the current view, but want a full page refresh as the response.

        Show
        Ken Fyten added a comment - Mark Collette says: It seems that just like how there's outputLink, that does a non-Ajax GET, we need outputButton, or a flag on commandButton, that would do a non-Ajax postback. There's got to be times where you'd want to postback against the current view, but want a full page refresh as the response.
        Hide
        Ken Fyten added a comment -

        So the prescribed fix for this is to add a new attribute to the ice:commandButton (and commandLink) components to optionally force the submit to be a non-Ajax GET, instead of the usual ajax post-back.

        The attribute could be called "useGetForSubmit" (boolean).

        Show
        Ken Fyten added a comment - So the prescribed fix for this is to add a new attribute to the ice:commandButton (and commandLink) components to optionally force the submit to be a non-Ajax GET, instead of the usual ajax post-back. The attribute could be called "useGetForSubmit" (boolean).
        Hide
        Mark Collette added a comment - - edited

        Arran, is the customer wanting to do a GET or a POST? If they want to do a GET, that's just an application change. But if they want to do a non-Ajax POST, then that may require some component and framework changes. The risk potential is highest in the framework.

        Show
        Mark Collette added a comment - - edited Arran, is the customer wanting to do a GET or a POST? If they want to do a GET, that's just an application change. But if they want to do a non-Ajax POST, then that may require some component and framework changes. The risk potential is highest in the framework.
        Hide
        Arran Mccullough added a comment -

        They would like to do a POST so that the form values are not shown in the URL.

        Show
        Arran Mccullough added a comment - They would like to do a POST so that the form values are not shown in the URL.
        Hide
        Mark Collette added a comment -

        The suggested application work-around is to use just-ice.jar, instead of icefaces.jar. The login page would only use h: components, and f: tags, and potentially ui: Facelets tags, if they're using Facelets. Every other page can not use h: components, but would instead use ice: components, as well as the f: and ui: tags. The login would then trigger a redirect to an ICEfaces page. Transitions to the login page should use redirects as well.

        Show
        Mark Collette added a comment - The suggested application work-around is to use just-ice.jar, instead of icefaces.jar. The login page would only use h: components, and f: tags, and potentially ui: Facelets tags, if they're using Facelets. Every other page can not use h: components, but would instead use ice: components, as well as the f: and ui: tags. The login would then trigger a redirect to an ICEfaces page. Transitions to the login page should use redirects as well.
        Hide
        Mark Collette added a comment -

        In ICEfaces 2, this may be solved by the ace:fileEntry. It uses a regular POST to submit the form, when an h:commandButton is clicked. All you'd have to do is add the ace:fileEntry, and make it invisible, and then the form submit would use this mode. We could even refactor out the form submission code, so that it could be enabled via an attribute on the form, and not require the ace:fileEntry at all.

        Show
        Mark Collette added a comment - In ICEfaces 2, this may be solved by the ace:fileEntry. It uses a regular POST to submit the form, when an h:commandButton is clicked. All you'd have to do is add the ace:fileEntry, and make it invisible, and then the form submit would use this mode. We could even refactor out the form submission code, so that it could be enabled via an attribute on the form, and not require the ace:fileEntry at all.
        Hide
        Ken Fyten added a comment -

        Fixed in ICEfaces 2.0 ace:fileEntry component.

        Show
        Ken Fyten added a comment - Fixed in ICEfaces 2.0 ace:fileEntry component.

          People

          • Assignee:
            Mark Collette
            Reporter:
            Arran Mccullough
          • Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: