el Questions
4
Solved
I am trying to check if a cookie exists on a JSP page using the Expression Language.
I have a cookie called persist which is set to either empty string or "checked".
If would like to check if the...
1
Solved
With JSF, Managed Beans, & EL 2.2 I know generally that an expression of the form:
#{bean.value}
Will map to a corresponding set of functions in a managed bean class like so:
@ManagedBean
c...
2
Solved
I want to do something like this:
<c:if test="${somestring.charAt(0)=='1'}">
tadaaaam
</c:if>
when somestring is "11011" but it doesn't work. I can print it with
${somestring...
Lamarre asked 10/5, 2012 at 22:8
1
I'm using @ResourceDependency annotation in a JSF component to add Javascript and CSS files into my JSF page.
In my Javascript file, I need to reference another resource file (a .swf file, which l...
Jacquelynnjacquenetta asked 28/8, 2011 at 9:45
1
Solved
I have an object like this
public class Employee {
public String getName() {
return "tommaso";
}
public String getName(String name) {
return "tommaso "+name;
}
}
In my action (I use Str...
1
Solved
I'm using JSF 2.0. I have a managed bean which I can access through my xhtml page. Inside the bean I declared an inner class. I can access ArrayList<String> of managed bean but not ArrayList&...
Prudie asked 3/4, 2012 at 16:26
1
Solved
From web pages like this one,
http://www.jsftutorials.net/components/step5.html
I understand that the binding attribute in JSF tag/view component is to bind the view component to a Java instance...
Coastland asked 29/3, 2012 at 16:29
1
Solved
I'm working in a jsp. bean.getConfigurationActionButtonBar() returns a list of button objects. WebUtils.getActionButtonBar(List buttonList) takes that list and returns generated html. Very simple.
...
1
Solved
I recently migrated my JSF app(using primefaces) from glassfish 3.1 to tomcat7 server. Previously passing the enum value as string to managed bean methods through actionlistener attribute worked(wi...
Shorter asked 2/3, 2012 at 13:30
1
Solved
I want to loop over a number of "guests" and insert an id dynanimally
<ui:repeat value="#{guestList}" var="guest">
<p:inputText id="firstname_#{guest.uniqueID}" value="" label="Firstname...
Centiare asked 19/3, 2012 at 12:39
1
Solved
I need to create a callback for <h:commandButton> while as a parameter I need to pass an argument that is string-concatenated with an external parameter id:
I tried nesting an EL expression ...
Fiore asked 13/3, 2012 at 8:57
1
Solved
I want to display java arraylist into JSF page. I generated arraylist from database. Now I want to display the list into JSF page by calling the list elements index by index number. Is it possible ...
1
Solved
I have a complicated set of nested functions that essentially sanitize data.
Let's pretend I want to emit a firstname-lastname combination that's been sanitized, but the names are presented as two...
1
Solved
I am looking for a little bit of guidance today with the issue I am running into.
What I am trying to accomplish is build a page on the fly with validation and all. The end result is to allow the...
Anthropomorphic asked 8/2, 2012 at 14:6
3
Solved
How do you check if a session exists for the request in EL? I'm trying something like:
<c:if test="${pageContext.request.session != null}"> ... </c:if>
but it seems like it's never n...
1
Solved
I'm creating a dynamically generated menu. In the database, I have stored the directory (String) of each submenu and stored in an ArrayList in the bean. This is a part of the code:
<c:forEach i...
1
Solved
I'm trying to get this old JSP project running in Tomcat 7, JRE7 but getting this error in most of the pages in the project. Can any one please shed some light whats happening?
The code looks like...
2
Solved
What is the simplest way to replace quote characters with \" sequence inside string values?
3
Solved
First of all, please bare my ignorance. This may be a very basic question. But I am not to find it out.
I see some thing like this in the code. I dont understand what a JSTL is. Whatever I search,...
1
Solved
Is it possible to get specific element in list or array using EL in a Java EE page (Facelets or JSP), or do I have to create a custom EL method?
Gospel asked 26/12, 2011 at 16:5
1
Solved
I'm wondering which of those two code snippets is more efficient.
First one
In userSearch.xhtml :
<rich:dataTable
var="user"
value="#{userSearchResultList}"
rendered="#{not empty userSea...
1
Solved
I am using a boolean property in a JSF managed bean and depending on its value I have to render a command link on the facelet. But the problem is that facelets is showing this error:
Property 'i...
2
Solved
I would like to display a text in jsf screen by passing an attribute to a method implemented in backing bean. I have to pass a dynamic value as an attribute. I tried the below but it seems to be an...
1
Solved
I have a problem using JSF to display some data in Facelets. I have list of hashmaps:
List<Map<String, String>> persons = new LinkedList<Map<String,String>>();
public Lis...
1
Solved
I'm giving a User object to JSP and want to compare an attribute of the user with a given String. What I'm doing right now is the following:
<input type="radio" name="lang" value="ger" &l...
© 2022 - 2024 — McMap. All rights reserved.