el Questions
1
Solved
I've found the instanceof operator in JSF EL, but it throws an exception when used. It's obviously reserved but not implemented? When will it (probably) be available, if not already in a newer vers...
Afebrile asked 5/4, 2011 at 9:47
1
Solved
I'm stuck on simple JSF2 question:
XHTML:
<xvf:simpleOut identifier="12345"/>
Composite component is supposed to pass "12345" to backing bean and do some output:
<composite:interface&...
4
Solved
I'm looping through a list of items, and I'd like to get a request parameter based on the item's index.
I could easily do it with a scriptlet as done below, but I'd like to use expression language....
1
Solved
I want to read data from a HashMap using EL in a JSP page, but without the use of JSTL <c:forEach> or a for loop. How can I do this?
3
Solved
If I have a
ArrayList<Person> persons
How do I access it in EL?
<c:foreach items="${what goes here??}" var="person">${person.title}</c:foreach>
1
Solved
This question is similar to:
jsf: integer property binded to a inputtext in UI is set to zero on submit
but I am not completely satisfied with the solution. The contexts is the same: I have a web...
Gendarmerie asked 7/3, 2011 at 20:42
2
Solved
I'd wish to programmatically add a custom VariableResolver when JSF or anything like that is not used, so that before seeking for beans in scopes as mentioned in 1, the EL would first try to resolv...
1
Solved
code is like this:
<c:forEach items="${itemList}" var="item">
//do stuff based on the class type of item
</c:forEach>
Is it possible to do that? Thanks!
1
Solved
Without using scriptlets, what's the correct way for doing date arithmetic in JSP?
Here are examples what I'm trying to do:
Get current year (YYYY)
Subtract current year by one to get previous y...
Buddha asked 9/2, 2011 at 19:32
1
Solved
I'm using h:outputText tags to display readonly data. Ex:
<h:outputText value="Phone Number:" />
<h:outputText value="#{userHandler.user.phoneNumber}" />
When "phoneNumber" is an emp...
1
Solved
I have an if statement that I am trying to perform with JSTL.
My code is below (the variables values is an ArrayList that contains a user defined object and type is a private property of tha...
Lenoralenore asked 16/1, 2011 at 17:7
1
Solved
I am doing JSF geolocation service where I need to pass latitude and longitude to bean for processing. HTML5 allows getting location with JavaScript, for example like is done in http://code.google....
Lamarre asked 14/1, 2011 at 22:37
1
Solved
<ui:repeat value="#{coreGridBean.heroBeanList}" var="hero"
offset="0" step="1" size="#{hero.size}" varStatus="status">
<tr class="#{status.even ? 'evenColumn' : 'oddColumn'}">
<td...
1
Solved
Consider the following piece of JSP:
<param name="FlashVars" value="${flashVars}" />
The value of ${flashVars} contains ampersands and needs to be encoded before it is output. Instead, JSP...
Pyelonephritis asked 24/12, 2010 at 13:3
2
Solved
Given the following example:
<h:inputText id="foo" size="#{configBean.size}" />
I would like to get the id of the calling component foo in the getter method so that I can return the size f...
1
Solved
I'm having some problems on manipulating data in EL / JSP.
I have two variables in my Action (I'm using Struts2 btw) they are:
private List<Appointment> appointment;
private Map<Integer,...
Broadbill asked 12/12, 2010 at 22:37
2
I am getting
org.apache.jasper.JasperException: /WEB-INF/AllClientBatchDetails.jsp(54,103) equal symbol expected
And here is the jsp
<%@ page contentType="text/html;charset=UTF-8" languag...
1
Solved
I'm trying to get the base url (for example: https://stackoverflow.com/) without using javascript. But there seem to be a lot of ways to split it off from https://stackoverflow.com/questions/ask so...
2
Solved
Say that I don't leverage OGNL to create my Struts2 web application and just purely uses typical el provided by Sun. What would be the downside of it?
As far as I know, OGNL is a kind of expressio...
1
Solved
Hello I have an User with some Roles
User.class
public class User {
private Long id;
private String firstName;
private String lastName;
private Set<Role> roles = new HashSet<Role>...
2
Solved
Recently I upgraded my development tomcat from 7.0.0 to 7.0.4. I had things like:
<c:set var="static" value=".." />
<c:set var="class" value=".." />
Both worked on 7.0.0 but stopped ...
1
Solved
On our web-application, we did some refactoring on the Java beans, and due to this refactoring, some actions / getters are not available anymore. For example, in the following example:
public clas...
1
Solved
How would I make the following code work?
<c:if test="${null != searchResults}" >
<c:forEach items="${searchResults}" var="result" varStatus="status">
I've tried many differe...
3
Solved
I was following a tutorial today that had me scratching my head for an hour. Consider:
public class MyClass {
public int getTotal() {
amount = 100;
return amount;
}
}
and an excerpt from a J...
1
Solved
I know this isn't hard, but I'm not having any luck.
I want to make fooList from a Servlet available in a JSP. So in the Servlet I have:
request.setAttribute("list", fooList);
RequestDispatcher d...
© 2022 - 2024 — McMap. All rights reserved.