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...
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>...
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...
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...
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...
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...
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...
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...
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...
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
...
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...
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...
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...
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...
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.
...
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...
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...
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...
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.