Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JETUT-112 Add example for the Custom form authentication mechanism #79

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arjantijms
Copy link
Contributor

No description provided.

Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
@arjantijms arjantijms self-assigned this Aug 16, 2023
@arjantijms
Copy link
Contributor Author

@BalusC

</p>

<form faces:id="form">
<p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be <div> elements or a semantic elements. (For example, the login could be a <header>: https://github.com/virtua-tech/jakartaee-tutorial/blob/main/STYLE_GUIDE.adoc#use-of-etc-eg-and-ie.

should be reserved for actual paragraphs in text.

>
<h:head/>

<h:messages />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should go inside body.

-->

<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
Copy link
Contributor

@BalusC BalusC May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is optional since Faces 4 (at least, it won't anymore emit a Facelets compiler warning when HTML5 doctype is used), you can remove it for brevity.


<h:messages />

<body>
Copy link
Contributor

@BalusC BalusC May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be h:body for consistency (and to avoid future confusion when developer decides to extend based on the very example snippet).

Login to continue
</p>

<form faces:id="form">
Copy link
Contributor

@BalusC BalusC May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will work but I'm wondering why this example explicitly uses passthrough elements instead of plain components? Heritage of a snippet specifically geared for j_security_check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this example explicitly uses passthrough elements instead

I think there's no specific reason. Throw of a coin to decide between passthrough and regular I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants