Questions tagged [el]

EL (Expression Language) enables the dynamic resolution of Java objects and methods in JSP and Facelets pages. EL expressions take the form of ${foo} and #{bar}.

el
Filter by
Sorted by
Tagged with
0 votes
1 answer
178 views

Is it more safe to use getter instead of field name in EL?

I'm using EL in my JSP. For example Case 1: <h5>${fgst.userFlag}</h5> Case 2: <h5>${fgst.getUserFlag()}</h5> I want to know, Do case 2 is more secure and safe way to ...
Dark Matter's user avatar
0 votes
1 answer
324 views

Passing Parameters in action listener event in a custom tag

In continuation of building a custom tag, all the processes have been done and are working accurately except passing parameters to beans method. i have tried but unable to pass the parameters, ...
Nasir Abbas's user avatar
1 vote
2 answers
3k views

What is ADF Mapping data flow expression language?

I am using Azure Data factory Mapping data flow and i just noticed that in Mapping data flow Expression Builder the Expression i build is actually in expression language. My client ask about that ...
Sohel Reza's user avatar
1 vote
0 answers
100 views

How to use different implementation of Expression Language in WildFly?

Is it possible to use a non-standard EL implementation such as SpringEL instead of default implementation?
Akash sah's user avatar
0 votes
0 answers
30 views

Use EL expression only for method call,but ignore the method return value

Is it possible to run a method with EL expression but ignore its return value(not showing it on the page)?In my case,i am calling an add method on a collection that return true/false if the element ...
Barracuda's user avatar
  • 517
0 votes
1 answer
249 views

why can't I access the value of my HashMap using a dynamic key (jsp, jstl, el)?

Sorry, I know this seems similar to other questions but I still can't work out the solution. I have a LinkedHashMap<Long,ExperimentMetadata> metadata set as a session attribute. (...
Kate's user avatar
  • 39
2 votes
1 answer
164 views

Ignore JSF action method's return value

I have a simple JSF form that almost doesn't need any Java code, it's just this: <p:inputText required="true" value="#{newThing1}" /> <p:inputText required="true" value="#{newThing2}" /> &...
Vsevolod Golovanov's user avatar
0 votes
1 answer
576 views

Accessing JSONObject properties in JSP using EL expression

I have a servlet that turns a String into a JSONObject as below: JSONObject myObject = new JSONObject("{'someKey':'someValue'}"); //sending it to the JSP with RequestDispatcher request.setAttribute("...
jAdex's user avatar
  • 542
0 votes
0 answers
65 views

allow "&" character in primefaces keyfilter [duplicate]

I would need a regex that allows the & character in primefaces keyfilter for a p:autocomplete field My current keyFilter looks like this: <p:keyFilter for="xyzComponent" preventPaste="false" ...
JavaMan's user avatar
  • 1,197
0 votes
1 answer
42 views

Thymeleaf + Spring dropdown persisted data in dropdown box selected

I have a large form where I saved parameters in the DB so the next time the user comes in, the previous selections are pre-selected in various dropdowns. Similar to this post : Thymeleaf + Spring ...
mkirouac's user avatar
  • 123
1 vote
1 answer
704 views

How can I make multiple variable value to replace EL expression one by one In Nifi?

I just know a single value can replacing EL expression but idk how the result set replace EL one by one,as picture. Any help is appreciated!
Cong's user avatar
  • 479
0 votes
0 answers
1k views

javax.el.ELException: Failed to parse the expression [${not empty short}]

I have a simple spring web app. The ELs do not get compiled and I get a javax.el.ELException for any and all EL expressions. Here's what I've tried: jstl 1.2 is on the app's classpath. I've tried ...
DebD's user avatar
  • 383
1 vote
1 answer
66 views

Netbeans doesn't autocomplete properties of var of nested <ui:repeat>

Let me say I have a Book Library with a list of Book. A Book has a List of Page. Page has a list of Line. In JSF, i'm trying to display all the lines, now I'm using <h:dataTable> or <ui:...
Sudhik's user avatar
  • 119
0 votes
2 answers
151 views

Accessing ${parameters} from .java file to a .jsp file [duplicate]

How can I access a parameter from a Servlet into .jsp file?? I am creating a simple web application and all of the tutorials, as well as the one I'm following to build the application encourage me to ...
Dominika's user avatar
  • 187
0 votes
1 answer
85 views

EL Brace notation for tags

Some days ago I came across the EL Tag Wiki (Brace notation section) and I was wondering if the following examples would render: #{[somedynamicBean]name} #{[somedynamicBean][dynamicName]} #{someBean[...
WirJun's user avatar
  • 113
0 votes
1 answer
146 views

Is there a way to get JSF bean property inside #{resource} mapping in EL

I am trying to get an image from resource like this: <img src="#{resource['img/bla.svg']}"/> It is working like this... but now I want to generalize this file, so it will come from a java ...
curious's user avatar
  • 261
3 votes
1 answer
8k views

