This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Add Option to expand meaning of required="true" for UIInput #1433
Comments
Reported by @edburns |
@edburns said: |
@edburns said: |
@edburns said: |
@edburns said: Passed com.sun.faces.test.javaee8.uiinput.Spec1433IT.testSpec1433 |
Marked as fixed on Wednesday, December 21st 2016, 10:11:42 am |
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1433 |
vsingleton
added a commit
to vsingleton/mojarra
that referenced
this issue
Sep 23, 2017
…meaning of required="true" for UIInput javaee#1433 javaee/javaserverfaces-spec#1433 modified: jsf-api/src/main/java/javax/faces/component/UIInput.java modified: jsf-ri/src/main/java/com/sun/faces/config/WebConfiguration.java modified: jsf-ri/src/main/java/com/sun/faces/context/FacesContextFactoryImpl.java modified: test/javaee6/pom.xml new file: test/javaee6/uiinput-required-true/pom.xml new file: test/javaee6/uiinput-required-true/src/main/java/com/sun/faces/test/javaee6/uiinput/Spec1433Bean.java new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/beans.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/faces-config.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/glassfish-web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/spec1433.xhtml new file: test/javaee6/uiinput-required-true/src/test/java/com/sun/faces/test/javaee6/uiinput/Spec1433IT.java
vsingleton
added a commit
to vsingleton/mojarra
that referenced
this issue
Sep 25, 2017
…meaning of required="true" for UIInput javaee#1433 javaee/javaserverfaces-spec#1433 modified: jsf-api/src/main/java/javax/faces/component/UIInput.java modified: jsf-ri/src/main/java/com/sun/faces/config/WebConfiguration.java modified: jsf-ri/src/main/java/com/sun/faces/context/FacesContextFactoryImpl.java modified: test/javaee6/pom.xml new file: test/javaee6/uiinput-required-true/pom.xml new file: test/javaee6/uiinput-required-true/src/main/java/com/sun/faces/test/javaee6/uiinput/Spec1433Bean.java new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/beans.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/faces-config.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/glassfish-web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/spec1433.xhtml new file: test/javaee6/uiinput-required-true/src/test/java/com/sun/faces/test/javaee6/uiinput/Spec1433IT.java
vsingleton
added a commit
to vsingleton/mojarra
that referenced
this issue
Oct 11, 2017
…meaning of required="true" for UIInput javaee#1433 javaee/javaserverfaces-spec#1433 modified: jsf-api/src/javax/faces/component/UIInput.java modified: jsf-ri/src/com/sun/faces/config/WebConfiguration.java modified: jsf-ri/src/com/sun/faces/context/FacesContextFactoryImpl.java
vsingleton
added a commit
to vsingleton/mojarra
that referenced
this issue
Oct 11, 2017
…meaning of required="true" for UIInput javaee#1433 javaee/javaserverfaces-spec#1433 modified: jsf-api/src/main/java/javax/faces/component/UIInput.java modified: jsf-ri/src/main/java/com/sun/faces/config/WebConfiguration.java modified: jsf-ri/src/main/java/com/sun/faces/context/FacesContextFactoryImpl.java modified: test/javaee6/pom.xml new file: test/javaee6/uiinput-required-true/pom.xml new file: test/javaee6/uiinput-required-true/src/main/java/com/sun/faces/test/javaee6/uiinput/Spec1433Bean.java new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/beans.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/faces-config.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/glassfish-web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/spec1433.xhtml new file: test/javaee6/uiinput-required-true/src/test/java/com/sun/faces/test/javaee6/uiinput/Spec1433IT.java
vsingleton
added a commit
to vsingleton/mojarra
that referenced
this issue
Oct 12, 2017
…meaning of required="true" for UIInput javaee#1433 javaee/javaserverfaces-spec#1433 modified: jsf-api/src/main/java/javax/faces/component/UIInput.java modified: jsf-ri/src/main/java/com/sun/faces/config/WebConfiguration.java modified: jsf-ri/src/main/java/com/sun/faces/context/FacesContextFactoryImpl.java modified: test/javaee6/pom.xml new file: test/javaee6/uiinput-required-true/pom.xml new file: test/javaee6/uiinput-required-true/src/main/java/com/sun/faces/test/javaee6/uiinput/Spec1433Bean.java new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/beans.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/faces-config.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/glassfish-web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/spec1433.xhtml new file: test/javaee6/uiinput-required-true/src/test/java/com/sun/faces/test/javaee6/uiinput/Spec1433IT.java
vsingleton
added a commit
to vsingleton/mojarra
that referenced
this issue
Oct 12, 2017
…meaning of required="true" for UIInput javaee#1433 javaee/javaserverfaces-spec#1433 modified: jsf-api/src/javax/faces/component/UIInput.java modified: jsf-ri/src/com/sun/faces/config/WebConfiguration.java modified: jsf-ri/src/com/sun/faces/context/FacesContextFactoryImpl.java
vsingleton
added a commit
to vsingleton/mojarra
that referenced
this issue
Oct 12, 2017
…meaning of required="true" for UIInput javaee#1433 javaee/javaserverfaces-spec#1433 modified: jsf-api/src/main/java/javax/faces/component/UIInput.java modified: jsf-ri/src/main/java/com/sun/faces/config/WebConfiguration.java modified: jsf-ri/src/main/java/com/sun/faces/context/FacesContextFactoryImpl.java modified: test/javaee6/pom.xml new file: test/javaee6/uiinput-required-true/pom.xml new file: test/javaee6/uiinput-required-true/src/main/java/com/sun/faces/test/javaee6/uiinput/Spec1433Bean.java new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/beans.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/faces-config.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/glassfish-web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/WEB-INF/web.xml new file: test/javaee6/uiinput-required-true/src/main/webapp/spec1433.xhtml new file: test/javaee6/uiinput-required-true/src/test/java/com/sun/faces/test/javaee6/uiinput/Spec1433IT.java
This issue has been fixed in Mojarra by @vsingleton in the following versions:
You can take advantage of the fix by setting the following
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When you say required="true" on a UIInput component, the validation
must always take place, even when there is no entry in the request
corresponding to that component.
Background:
Consider this login page:
If the postback is hacked such that the userName is present as a request
parameter, but the password is not, the password validator would be
bypassed. If the password validator is used as the entry point to
perform authentication, this could cause problems.
Now, it must be said that using a validator on a password field as the
entry point to perform authentication is a particular design choice.
This design choice runs a bit counter to the stated purpose of the
validation system, which is to ensure syntactic and some level of
semantic validity of fields. There are other ways to perform
authentication that do not rely on the validation system for this
purpose.
Nonetheless, we would like to accomodate this use case.
Proposal:
For JSF 2.3, I propose the following.
Modify PDF section 3.5.4 to read:
Modify the JavaDoc for UIInput.validate(). Modify the first bullet
point to read:
With these changes, the javadoc for UIInput.validateValue() can remain
unchanged.
Affected Versions
[2.3]
The text was updated successfully, but these errors were encountered: