el Questions

6

I have a JSP page that contains a scriplet where I instantiate an object. I would like to pass that object to the JSP tag without using any cache. For example I would like to accomplish this: &...
Whore asked 16/9, 2008 at 18:46

7

Solved

I would like to concatenate a string within a ternary operator in EL(Expression Language). Suppose there is a variable named value. If it's empty, I want to use some default text. Otherwise,...
Solana asked 3/9, 2010 at 23:35

2

Solved

I have a class which looks something like this: public class ScoreDefinition { protected Boolean primary; public Boolean isPrimary() { return primary; } public void setPrimary(Boolean valu...
Kallick asked 19/12, 2012 at 12:36

2

Solved

I do not really understand how getter and setter work althougth it is a basic concept. I have the following code, how is the attribute id sent to Managed Bean? Is it captured by getter method? My ...
Linsk asked 20/11, 2014 at 16:11

2

Solved

I am trying to get a String parameter "username" from the request with Expression Language. I've done some research, but couldn't find a way to do so, I would like something similar to ${pageContex...
Montgolfier asked 5/11, 2014 at 0:40

2

The Eclipse Facelet HTML Validator reports an error "Cannot apply expression operators to method bindings" for the following line: <ui:fragment rendered="#{!empty managedBean.getSomething('ENUM...
Battement asked 5/1, 2014 at 0:38

2

Solved

I have a List variable called services in my JSP page. I need to add some markup to the page if there's more than 1 element in the list. What I'd like to do is... <c:if test="${services....
Broderick asked 26/8, 2010 at 21:10

2

Solved

I got this error below when I was running my JSF page. javax.el.PropertyNotFoundException: Target Unreachable, 'null' returned null.. Warning: /createStaff.xhtml @33,125 value="#{staffBe...
Lona asked 30/8, 2014 at 16:50

1

Solved

When numeric data are listed in a <p:dataTable> (or <h:dataTable>), is there any way to get the total sum in the summary row in table's footer without calculating it in the backing bean...
Cellobiose asked 8/12, 2013 at 17:0

2

Solved

I need to display incremented single characters to denote footnotes in a table of data in a JSP. In Java I would normally have a char variable and just increment it, or convert an int to a char by ...
Papp asked 7/1, 2011 at 1:48

3

Solved

In the same context i have another query <select multiple="multiple" name="prodSKUs"> <c:forEach items="${productSubCategoryList}" var="productSubCategoryList"> <option val...
Crescentia asked 21/4, 2010 at 10:21

1

Solved

I have JSF 2.2, PrimeFaces 5.0 web application. On my page I need to conditionally set <ui:param/>. The problem is that a standard ternary operator isn't enough, because I have more than 2 ...
Mccary asked 8/8, 2014 at 13:55

1

Solved

I have classes PrimitiveProperty and ComplexProperty and the interface Property. I want to create an implementation of Property which enforces an empty unmodifiable Set of Property instances as ret...
Mousey asked 29/7, 2014 at 16:49

1

Code first @Test public void tryUnicode() { SpelExpressionParser parser = new SpelExpressionParser(); Object rootObject = new Object() { public String getName() { return "wener"; } public...
Dioxide asked 8/7, 2014 at 11:50

3

Solved

I have a hashmap, which is put to the request: HashMap<Integer, String> myMap = ... request.setAttribute("myMap", myMap); In JSP I have a foreach loop <c:forEach items="${list}" var="i...
Gabrielson asked 25/1, 2011 at 10:37

2

Solved

I want to compare two different types in <c:if> tag of JSP. Basically left one is Number always but right one is a String and If that string could be parse to a Number I receive no error but ...
Lakeesha asked 11/7, 2014 at 12:33

1

Solved

This question may be more of the type "conceptual" or "I don't understand JSF". My scenario: I have a JSF Page (index.xhtml) where I use a p:accordionPanel (but I don't think it matters what compo...
Talmud asked 23/6, 2014 at 16:30

2

Solved

Given the following enum. public enum Constants { PAGE_LINKS(10); //Other constants as and when required. private final int value; private Constants(int value){ this.value = value; } pub...
Lordly asked 17/4, 2014 at 3:2

2

Solved

On my current page I am using JSTL to check if data is available for my form. Problem I am facing is "if there is no data I am not seeing the text fields either". I can solve it using and tags but ...
Federate asked 2/6, 2011 at 20:1

6

Solved

It's tedious and ugly to write things like: <input type="button" value="<fmt:message key="submitKey" />" /> And in case you want to nest the message tag in another tag's attribute it...
Alkyd asked 4/7, 2010 at 10:28

2

Solved

Is there a way to have Expression Language (EL) expressions included JavaScript files be evaluated by JSF? I was hoping that Seam might have a way around this, but no luck so far. All I want is to...
Edgerton asked 30/3, 2010 at 18:52

3

Solved

<c:if test="${param.username}" > </c:if> How do I check if param.username exists??
Kehr asked 7/6, 2012 at 13:20

4

Solved

Currenty I have a web project with JSF 1.2 and Facelets running in tomcat 6.0.18.0. I decided to upgrade the servlet container, thus i deployed in tomcat 7 and all seemed ok until we hit one view u...
Amedeo asked 23/10, 2011 at 14:39

3

Solved

I Cant access some (Capitalized) fields in controllers For Example My controller (*.java) package com.co.controller; public class MyController { // fields private String FIELD; private String...
Xenophanes asked 24/2, 2014 at 11:23

3

Solved

I need to change " to \" with JSTL replace function to use the string in input tag like: <input type="hidden" name="text" size="40" value="${text}"> If the ${text} has the ", the HTML will...
Regressive asked 18/8, 2011 at 1:31

© 2022 - 2024 — McMap. All rights reserved.