How to pass an Integer constant

I have <f:attribute name="someInt" value="#{1}"/> which is retrieved from component in faces Converter. I found that expression "#{1}" evaluates to Long instead of Integer (was hoping there is ...
matoni's user avatar
  • 2,519
1 vote
1 answer
390 views

How may I access elements in a session attribute ArrayList<objects> in JSP

I'm trying to display returned "titles" from an sql database to the front's JSP file. In my controller I have ArrayList<ItemBean> inventoryArray = inventory.getInventory(10); ...
veral's user avatar
  • 67
0 votes
0 answers
56 views

javax.el.PropertyNotFoundException: Target Unreachable, identifier [MyController] resolved to null with Spring Boot and JSF [duplicate]

I'm facing some issue that doesn’t make sense to me. I'm getting an "identifier resolved to null" when trying to use a selectOneMenu in a jsf page. I do know this happens when the controller is not ...
pedrohreis's user avatar
  • 1,040
-2 votes
1 answer
1k views

JSTL c:forEach tag not working for El expression in JSF

In trying to solve a larger problem using JSF, I noticed that I can't seem use c:forEach to iterate over lists. Research has taught me that there are several different versions now, and I believe I'm ...
Kamurai's user avatar
  • 153
0 votes
1 answer
3k views

How to check in JSF if string empty in 'rendered' attribute [duplicate]

I want to render different primefaces components based on thr string value. How to check if the string is empty in 'rendered' attribute?
AnilKS's user avatar
  • 1
3 votes
1 answer
2k views

Blank input String fields submitted as Empty Strings vs Null - JSF 2.3 MyFaces - Tomcat (TomEE)/9.0.12 (8.0.0-M1)

Empty form input fields bound to bean String type are received as empty strings ("") when the expected value is NULL. This is an old problem that seems to get recreated with each version of Oracle ...
Ted Spradley's user avatar
  • 3,436
0 votes
3 answers
3k views

How to call JSF backing bean method using javascript only when The page is loaded

The problem is that the back Bean Methode get called many times well i already read this Answer by @BalusC JSF is a server side language which runs on the webserver upon a HTTP request and ...
Mohammed ABOUZID's user avatar
0 votes
2 answers
69 views

Is there any way to force Spring to check EL expressions on app start?

I have endpoints in @RestControllers that look similar to this: @RestController @RequestMapping("/rest/x") public class XApiController { // ... @PostMapping(...) @PreAuthorize("@...
Chris Williams's user avatar
0 votes
0 answers
2k views

How to get attribute in JSP from servlet?

I want to get a request attribute in my JSP page after completing an action. In my doPost the set up is like this: String operation = request.getParameter("operation"); if(operation.equals("...
Heeiman's user avatar
  • 249
0 votes
1 answer
77 views

Passing JSF bean values to javascript function [duplicate]

in JSF page I the following code: <h:dataTablevalue="#{rulesCntrl.getTblStati()}" var="stato" rendered="rdrGroupTable( #{rule.actuatorModule.model.type}, #{rule.funzione.chiave})"> where ...
Domenico Formenton's user avatar
-2 votes
2 answers
364 views

Expression language can't access getter methods

I have the following class users.java: package org.XY; public class user { private String mail; private String name; private String org; private String pw; private String admin; ...
AndiLeni's user avatar
  • 500
1 vote
1 answer
1k views

How do I maintain the selected option from select tag in a jsp?

I've read many solutions to the above question, but my specific problem has some complications. I have a select tag whose options are filled 1-20 using a JSTL forEach tag, and I want the option that ...
wmscottsimpsonjr's user avatar
-2 votes
1 answer
2k views

Can we assign "empty" value using c:set?

I need to assign object value as empty. I know we can use <c:set var="xyz" value=""/> But can we assign like below snippet? <c:set var="xyz" value="${empty}"/> Its giving me **Unable to ...
GoldenBird's user avatar
0 votes
1 answer
473 views

Single quote in the URL parameter doesnt get replaced and encoded

In my code i'm trying to get a value that is set using a modelAttribute in a Spring controller and then pass it to Javascript function and set the value as a parameter in URL. modelAttribute from ...
GeekySelene's user avatar
0 votes
0 answers
36 views

EL return by ResponseBody doesnt work on jsp

my page do paging script on $(document).ready() function and it call controller using ajax success function of ajax like this function(data){ $("#target").html(data); } and my ...
user-name's user avatar
3 votes
1 answer
1k views

How do I use Collectors#joining in EL Stream API?

I'm trying to print in a JSP the contents of a list as a single String separated by commas. <div>${myList.stream().map(e->e.getStringValue()).collect(Collectors.joining(", "))}</div> ...
Gustavo's user avatar
  • 1,364
0 votes
2 answers
408 views

How to unhide a div given that a jsp el is not null?

I wanted to know whats the proper way of hiding a div unless some conditions are met. I am trying to add a div that contains a login error and would only appear once there is an error. <div id= "...
Jan Joseph Abutog's user avatar
0 votes
0 answers
20 views

Call a jstl variable inside loop [duplicate]

I'm iterating well a model object in this way: <c:forEach items="${user[0].periods[0].registers}" var="reg" varStatus="rog"> But I want to be able to define over which user iterate, so I add ...
trivili's user avatar
  • 15
0 votes
1 answer
232 views

h:dataTable "var" attribute doesn't work inside facet EL

My problem is that I can't figure out how to make EL code inside <f:facet> work with <h:dataTable> var attribute. JSF code: <h:dataTable value="#{backingBean.someList}" var="...
Тимур Ашихмин's user avatar
0 votes
0 answers
121 views

<c:if test="${d==true}"> can not function properly

d is a boolean type in servlet file. It is supposed to return the checked box and display the ones that are checked but they are showing all the rows. There is a boolean type a,b,c,d in the servlet ...
omer muhit's user avatar
1 vote
0 answers
26 views

Pull array from table back into controller to create or update new array

So I have a table generated using EL that is requested from a Java class <table id="medTable" class="goldTable"> <thead> <tr id="titles"> <td>Resident SSN</td>...
Montez Bush's user avatar
0 votes
1 answer
66 views

Getting error while calling javascript function [duplicate]

My function following values in parameter function viewStudent(schoolName, fullName, class, rollnumber) { } Here are the values stored in student object.: schoolName="St Joseph's School" ...
SurendraKumar Jaiswal's user avatar
3 votes
1 answer
10k views

HV000183: Unable to initialize 'javax.el.ExpressionFactory'

I am using spring boot and my POM looks like this : <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> &...
tom's user avatar
  • 729
0 votes
0 answers
149 views

Is there a "Contains" operator in styleClass attribute?

I'm developing a primefaces application and I want to change the style of a row in my datatable, depending of a column value. I managed to do it when some other column is equal to a specific value or ...
pfSsAlfred's user avatar
1 vote
1 answer
351 views

I need to minus some value from a fixed number in jsf

I need to minus some value (value coming from DB though Databean and VO) here is my code: value="200 - #{pc_costReportDataBean.adjustCostVo.explanationLength}" but the problem is result coming like [...
I.Sharma's user avatar
2 votes
0 answers
67 views

Tomcat7 invalid expression

I am trying to migrate our web application to Embedded Tomcat 7, getting following error for <c:out value="${delegator.getId()}"/> Error "${delegator.getId()}" contains invalid expression(s): ...
user3708576's user avatar
0 votes
1 answer
288 views

Concatenation inside a JSF expression [duplicate]

I'm trying to concatenate a number inside my JSF expression: <h:dataTable class="seminaire" value = "#{seminaireControl.getList()}" var = "seminaire"> <c:forEach begin="1" end="#{...
MA-Moustache's user avatar
0 votes
0 answers
35 views

How to transfer values on the same jsp in Jquery UI Tabs

How to transfer values on the same jsp in Jquery UI Tabs for tabs-2 receive value? I use el receive sqlserver data. After how to transfer value to tabs-2 in same jsp? Thank a lot in advance. ...
Felix's user avatar
  • 1
0 votes
0 answers
408 views

Nested Navbar menu not working in Bootstrap

Ok! I am not using Primefaces/Omnifaces or Bootfaces, the requirement is to do it using Bootstrap only. What I am trying to achieve is creating nested menu dynamically, I have been able to achieve ...
Faizan Mubasher's user avatar
0 votes
1 answer
152 views

How to show hide a div based on the existence of cookie [duplicate]

I want to show a div if only a cookie exists. And this is how I code it inside JSP file. <c:if test="${ ! empty cookie['test_cookie']}"> //some div goes here </c:if> but it ...
Channa's user avatar
  • 3,437
0 votes
1 answer
55 views

Error when servlet passes object back to JSP

I am working through a tutorial from this JSP Murach book. The example I am working through asks the user to enter text in three fields in index.jsp. The fields send their entries to the servlet and ...
Jack J's user avatar
  • 1,594
1 vote
1 answer
2k views

ui:param - passing method arguments

I have two xhtml files, one includes another. I already know how to pass the controller and method to be called to the dialog, what I am not sure is possible, is to actually pass arguments/objects to ...
hocikto's user avatar
  • 950
0 votes
1 answer
58 views

Concatenating in EL param

Using JSP/JSTL, I am iterating over a list of items: <c:forEach var="item" items="${list}" varStatus="loop"> </c:forEach> Within the loop, I would like to retrieve a parameter based on ...
A. K's user avatar
  • 23
1 vote
1 answer
1k views

RELATED: Problem with null versus empty String when updating to JSF 2.3 (Mojarra) on Tomcat 9

The application seemed to start fine but I am now plagued by empty strings being applied to view parameters. javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL parameter was already set to ...
matsa's user avatar
  • 442

1 2 3
4
5
52