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:
&...
7
Solved
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 ...
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...
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....
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 ...
3
Solved
In the same context i have another query
<select multiple="multiple" name="prodSKUs">
<c:forEach items="${productSubCategoryList}" var="productSubCategoryList">
<option val...
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...
1
Code first
@Test
public void tryUnicode()
{
SpelExpressionParser parser = new SpelExpressionParser();
Object rootObject = new Object()
{
public String getName()
{
return "wener";
}
public...
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...
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 ...
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...
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 ...
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...
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...
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...
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...
© 2022 - 2024 — McMap. All rights reserved.