el Questions
2
Solved
I have following two simple POJOs:
class Person {
String name
Address address;
//and of course the getter/setter for the attributes
}
class Address {
String city;
//also getter/setter for th...
Chalybeate asked 23/5, 2012 at 14:39
1
Solved
I am learning JSP and Servlet and I found something odd - If I use the following code:
request.setAttribute("m", m);
RequestDispatcher rd = request.getRequestDispatcher("welcome.jsp");
rd.forward(...
1
Solved
I would like to disable a button in primefaces in the case of any one of the conditions is met.
For example:
I have the commandButton:
<p:commandButton value="Check" actionListener="#{myBean....
Combes asked 4/1, 2014 at 22:57
3
Solved
If #{myBean.birthdate} is of java.util.Calendar or java.util.Date type, can I possibly format this inside the EL itself using an existing function perhaps, with the output of like the one produced ...
Sacci asked 19/1, 2011 at 12:11
2
Solved
The Expression Language version 3.0 is currently being designed. It adds various cool features like mapping and filtering collections by a lambda expression. Spring EL has a comparable feature whic...
Kiyokokiyoshi asked 26/9, 2012 at 6:52
2
Solved
I am trying to retrieve the client id of a h:panelGroup that is within a p:dataList.
I tried 2 approaches:
1.Using component.clientId e.g:
<h:panelGroup id="listItem">
<h:outputText va...
Superfluous asked 12/12, 2013 at 9:36
5
When I use an EL expression in Eclipse, I naturally begin by typing ${. Eclipse, wanting to help out a little, places a close brace } afterward. However, there's a space between them. So if I want ...
Doura asked 20/11, 2013 at 20:55
1
Solved
I am stuck with the following code. On a JSP page, I want to write different things depending on the terminal the browser is accepted on. the terminal value is set properly in the controller but wh...
1
Solved
I have a <p:dataTable> where each row has an inputText like this:
<p:dataTable ... rowIndexVar="row">
<p:column>
<p:inputText value="#{myBean.items[row + 1]}" />
</p:...
Cognizance asked 12/11, 2013 at 2:9
2
Solved
The following code causes an error:
<c:set var="test" value="test1"/>
<%
String resp = "abc";
resp = resp + ${test}; //in this line I got an Exception.
out.println(resp);
%>
Why ...
2
Solved
I have the following el expression:
<af:outputText value="#{viewArticle.publish ? ('Publish on ' + viewArticle.publishDate + ' by ' + viewArticle.publishFirstName + ' ' + viewArticle.publ...
Harless asked 14/6, 2013 at 6:46
2
Solved
I have a list of objects in backing bean
and I would like to iterate over it in JavaScript,
so I tried the following:
<script>
//<![CDATA[
var length = #{fn:length(myBean.myList)};
fo...
Karolyn asked 27/12, 2011 at 11:26
4
Solved
So my team has a jsf and we use an EL statement to read in the value of an input box, works fine but by default we have our value set as what should be filled into the field. How can I set a defaul...
4
Solved
I would like to get something like the next code generated in JSTL
<c:choose>
<c:when test="${random number is even}">
<div class="redlogo">
</c:when>
<c:otherwise&g...
5
I have a JSF2 application that renders a large table with complex content. Unfortunately, each request takes up to 6 seconds to process. Using simple debug output inside a phase listener, I could s...
Stacte asked 5/8, 2010 at 10:7
1
Solved
Coding in JSP for the first time, I need to render a variable's value to HTML. It looks like there are various ways to do this; what is the difference between these (given that I have a variable na...
1
Solved
I've been using this.$el all over my backbone app like so:
render: function() {
this.$el.html(this.template);
},
then I saw code online that uses:
render: function() {
var dict = this.model.t...
Pereyra asked 25/9, 2013 at 19:26
2
Solved
I am getting this error
/WEB-INF/jsp/account/index.jsp(6,0) The function getMessageData must
be used with a prefix when a default namespace is not specified
<c:set var="messageData"...
2
Solved
I upgraded my Java EE web application to use newer PrimeFaces version and suddenly the call of an overloaded bean method in an action attribute of PrimeFaces commandlink did not work anymore. I tri...
Gascon asked 19/3, 2012 at 0:31
4
Solved
1
Solved
I want to load two difference panel in .xhtml file.
<h:inputText value="#{param['from']=='TERMINAL' ? terminalsList.globalFilter : merchantsList.globalFilter}" size="50" />
<h:commandButt...
Prowess asked 4/9, 2013 at 8:58
3
Solved
I am developing my application using spring-web-mvc...
Now at my Controller it returns like this :
public class InterfacesManageController implements Controller {
public ModelAndView handleRequ...
1
Solved
I'm still new to Guice and haven't used any DI frameworks before. After reading the official wiki and many other documents I'm still unable to wrap my head around it completely.
In my particular c...
Scofflaw asked 26/8, 2013 at 23:44
1
Solved
I have following code:
<ui:repeat var="class2" value="#{bean.list}" varStatus="status">
<h:form id="#{class2.name}">
<h:outputText value="#{class2.name}" />
</h:form>
&...
Rombert asked 21/8, 2013 at 13:20
1
Solved
I have a problem in connecting My xhtml page to the managed bean, the action on the commandButton works but when it comes to passing values it doesn't work.
here is my jsf code:
<h:form id="fo...
Ambiversion asked 18/8, 2013 at 18:18
© 2022 - 2024 — McMap. All rights reserved.