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&...
Abercromby asked 28/3, 2011 at 14:34

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....
Garrido asked 19/1, 2009 at 18:52

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?
Shanty asked 22/3, 2011 at 17:23

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>
Tomblin asked 22/3, 2011 at 5:21

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...
Emulsifier asked 16/2, 2011 at 13:23

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!
Oceania asked 10/2, 2011 at 15:30

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...
Roca asked 24/1, 2011 at 22:3

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...
Hirz asked 7/1, 2011 at 17:6

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...
Sandiesandifer asked 17/12, 2010 at 11:22

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,...
el
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...
Teador asked 8/12, 2010 at 12:58

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...
Glauce asked 25/11, 2010 at 15:8

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...
Hipster asked 14/1, 2010 at 3:5

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&gt...
Herwig asked 30/10, 2010 at 17:51

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 ...
Ahner asked 25/10, 2010 at 21:51

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...
Languish asked 14/10, 2010 at 14:1

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...
Villanueva asked 30/9, 2010 at 11:47

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...
Och asked 22/9, 2010 at 18:23

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...
Luau asked 26/8, 2010 at 20:21

© 2022 - 2024 — McMap. All rights reserved.