el Questions

1

Solved

I'm trying to write a custom JSPX tag that reads the value of a given bean property from each object in a given list, with the name of that property passed to the tag as a JSP attribute. The tag wo...
Heger asked 4/8, 2010 at 1:55

1

Solved

My JSF2 application is fully internationalized, using a ResourceBundle. Now i have a lot of Javascript-code, which does some alerts and stuff. There i would like to access my ResourceBundle. I co...
Xenophobe asked 2/8, 2010 at 18:10

2

Solved

So we all know that #{someBean.value} will try and get the content of some property on someBean called value. It will look for getValue(). However, what if this property is boolean? It will look fo...
Alephnull asked 13/7, 2010 at 12:2

1

Solved

We are using a h:inputText in a JSF page which is bound to an Integer property (and thus can accept null). When there is no value written in the h:inputText, the form is submitting a 0 instead of n...
Thrombin asked 25/6, 2010 at 8:17

3

Solved

I am new to JSF and managed beans. I have a managed bean with some private property with public setter and Getter methods. Now when I add the managed bean's properties to JSF forms, should I add th...
Trubow asked 24/6, 2010 at 18:9

1

Solved

I have some Facelets files like below. WebContent |-- index.xhtml |-- register.xhtml |-- templates | |--userForm.xhtml | `--banner.xhtml : Both pages are using templates from /templates d...
Norwich asked 24/6, 2010 at 18:41

1

What if I have URL like: servlet.jsp?myparam=myvalue These 2 ELs should return output "myvalue" , but I actually don't understand why?: ${param.values["myparam"]["0"]} ${param.values.myparam[0]} ...
Shaman asked 15/6, 2010 at 14:49

3

Solved

I've got this, which is working: <c:choose> <c:when test="${sometest}"> Hello, world! </c:when> <c:otherwise> <fmt:message key="${page.title}" /> </c:otherwi...
Epicotyl asked 31/5, 2010 at 18:1

4

Solved

I just had a little surprise in a Webapp, where I'm using EL in .jsp pages. I added a boolean property and scratched my head because I had named a boolean "isDynamic", so I could write this: <...
Blankenship asked 31/5, 2010 at 17:27

2

Solved

Currently I have something like this in my JSP <c:url value="/teams/${contact.id}/${contact.name}" /> The important part of my URL is the ID, I just put the name on it for SEO purposes (ju...
Swann asked 2/5, 2010 at 9:8

1

Solved

I am working with some legacy code, and at some point there is a key in the session that is something like session.setAttribute("com.org.something.Object",someObject); Now trying to access this...
Affianced asked 29/3, 2010 at 21:34

2

Solved

In Spring MVC when placing an object in the view model like so: public String getUser( Model model ) { //...fetch user... model.addAttribute( "user", user ); return "viewName"; } and accessin...
Mycenae asked 17/3, 2010 at 11:40

1

Solved

Is there a way, via configuration, upgrade or a plugin to get content assist in JSP EL expressions? e.g. ${CTRL+SPACE ... or ${pageContext.CTRL+SPACE ... etc...
Reorientation asked 8/2, 2010 at 9:20

3

I have an enum class USState. I would like to iterate through the states in a JSP. Is it possible to access a list of USStates without first setting such a list as an attribute? It seems that some...
Janeyjangle asked 10/2, 2010 at 22:9

2

Solved

I have a JSF 2.0 application on Tomcat with many <h:inputText> fields to input data in my database. Some fields are not required. <h:inputText value="#{registerBean.user.phoneNumber}" id=...
Linda asked 4/2, 2010 at 21:23

2

Solved

I'm building my own JSP Tag Library which need to support some features that Application developers can use like this: <w:user-label id="usrlb" value="${session.user}"/> <w:textbox id="tb...
Scarecrow asked 30/12, 2009 at 11:6

2

Solved

I am creating a drop down list of all languages. The default language selection for the list will be determined by information added by the user: <select> <c:forEach items="${languages}"...
Plenish asked 14/12, 2009 at 13:10

2

Solved

I've read some time ago about the difference in 'Core JSF' but now I can't find that place. Nevertheless I don't remember that there was a word about cases when we should use ${expr} in jsf...
Educable asked 4/12, 2009 at 15:35

1

Solved

My system: Ubuntu 9.10. Eclipse 3.5.1 with Java EE 1.2.1 (manual install - NOT from synaptic). Web Developer Tools 3.1.1 I've recently adopted someone else's code (a Dynamic Web Project), and run ...
Amundson asked 24/11, 2009 at 15:20

4

Solved

I have this JSP code snippet: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <c:choose> <c:when test="${var1.properties[\"Item Type\"] eq \"Animal's Part\"}"> ...
Scrod asked 15/6, 2009 at 2:30

2

Solved

I'm running Tomcat 6.0.18 on Linux. I have a JSP that uses a bean like this: <jsp:useBean id="helper" type="com.example.SomeType" scope="request"/> The page references an attribute of h...
Misrepresent asked 26/5, 2009 at 18:53

3

Solved

For simplicity, i have the following file named test.jsp: <script language="javascript"> alert("a$b".replace(/\$/g,"k")); </script> I put this file in my local server, then display ...
Overpass asked 23/1, 2009 at 10:41

© 2022 - 2024 — McMap. All rights reserved.