el Questions

1

Solved

In my entity: @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(unique=true, nullable=false) private int tId; .... public int getTId() { return this.tId; } public void setTId(i...
Wally asked 5/8, 2013 at 15:30

1

I have a POJO: public class Foo { public String getValue(Integer arg0, BigDecimal arg1) {...} } I put it as model-parameter from Spring MVC into JSP, and try to use it: <c:set var="ans" va...
Revers asked 22/5, 2013 at 10:42

1

Solved

In my servlet: request.setAttribute("list", myList); In my Jsp: <c:forEach var="item" items="${list}"> ${item.name} and ${item.address} </c:forEach> How do I get autocompletion ...
Beersheba asked 3/8, 2013 at 23:9

4

Solved

In current project I need to create a panel that will contain an HTML content created by the user elsewhere in the application. This content can be easily inserted like this: <h:outputText valu...
Osrock asked 10/9, 2010 at 7:4

1

Solved

I don't know whether it is true or not but from what I've read, I believe, JSF EL & xhtml pages are not pre-compiled & just used when needed but instead they are parsed, evaluated, compiled...
Drye asked 27/7, 2013 at 3:47

2

Solved

Is there any proper way to override the way JSF accesses the beans fields from an Expression Language? The idea is to mimic this behavior in order to access a Map<String, ?> values, where the...
Scandinavia asked 26/7, 2013 at 14:27

2

Solved

I am moving a web application from Websphere 6.1 to Websphere 8, and I am encountering the following error in one of my JSP pages: com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: ...
Goshen asked 19/7, 2013 at 10:41

5

Solved

public class LoginAction extends ActionSupport { private String username; private String password; @Override public String execute() throws Exception { ActionContext ctx = ActionContext.getCo...
Normannormand asked 11/7, 2013 at 10:7

1

Solved

In my composite component, I iterate a list<list<javaDetailClass>>. I get all my <h:commandButon> attribute's values through value expression like #{iterator.value}. But the probl...
Adigun asked 17/6, 2013 at 10:10

3

Solved

I've seen other questions similar to this asked but none of them have helped me solve my problem. Basically, I'm trying to pass a variable from a servlet to a JSP. The servlet code. package com.s...
Socle asked 13/6, 2013 at 21:52

2

Solved

I am facing an issue populating a dropdown list from Enum class values. My enum class code is: package abc.xyz.constants; public enum StateConstantsEnum { NEWYORK("NY"), FLORIDA("FL"), CALI...
Underpants asked 29/9, 2011 at 2:23

2

Solved

I'd like to use EL in my application. But I can't find any howto. I usually end up needing some interface for which I don't have an implementation. I have a map of objects, and I want a string exp...
Halle asked 10/6, 2013 at 14:58

2

Solved

If I do: <% pageContext.setAttribute("foo", "bar"); %> <custom:myTag/> it seems like I should be able to do: <%= pageContext.getAttribute("foo") %> inside of myTag.tag ... b...
Keegan asked 17/8, 2011 at 19:11

2

If I have an anonymous inner class object like this (where Foo is an interface): Foo foo = new Foo(){ @Override public String hello(Object dummyArg){ return "hello, world."; } }; and I try t...
Karlotte asked 30/4, 2013 at 21:42

2

I have a JSF2 XHTML page that defines view parameters, this allows one to have bookmarkable URLs. The XHTML page includes the parameters: <f:metadata> <f:viewParam name="searchName" valu...
Chuppah asked 17/11, 2011 at 9:8

9

Solved

Let's say I specify an outputText component like this: <h:outputText value="#{ManagedBean.someProperty}"/> If I print a log message when the getter for someProperty is called and load the ...
Roue asked 18/1, 2010 at 23:43

2

Solved

I am passing a List to <c:forEach>, yet I get the error stating that it doesn't know how to iterate over it. @RequestMapping("/viewall") public String viewAll(Model model) { // productServ...
Greg asked 9/4, 2013 at 14:45

1

Solved

After reading the Q&A How to avoid Java code in JSP files? I stopped coding with scriptlets. So started reading JSTL and got a doubt that I found JSTL is have a relation with EL. But I am not...
Southeastward asked 6/4, 2013 at 7:30

3

Solved

Lets say my current URL is: /app.jsp?filter=10&sort=name. I have a pagination component in JSP which should contain links like: /app.jsp?filter=10&sort=name&page=xxx. How do I crea...
Spanish asked 29/3, 2013 at 18:28

2

Solved

I am using JSF and want to have a component that should be rendered only when the value of a String in the associated managed bean is greater than zero. I am doing this : rendered="#{tabbedToolbar...
Douse asked 29/3, 2013 at 13:12

1

Solved

I'm using JSF 2. I have a method that checks for matching values from a list of values: @ManagedBean(name="webUtilMB") @ApplicationScoped public class WebUtilManagedBean implements Serializable{ ...
Parish asked 22/3, 2013 at 0:14

1

I am still unclear about the use of JSF immediate evaluation vs deferred evaluation, mainly because the online examples almost never seem to use the former method. I have seen a fair amount of JSF...
Ezequiel asked 20/3, 2013 at 14:35

5

Solved

what is the best way to bind a datacolumn to a property that might or might not exist in the datasource? This happens for example when you have a class hierarchy where some children might be of a ...
Guardrail asked 11/4, 2011 at 9:19

2

Solved

I am having a little trouble figuring out how to do and's on EL expressions in Facelets. So basically I have: <h:outputText id="Prompt" value="Fobar" rendered="#{beanA.prompt == true &&a...
Michikomichon asked 18/12, 2011 at 15:59

1

Solved

I use JSF 2.0 (Apache myFaces) on WebSphere Application Server 8. I have a bean which contains a list of charts (data for jquery HighCharts). For each chart I need some JSF components + one Highcha...
Ruelas asked 27/2, 2013 at 14:5

© 2022 - 2024 — McMap. All rights reserved.