el Questions

4

Solved

Is it possible to have a TLD map to the following function: public static <T> T[] toArray(T... stuff) { return stuff; } So that I can do: <c:forEach items="${my:toArray('a', 'b', 'c')...
Possing asked 17/2, 2011 at 19:26

3

Solved

Is this correct? <c:if test="${theBooleanVariable == false}">It's false!</c:if> Or could I do this? <c:if test="${!theBooleanVariable}">It's false!</c:if>
Roodepoortmaraisburg asked 12/10, 2010 at 14:27

2

Whenever I am working in a JSP file and I type ${ to start an el (Expression Language) tag, Eclipse will automatically add } (with a space before the closing brace) after the cursor so that I get $...
Whom asked 6/6, 2015 at 16:20

1

Solved

I'm using Glassfish 3.1.2.2 and JSF Mojarra 2.1.6. I have the following Facelets page: <h:form> <h:commandLink value="link"> <f:actionListener binding="#{backingBean.someMethod(1...
Episode asked 10/6, 2015 at 0:5

3

Solved

Is it possible to test for enum equality in JSF? E.g. where stuff is an enum Stuff: <h:outputText value="text" rendered="#{mrBean.stuff == mrsBean.stuff}"/>
Isodynamic asked 26/3, 2010 at 15:29

1

I'm writing lot of JSP pages for different views. Those JSP retrieve request scope attributes which have very long names to prevent overlapping. An example is: request.getAttribute("domain1.subdom...
Profitsharing asked 3/6, 2013 at 14:5

2

Solved

According to https://code.google.com/p/primefaces/issues/detail?id=4720, The ComponentUtils.resolveWidgetVar(String expression, UIComponent component) function is available in Primefaces since 2013...
Wholism asked 13/3, 2015 at 15:11

1

Solved

This is code: <p:ajax event="eventResized" process="@this calendar" listener="#{bean.eventResized}" oncomplete="resizeComplete()"/> eventReized invoked by EventResizeBehavior which extend...
Nela asked 12/5, 2015 at 11:58

1

Solved

can I pass expressions to JSF 2 passthrough-attributes? the following code is not working. expression #{country.isoCode} is not evaluated. <h:selectOneMenu value="#{bean.selectedCountry}" style...

2

Solved

In a backing bean I have defined a Map<Integer,String> property. When trying to access the map from EL inside an xhtml-file, I get nothing back. <h:outputLabel value="#{bean.myMap[0]}"&gt...
Broncobuster asked 17/6, 2013 at 8:4

6

Solved

I'm working on a web application using Java and its frameworks(Spring 3.1.1). And I'm trying to avoid using scriptlets as much as possible, however I can't find a way other than this to define an a...
Silverplate asked 22/1, 2013 at 8:58

2

Solved

I am using JSF 2. I am trying to resolve a message bundle reference dynamically the a managed bean property. The value contains the bundle name as well as the key. This is required as the value may...
Jobi asked 24/2, 2012 at 15:32

3

Solved

I am creating a simple guest book in JSP in order to learn this technology. Currently I have two classes: guestbook/GuestBook.class and guestbook/Entry.class (I haven't finished the app yet, so I h...
Micahmicawber asked 27/11, 2011 at 12:5

10

Solved

Can anyone recommend a framework for templating/formatting messages in a standalone application along the lines of the JSP EL (Expression Language)? I would expect to be able to instantiate a an o...
Detective asked 18/9, 2008 at 11:15

1

Solved

While working on a Spring-JSF integration, I'm seeing this entry in faces-config.xml. <application> <el-resolver> org.springframework.web.jsf.el.SpringBeanFacesELResolver </el-re...
Lodhia asked 11/2, 2015 at 19:0

2

Solved

How can I in JSF 2.0 invoke direct methods or methods with arguments / variables / parameters in EL? For example, getting the list size in EL: <h:outputText value="#{bean.list.size()}" /> ...
Contraception asked 19/7, 2010 at 19:18

3

Solved

<c:if> is not working for comparing characters.The code is inside a table.Here is the code <c:if test="${record.type eq 'U' }">Planned</c:if> When I use this code inside ...
Scape asked 26/8, 2014 at 4:45

1

Solved

I know very well that Any scoped managed bean method annotated with @PostConstruct will be called after the managed bean is instantiated, but before the bean is placed in scope. Consider <h:...
Jennee asked 18/12, 2014 at 6:38

1

Solved

Is there any way to get the call hierarchy of a JSF bean method including Expression Language calls in eclipse? I got a simple bean: @ManagedBean @ViewScoped public class MyBean { public String...
Gosney asked 12/1, 2015 at 12:18

3

Solved

== and eq give the same result using EL to do my string comparison tests: <c:if test="${person.sokande_i == 'endast_usa'}">Endast USA</c:if> <c:if test="${person.sokande_i == 'all...
Meganmeganthropus asked 29/5, 2012 at 9:24

2

How do I format and display a Date object in a JSP, most preferably using JSTL and EL but any other solution is welcome? I can not change the bean object. I have the following class: import java...
Asquith asked 29/5, 2013 at 20:15

2

Solved

I have one line of html in a form on a JSP page like this: <c:forEach var="entry" items="${set}"> <input type="checkbox" name="thing" value="${entry.key} ${entry.value}"> </c...
Ecstatic asked 13/11, 2012 at 20:6

2

Solved

I have numeric values in a p:dataTable. When the value is less than 0, a "-" symbol should be inserted instead of a value. I tried using c:if, which doesn't work. I was reading and people suggest...
Punctuation asked 19/12, 2014 at 22:30

2

Solved

Is there a way to replace null with a default value in JSF EL expressions, sort of like the Oracle NVL function? I know I can do something like #{obj == null ? 'None' : obj.property} But was ho...
Nectareous asked 11/9, 2012 at 17:36

5

Solved

I have a Map keyed by Integer. Using EL, how can I access a value by its key? Map<Integer, String> map = new HashMap<Integer, String>(); map.put(1, "One"); map.put(2, "Two"); map.put(3...
Sidon asked 29/5, 2009 at 4:58

© 2022 - 2024 — McMap. All rights reserved.