el Questions

1

Solved

I'm trying to do something that seems like it should be relatively straightforward and running into a bit of a wall. Let's say I've got a list of products which I expose as a request attribute un...
Unpaidfor asked 13/9, 2012 at 7:1

1

Solved

I have seen people using square bracket in JSF, and I am not sure if I understand its use correctly. So maybe an JSF guru can help me understand it 1.So let say I have this #{bean.x} and x is a...
Amylopectin asked 9/9, 2012 at 22:11

2

Solved

I have this HashMap: Map<Integer, String> odometerMap = new LinkedHashMap<Integer, String>(); odometerMap.put(0, getLocaleForKey("drop-down.any")); odometerMap.put(1, "< 1000"); ...
Maryammaryann asked 3/9, 2012 at 12:23

2

Solved

I am trying to dynamically generate content using JSP. I have a <c:forEach> loop within which I dynamically create bean accessors. The skeleton resembles this: <c:forEach var="type...
Spaceship asked 15/9, 2010 at 21:10

1

Solved

I have an interesting problem with Spring 3.1.0. JSP pages are not having their EL evaluated. I've debugged the view resolution process and JstlView is being used and the Jstl libraries are detecte...
Observant asked 6/8, 2012 at 22:4

1

Solved

I am using Expression Language (EL) in JSP. <c:set var="noOfPages" value="${numItems/itemsPerPage}" /> <fmt:formatNumber var="noOfPagesRounded" value="${noOfPages}" maxFractionDigits="0"...
Menken asked 6/8, 2012 at 13:6

2

Solved

In JSTL, <fmt:formatNumber value="${1.6}" type="number" pattern="#"/> returns 2 and the following <fmt:formatNumber value="${1.4}" type="number" pattern="#"/> returns1 and I need...
Jovia asked 31/7, 2012 at 7:53

1

Solved

I have list which contains some objects in it. The objects have an hours field. In the <c:foreach> I am iterating the list and fetching the objects. Now I want to sum up the hours field of ...
Pardue asked 31/7, 2012 at 7:19

2

Solved

I need to represent the following for loop (in Java context) in JSTL/EL. for (int i = 6; i <= 15; i++) { System.out.print(i+"\t"); } It would display the following output. 6 7 8 9 10 11 12 ...
Talishatalisman asked 28/7, 2012 at 6:54

1

Solved

I'm working with JSF 2.0, JBoss 7.1.1 Final and I have following problem with selectOneMenu. I want to be able to set a field in a managed bean to true/false/null. Thus, I have created following se...
Colewort asked 25/7, 2012 at 18:44

1

Solved

My JSP page contains: <script> var bt_wd40_appurl = "${pageContext.request.contextPath}"; </script> view/source shows "" for the value. No errors I've found so far. my web.xml spec...
Lungan asked 20/7, 2012 at 13:58

2

Solved

I have a list of String and i set it into a session: session.setAttribute("datas", result.getBody().getDatas()); Then i want to check in a JSP, if in the datas attribute doesn't contained the w...
Hale asked 3/7, 2012 at 17:17

2

How can I invoke a method in JSP using EL (Expression Language)? For example: <c:forEach var="item" items="${listStr}" begin="0" end="2" step="2"> <p>${item.indexOf("h")}</p> &...
Hussar asked 30/6, 2012 at 11:14

1

Solved

I am getting an error in JSP and I cannot figure out what is causing it. I have included all of the appropriate libraries and I've made sure to follow bean convention on uppercase/lowercase. Here's...
Jala asked 19/6, 2012 at 21:55

1

Solved

This might be a noob question, however in a lot of tutorials and examples I saw these annotations used as if they did the same thing. However I ran into some limitations using the @Named one...
Riddell asked 12/6, 2012 at 9:48

1

Eclipse seems to be completely oblivious of EL expressions inside CSS. When I format my stylesheets, this happens: .tooltip:hover span.info { ... border-color: #{theme.get('borderTooltip')}; bo...
Nevarez asked 8/6, 2012 at 9:20

2

Solved

In the file aPage.xhtml, I have the following lines: <ui:include rendered="#{not empty param.target}" src="#{param.target}.html" /> <ui:include rendered="#{empty param.target}" src="About...
Loosen asked 30/5, 2012 at 7:18

1

Solved

The conditional operator works in many attributes like "rendered" "value" and others. But it does not work in action? Or am I doing it wrong? <h:commandLink action="#{true ? bean.methodTrue() ...
Endoskeleton asked 6/5, 2012 at 19:53

4

How to call a Java method with arguments which is defined in Java class, from JSP using JSTL/EL. The method is returning arrays. Any return value can be used.
Leaper asked 19/8, 2011 at 12:6

1

Solved

The documentation says parameters are supported but the example uses hl and # which are unknown to me where I use c: and $ instead of this which is from the docs: <h:inputText value="#{userNumb...
Adolpho asked 24/5, 2012 at 17:9

2

Solved

Possible Duplicate: Evaluate empty or null JSTL c tags I'm refactoring scriptlets to JSTL and EL and I would like to know how to write the following in JSTL / EL: if(sokandeList != n...
Caw asked 24/5, 2012 at 13:3

2

Solved

I would like to know the detailed difference between the Expression Languages (EL). There is JSP EL, JSF EL and Unified EL. I would like to know the history behind the EL and what the lates...
Rancor asked 27/1, 2011 at 4:29

2

Solved

How do I call an object's method from EL? Give the object: public class TestObj { public testObj() { }; public String test() { return "foo"; } public String someOtherMethod(String param) { re...
Pattern asked 21/5, 2012 at 0:23

1

When I use f:selectItems to display items in a Map I cannot display the value of the Map item, only the key. f:selectItems does not use the itemLabel at all. When I use a List instead things work. ...
Medial asked 18/5, 2012 at 15:20

2

Solved

How to check equalIgnoreCase in EL? String a = "hello"; a.equalsIgnoreCase("hello"); Now on JSP page.. <h:panelGroup rendered="#{patientNotePrescriptionVar.prescriptionSchedule == patientNot...
Oilcan asked 18/5, 2012 at 13:21

© 2022 - 2024 — McMap. All rights reserved.