el Questions

4

Solved

I have a resource bundle with entries like these: entry1=value1 entry2=value2 entry3=value3 In my JSF page I'm trying to use these keys dynamically. The ID of the entry is coming from a managed ...
Psychopathy asked 31/1, 2011 at 14:30

2

I have the following issue: when I put some data in model, I want on the view part check some checkboxes, that are equal to the field names in my object. here is html code: <div class="my...
Triplicate asked 27/10, 2012 at 11:8

3

Solved

In a JSP file I wanto to replace newlines (\n) with <br />. I tried ${fn:replace(someString, '\n', '<br />')} But I get an error '\n' ecnountered, was expeting one of... Which I gue...
Conformal asked 3/12, 2012 at 16:3

3

Solved

Currently I use: <% final String message = (String) request.getAttribute ("Error_Message"); %> and then <%= message %> However I wonder if the same can be done with EL or JSTL ins...
Harass asked 6/2, 2011 at 10:18

1

Solved

Using JSF & EL, I'm basically trying to check if a variable is null (or not). Here is a code snippet: <p:dataGrid value="#{bean.graphiques}" var="graphique" rows="1" columns="3"&g...
Leschen asked 13/6, 2017 at 7:24

2

I am trying to setup my own JSF tag libary. So I created a composite component with an backing interfaces as a blueprint to build a backing bean for this component. public interface CompLogin { ...
Qualify asked 13/5, 2016 at 9:0

3

Solved

I want create an array in JSF EL. How can I do that? Is it even possible? To illustrate what I am trying: <rich:pickList addAllText="" addText="" removeAllText="" removeText=""> <f:sele...
Cumbersome asked 22/5, 2012 at 14:55

3

Solved

I'm facing a strange problem here with EL. I just wanted to use String.join() in EL but it is not working. #{String.join(',', myList)} This is not doing anything in JSF except prevent my page t...
Fortunate asked 25/1, 2017 at 10:25

8

Solved

How can I validate if a String is null or empty using the c tags of JSTL? I have a variable named var1 and I can display it, but I want to add a comparator to validate it. <c:out value="${v...
Uncap asked 11/5, 2010 at 14:40

7

Solved

How would I get the length of an ArrayList using a JSF EL expression? #{MyBean.somelist.length} does not work.
Splanchnology asked 15/10, 2008 at 19:52

3

I have a Spring MVC project that uses Apache Tiles. I have implemented so that titles can be read from a message source like this: <tiles-definitions> <definition name="some-definition"...
Gloat asked 7/4, 2015 at 12:15

2

I am woriking on A maven Project. the project run very well. But when I see the marquers I found this problem. EL Validator cannot run on project a because Validation Builder precedes JBoss Knowl...
Brogue asked 22/1, 2015 at 17:41

3

Solved

I'm working on a JSP tag. Here is the old line that starts looping through items in a model: <c:forEach var="toc" items="${requestScope[formKey].model.sharingTocs}"> But the code has been ...
Emelun asked 20/12, 2013 at 14:2

3

Solved

I've the following code snippet in my Facelet: <h:commandLink id="cmdbtn"> <f:ajax event="click" execute="@form" listener="#{screenShotBean.takeScreenshot}" /> </h:commandLink>...
Lemieux asked 4/2, 2013 at 17:56

2

Solved

I'm writing JSP / JSTL, and I'm trying to iterate over several items in a database. I currently have three columns in the database, ${image1}, ${image2} and ${image3}. I'm trying to use the follo...
Skiff asked 23/3, 2013 at 22:4

2

I have a superclass Person: public class Person { public abstract Type getType(); } I have 2 subclasses of it: public class JuridicalPerson extends Person { public Type getType() { return Ty...
Paralipomena asked 31/8, 2014 at 16:48

12

Solved

How do you reference an constants with EL on a JSP page? I have an interface Addresses with a constant named URL. I know I can reference it with a scriplet by going: <%=Addresses.URL%>, but ...
Rosebay asked 17/9, 2010 at 4:10

5

Solved

I'm programming in JSF2 and NetBeans creates many pages with #{} that contains an expression. However sometimes on the web I found ${} for the same thing! Are there any differences? What are they?...
Conventioneer asked 9/1, 2012 at 16:2

2

Solved

I added an external CSS stylesheet to my project and placed in the WEB-CONTENTS folder of my project in Eclipse. When I deployed it on the Tomcat, the stylesheet was not applied. When I debugged it...
Lepage asked 27/1, 2013 at 15:42

3

Solved

I have a JSP where I'm trying to use JSTL tags to display data from an in-memory instance of a class. The data consists of a series of Strings where each String is the address of an RSS feed....
Alcaraz asked 7/11, 2010 at 16:36

4

Solved

Here's a simple value bean annotated with Spring's new (as of 3.0) convenience @DateTimeFormat annotation (which as I understand replaces the pre-3.0 need for custom PropertyEditors as per this SO ...
Lands asked 17/12, 2014 at 0:42

2

Solved

I am trying to migrate my existing code to using Enum and I run into some problems due to my lack experience with Enum. First of all here is my structures. In my EJB, alongs with Entity, I have a e...
Postmeridian asked 12/10, 2010 at 16:24

3

Solved

When trying to get an EL condition working I found that enum values are completely ignored. This seems to me contrary to the spec. <c:out value='${com.foobar.data.BookingStatus.FAILED}' /...
Audriaaudrie asked 5/1, 2011 at 16:42

2

Solved

i was wondering if there's contains method for collections/array in EL 2.2 or i will have to make a custom one ? REQUIREMENT: i have a string array, and i want to find if it contains a specific s...
Mitchellmitchem asked 20/12, 2011 at 14:19

5

Solved

I have a template and in its Definition I use several forms and buttons. The problem is the definition (define) xhtml file does not know the component hierarchy. And for example I want to update ...
Ubangishari asked 13/1, 2012 at 7:11

© 2022 - 2024 — McMap. All rights reserved.