el Questions

4

Solved

My question is straightforward as you can see. What is the difference between #{...} and ${...} in EL Syntax?
Growing asked 26/8, 2011 at 19:2

1

Solved

I am looking for list of differences between EL 2.1 and 2.2. I know one difference between EL 2.1 and 2.2 is ability to pass method parameters in 2.2. Are there any other differences? Is there a...
Blackface asked 26/8, 2011 at 9:28

2

Solved

In JSP, I want to compare two variables If I do: <c:set var="pagerTotDisp" value="9"/> <c:if test="${pagerTotDisp > 8}"> <span>pagerTotDisp above 8</span> </c:if&gt...
Neils asked 23/8, 2011 at 16:46

1

Solved

I'd like to know if there's a way to bind the returned value of a method into a JSF component. I'll explain myself better. Let's say I have a class like this: public class Document { private List...
Loreleilorelie asked 19/8, 2011 at 10:50

1

Solved

Im new to JSF 2. My question is related to BalusC's answer to this question jsf2 ajax update parts based on request parameters I tried the kickstart code BalusC posted and I encountered an EL parsi...
Continue asked 16/8, 2011 at 14:38

1

Solved

In plain JSP I can get first item by EL ${form.items[0]}, but in a JSP tag the same expression throws the following exception: javax.el.PropertyNotFoundException: Could not find property 0 in cl...
Unheard asked 16/8, 2011 at 12:34

6

Solved

In external style sheets of my current JSF project, there are hard-coded links to external resources like .someId { background-image:url(/context/resources/images/example.jpg); } In the JSF xhtm...
Braggadocio asked 1/5, 2011 at 8:56

1

Solved

I need to solve my problem with generating dynamic ID for some components in JSF. Have a look at this example: <h:outputText id="#{bean.id}" value="#{bean.value}" /> My problem is that I...
Androus asked 30/7, 2011 at 17:31

2

Solved

After a couple of days of debugging I have managed to have a medium-to-large web application redeploy successfully on Tomcat 6.0.32 without any PermGen leaks. I saw the PermGen drop after it filled...
Ogren asked 25/7, 2011 at 14:59

1

Solved

Apparently, you cannot use the normal + operator to append strings in jsp...at least its not working for me. Is there a way to do it? Fragment of my code that is relevant... ${fn:length(exam...
Madea asked 27/7, 2011 at 0:8

1

Solved

I need to display all values of an enum as <option> elements. I have achieved this using scriptlets: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib pre...
Ingeborgingelbert asked 25/7, 2011 at 21:30

1

Solved

Some frameworks (Spring, Tomcat itself) add servlet request attributes that cannot be used within an EL expression by default. An example would be javax.servlet.forward.context_path = /myWebapp ...
Luanaluanda asked 15/7, 2011 at 9:38

2

Solved

Sometimes, I need to render a JavaScript variable using EL in a JSF page. E.g. <script>var foo = '#{bean.foo}';</script> or <h:xxx ... onclick="foo('#{bean.foo}')" /> This ...
Hypotension asked 7/7, 2011 at 21:3

1

Solved

I have a couple of questions about the way I call methods in EL. Maybe someone could explain how it actually works. I did this very simple example: index.xhtml <h:body> <!-- Using a met...
Ringlet asked 6/7, 2011 at 10:27

2

I've been doing this the whole time in my JSP code: <c:out value="${myVar}"/> Today I just realized for the first time that I seem to be able to use this shorter version just as well: ${m...
Bregenz asked 4/7, 2011 at 18:9

1

Solved

I am pretty new in Java EE, i am trying use that .war file http://community.jboss.org/wiki/ThreadDumpJSP , but it seems index.jsp file doesn't show variable, I see only ${thr.name} ${thr.state} ${t...
Sites asked 28/6, 2011 at 10:36

2

Solved

Is it possible to define variable and reuse the variable later in EL expressions ? For example : <h:inputText value="#{myBean.data.something.very.long}" rendered="#{myBean.data.something.ve...
Children asked 22/6, 2011 at 4:22

2

EL expressions are not evaluated in JBoss AS 4.2.2. I have web.xml declared conform the Servlet 2.4 spec. <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmln...
Weeden asked 14/6, 2011 at 12:36

3

Solved

Can we use JSF EL inside a HTML tag? For example, inside a plain HTML <td> element, can we use EL #{bean.color} for the bgcolor attribute? <td bgcolor="#{bean.color}">
Bitty asked 8/6, 2011 at 18:15

1

Solved

I tried to activate EL proposals in a Facelets page, but when I hit Ctrl+Space, it doesn't work. I managed to activate JSF tag proposals thank to other questions, but EL proposals aren't working. ...
Dogmatism asked 8/6, 2011 at 8:42

1

Solved

I was wondering if there was anyway of using JSP in <c:if> statement. E.g. <c:if test="${ param.variable1 == 'Add' <% JSP variable clause %>}"> So I want my JSP variable to ch...
Heartstricken asked 11/5, 2011 at 14:22

1

Solved

Is EL-parsing of children to elements with rendered="false" really supposed to be evaluated? This is causing me alot of trouble with null pointer exceptions and similar. Looking at the following ex...
Odilia asked 11/5, 2011 at 7:49

2

Solved

I'm using the following to get a help document in our app. My problem is that while the <h:graphicImage> evaluates the context path correctly, the h:outputLink evalutates it to nothing. I hav...
Prudenceprudent asked 10/11, 2010 at 20:4

2

Solved

I'm using Java Facelets and jQuery, however the expression $('...') in jQuery conflicts with EL expression, how do I escape the jQuery's one? I'd like to escape a large chunk of Javascript, too...
Gunplay asked 10/4, 2011 at 19:20

1

Solved

I'm having a small problem with a JSP page. I'm using Stripes as framework but this should not be that relevant. Basically I have a bean that returns via a getter a date in the form of a GregorianC...
Quinn asked 8/4, 2011 at 21:3

© 2022 - 2024 — McMap. All rights reserved.