el Questions
5
Solved
The following does not always behave as you would expect:
<c:if test="${someBigDecimal == 0}">
If someBigDecimal has a value of 0, but has a scale other than 0, the == operation returns fa...
Pirozzo asked 6/1, 2012 at 22:54
4
Solved
I want to use the count from the JSTL forEach loop, but my code doesnt seem to work.
<c:forEach items="${loopableObject}" var="theObject" varStatus="theCount">
<div id="divIDNo${theCount...
4
Solved
I am getting the following exception in my application.
com.sun.faces.config.ConfigurationException:
It appears the JSP version of the
container is older than 2.1 and unable
to locate the EL ...
4
Solved
Is there any way to check declaratively whether an enum has a specified value. For example:
<h:graphicImage name="error.png" library="images"
rendered="#{viewController.current.status == Stat...
1
The following snippet works fine in Tomcat 6,
<c:set var="abc" value="$12,345" />
<c:choose>
<c:when test="${abc ne 0}">
<c:out value="PASS"></c:out>
</c:when&g...
4
Solved
I'm using JSF 2.0 with primefaces over JBoss 7. In some part of the code, I have the following:
public void setItemValue(int value) {
this.value = value;
}
and in the xhtml:
<p:commandButto...
2
Solved
I want to achieve this using dynamic parameters for value expressions:
<h:dataTable value="#{someBean.someValue}" var="field">
<h:column>#{anotherBean[field]}</h:column>
</h:...
5
<context-param>
<param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
<param-value>true</param-value>
</context-param>
Does no...
2
Solved
<table>
<c:if test="${output.list == nul}">
<tr><td><input type="text" /><select></select><input type="text" />
</td>
</tr>
</c:if>...
2
Solved
How can I access the JSP context inside a custom EL function.
1
I am reading the following tutorial:
The expression used in the h:dataTable/@value normally specifies a property
name for which a getter was defined, which means that in the controller
BookC...
Celik asked 10/12, 2015 at 7:31
9
Solved
I have a JSP page running on Tomcat 5.5. I have the following code:
<c:forEach var="i" begin="1" end="10" step="1">
<c:out value="${i}" />
<br />
</c:forEach>
Th...
5
I am new to JSP and using Expression language. I am using Eclipse Galileo with version 2.5 and Tomcat 6 server . I just want to ask that my simple Expression Language is not printing the vale...
6
I have migrated from Java EE 6 to Java EE 7, and now with JSF 2.2 the context param INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL seems not work. In JSF 2.1 I set it to "true" and it works perfec...
1
Solved
I have just migrated to Tomcat 8. I used to work with system property org.apache.el.parser.COERCE_TO_ZERO=false so empty strings, numbers, booleans etc. are treated as null.
In Tomcat 8, EL 3.0, i...
Angilaangina asked 25/10, 2015 at 19:37
3
Solved
We use the tomcat urlrewrite plugin to rewrite outbound URLs as well as inbound ones. To do this, you need to use the JSTL tag.
This works great for clean urls and i18n, however it yields ugly cod...
4
Solved
The following JSF code contains two separate <c:if></c:if>. Let's look at it.
<?xml version='1.0' encoding='UTF-8' ?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http...
1
Solved
I have a Home. Each Home has a list of Rooms. Each Room has zero or more Persons.
I would like to count total persons of each home. But I can't add a new variable to record person count in any bac...
2
Solved
In a Struts 2 project, consider below key in message resources:
export.filename.accountsummary=customer ${export}
The action has export filed with setter and getter.
If you call the getText("ex...
Doerrer asked 5/9, 2015 at 9:12
2
Solved
I have several WebSockets endpoints such as,
wss://localhost:8181/ContextPath/Push
All of such endpoint URLs are hard-coded in separate, external JavaScript files (.js). These JavaScript files a...
Maybe asked 2/9, 2015 at 12:14
3
Solved
Note: I'm using mojarra 2.1.20 and rich faces 4.2.2.
I've analyzed a heapdump and I've noticed that EL expressions reside in LRUMap in the session. Does anyone know why and what to do to avoid it?...
Kast asked 11/10, 2013 at 4:15
1
Solved
I've the below piece of code in a JSF page:
<p:inputText ...
styleClass="labelledInput-input #{component.valid?'':'validation-failed'}"/>
Eclipse produces an error on component.valid part...
Zelmazelten asked 11/8, 2015 at 11:53
1
Solved
I have such an p:selectManyCheckbox and it works ok:
<p:selectManyCheckbox id="groups" value="#{myBean.selectedGroups}">
<f:selectItems value="#{myBean.myGroups}" var="group" itemValue="...
1
i am using javax.faces-2.0.10.jar on websphere 8.5 and i am using jboss-el-2.0.0.GA.jar and in my web.xml i have the following configuration for el:
<context-param>
<param-name>com.s...
Associationism asked 3/3, 2014 at 7:28
3
Solved
I was wondering what is the best way to implement an ellipsis abbreviation with JSP / Expression Language.
For now, I've been using fn:substring, which is ok, but I would like to have the three do...
© 2022 - 2024 — McMap. All rights reserved.