You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2021/10/08 13:04:59 UTC
[myfaces-tobago] 02/03: feat: Jakarta EE 9 support
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 93c007e8ef87e5b8572d5555747fabc0e88d07ab
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Fri Oct 8 13:19:48 2021 +0200
feat: Jakarta EE 9 support
* basic migration
* tested with Glassfish 6.2.2
* Jetty/TomEE/Tomcat profiles are NOT running, yet!
issue: TOBAGO-2094
---
.../tobago/internal/taglib/declaration/HasValidator.java | 11 ++++++-----
.../apache/myfaces/tobago/internal/util/SelectItemUtils.java | 6 +++---
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasValidator.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasValidator.java
index cb9e61e..56109dc 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasValidator.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasValidator.java
@@ -25,14 +25,15 @@ import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
public interface HasValidator {
/**
- * A method binding EL expression,
- * accepting FacesContext, UIComponent,
- * and Object parameters, and returning void, that validates
- * the component's local value.
+ * A method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void,
+ * that validates the component's local value.
*/
@TagAttribute
@UIComponentTagAttribute(type = {},
expression = DynamicExpression.METHOD_EXPRESSION,
- methodSignature = { "jakarta.faces.context.FacesContext", "jakarta.faces.component.UIComponent", "java.lang.Object" })
+ methodSignature = {
+ "jakarta.faces.context.FacesContext",
+ "jakarta.faces.component.UIComponent",
+ "java.lang.Object"})
void setValidator(String validator);
}
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SelectItemUtils.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SelectItemUtils.java
index d601b2c..47d6957 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SelectItemUtils.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/util/SelectItemUtils.java
@@ -72,9 +72,9 @@ public class SelectItemUtils {
}
/**
- * Creates a list of SelectItems to use for rendering.
- * You should only use this method (which returns a list), when you need a list.
- * Otherwise please use {@link #getItemIterator(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)}
+ * Creates a list of SelectItems to use for rendering. You should only use this method (which returns a list), when
+ * you need a list. Otherwise, please use {@link #getItemIterator(jakarta.faces.context.FacesContext,
+ * jakarta.faces.component.UIComponent)}
*/
public static List<SelectItem> getItemList(final FacesContext facesContext, final UIComponent selector) {
if (selector.getChildCount() == 0) {