2,593 questions
0
votes
1
answer
90
views
Spring Boot 4 embedded Tomcat (11.0.15) unable to reference nested enum classes
Prior to migrating to Spring Boot 4 (Spring Boot 3.5) when running via the embedded Tomcat sever, web applications could reference nested enum classes from within JSPs like so:
Java class with a ...
0
votes
1
answer
82
views
Accessing enum via Jakarta Expression Languauge in Pages
According to the official tutorial I should be able to reference an enum class via Expression Language. The example from the mentioned tutorial is as follows:
public enum Suit {hearts, spades, ...
Advice
0
votes
1
replies
70
views
Is there a way to define a component or fragment of elements and reuse it multiple times, all in the same JSF page?
The title pretty much sums it up.
I'm aware of the possibility of creating your own custom tags with ui:composition, or having multiple ui:insert with the same name, but they all require defining the ...
0
votes
0
answers
41
views
JSF EL with undefined variable handleRenderException
I'm currently migrating a project to a new workstation, and I've noticed that now, when an EL expression contains an error, the file processing stops with a handleRenderException. For instance :
#{'x'...
0
votes
0
answers
64
views
JSF form input submits empty string instead of null despite correct configuration (MyFaces + Apache EL on WebSphere)
I'm facing an issue where a JSF form input field submits an empty string ("") instead of null, even though I believe all relevant configuration is in place. This only happens using WebSphere ...
0
votes
1
answer
61
views
How to pass context to a CDI producer from JSF EL expression?
I have such CDI producer
@Produces
@Named("currency")
@ApplicationScoped
public String getCurrency() {
return CurrencyUtil.getCurrencyCodeByLocale();
}
It returns the currency to ...
1
vote
1
answer
154
views
jakarta.el.ELException: Cannot convert [1.0] of type [class java.lang.String] to [class java.lang.Long]
I am trying to pass a parameter to a <jsp:include>. Then I use that parameter in a if statement, here is the JSPs:
<jsp:include page="/Review Score Display.jsp">
<jsp:...
0
votes
1
answer
72
views
Spring 6 and ExpressionEvaluationUtils [duplicate]
I have inherited an ancient codebase web application using Spring and JSPs. I've been charged with moving from Spring 3 to Spring 6.
Inside a tag is the following code:
str = ExpressionEvaluationUtils....
0
votes
0
answers
35
views
Can I pass an enum as an attribute for a custom JSF tag with EL?
I know that EL has built-in coercion for converting strings to enums, as described here
However, I haven't been able to make this work when the string is not a literal. So something like this works:
&...
2
votes
1
answer
434
views
Managed bean not resolved in EL expression after Jakarta migration
I'm currently trying to upgrade a web application deployed in Apache Tomcat from Java EE 8 to Jakarta 10. The application uses Spring Web Flow, facelets, Mojarra Faces and JBoss Weld as CDI. I'll ...
1
vote
1
answer
2k
views
java.lang.ClassNotFoundException: jakarta.enterprise.inject.spi.el.ELAwareBeanManager
I am currently migrating a project from Java 11 to Java 17, Spring 5 to Spring 6, and from RichFaces to PrimeFaces 14 (Jakarta). After making the necessary changes, I am encountering the following ...
0
votes
1
answer
73
views
NPE in JSTL foreach: Getting Null Pointer Exception when access Child Class variable in JSTL foreach
Getting Null Pointer Exception when access Child Class variable in JSTL foreach, even when data is there for that variable.
I have class structure like this -
public class Question implements ...
-1
votes
1
answer
69
views
Drop Down List in Table Cell Depending on the Name of the Table Column
I have an *.jsp file.
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<title>
Drop Down List in Table Cell Depending on Name of Table Column
...
0
votes
2
answers
224
views
How to evaluate EL expression in Tomcat servlet environment?
How to evaluate EL expression in Tomcat servlet?
Tomcat uses Jasper EL.
https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-jasper-el
https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/...
0
votes
3
answers
115
views
How to put Java code in JSP file with SpringBoot?
I got this error after I put this code on my index.jsp file
The code :
<body>
<h1>Student</h1>
<p>
Status Connection : ${connStatus == "Connected" ? &...