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

5.0: Deprecate h:form prependId #1991

Open
wants to merge 1 commit into
base: 5.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/src/main/java/jakarta/faces/component/UIForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ enum PropertyKeys {
* <p>
* The prependId flag.
* </p>
* @deprecated This attribute breaks the {@link UIComponent#findComponent(String)}.
*/
@Deprecated(since = "5.0", forRemoval = true)
prependId,

/**
Expand Down Expand Up @@ -146,7 +148,9 @@ public void setSubmitted(boolean submitted) {
* Is the id prepended.
*
* @return <code>true</code> if it is, <code>false</code> otherwise.
* @deprecated This attribute breaks the {@link UIComponent#findComponent(String)}.
*/
@Deprecated(since = "5.0", forRemoval = true)
public boolean isPrependId() {
return (Boolean) getStateHelper().eval(PropertyKeys.prependId, true);
}
Expand All @@ -155,7 +159,9 @@ public boolean isPrependId() {
* Set whether the id should be prepended.
*
* @param prependId <code>true</code> if it is, <code>false</code> otherwise.
* @deprecated This attribute breaks the {@link UIComponent#findComponent(String)}.
*/
@Deprecated(since = "5.0", forRemoval = true)
public void setPrependId(boolean prependId) {
getStateHelper().put(PropertyKeys.prependId, prependId);
}
Expand Down
6 changes: 6 additions & 0 deletions api/src/main/vdldoc/faces.html.taglib.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3356,9 +3356,15 @@
</attribute>
<attribute>
<description>
<![CDATA[
<strong>
The use of this attribute has been <a href="https://github.com/jakartaee/faces/issues/1972">deprecated</a> in Faces 5.0, without replacement.
</strong>
<br/><br/>
Flag indicating whether or not this form should prepend its id
to its descendent's id during the clientId generation process.
If this flag is not set, the default value is true.
]]>
</description>
<name>prependId</name>
<required>false</required>
Expand Down