javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-82

Update docs, examples to reflect JSF form-based login improvements

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.7
    • Fix Version/s: 6.0.7-4
    • Component/s: examples
    • Labels:
      None

      Description

      This affects both the docs and the examples. Since GF 3.1.1 (I believe), the situation with JSF form-based login has improved: you can now use JSF inputText, inputSecret, and commandButton tags instead of plain HTML input tags within the login form.

      You still have to use an HTML form instead of a JSF h:form tag.

      The examples that use j_security check are security/hello1_formauth, the mailconnector example, and dukes-tutoring. I can fix the first two – Ian, would you like to do dukes-tutoring-war/web/resources/components/formLogin.xhtml or should I?

      The only doc that needs correcting is the security-webtier chapter, which reproduces the login.xhtml file (see http://docs.oracle.com/javaee/6/tutorial/doc/bncbx.html#bncca).

        Activity

        Hide
        Kim Haase added a comment -

        Committed login.xhtml fixes for hello1_formauth and mailconnector at SVN revision 913.

        Show
        Kim Haase added a comment - Committed login.xhtml fixes for hello1_formauth and mailconnector at SVN revision 913.
        Hide
        Kim Haase added a comment -

        Put back fix to security-webtier.sgm.

        Show
        Kim Haase added a comment - Put back fix to security-webtier.sgm.
        Hide
        Kim Haase added a comment -

        Sorry, I should not have resolved this issue yet – there is still a change to be made in case-studies/dukes-tutoring/dukes-tutoring-war/web/resources/components/formLogin.xhtml.

        Show
        Kim Haase added a comment - Sorry, I should not have resolved this issue yet – there is still a change to be made in case-studies/dukes-tutoring/dukes-tutoring-war/web/resources/components/formLogin.xhtml.
        Hide
        Kim Haase added a comment -

        It turns out that dukes-tutoring-war/web/resources/components/formLogin.xhtml needs to remain with a mix of HTML and JSF tags, because using all JSF input tags causes authentication to fail if you use a realm other than the file realm and do not use login/logout methods.

        Duke's Forest uses a JDBC realm, but it also calls login/logout methods.

        Show
        Kim Haase added a comment - It turns out that dukes-tutoring-war/web/resources/components/formLogin.xhtml needs to remain with a mix of HTML and JSF tags, because using all JSF input tags causes authentication to fail if you use a realm other than the file realm and do not use login/logout methods. Duke's Forest uses a JDBC realm, but it also calls login/logout methods.

          People

          • Assignee:
            Kim Haase
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: