el Questions
1
Solved
I am using a datatable and for each row I have two buttons, an "Edit" and a "Delete".
I need these buttons to be read-only, i.e. disabled, if a certain condition is met for the row in question. I ...
1
Is there a way I can get a attribute set in ServletContext in EL so that it ends up as a JavaScript variable?
I am setting it as
context.setAttribute("testing.port", "9000");
I tried retrievin...
2
Solved
If I set session like this:
<%
session.setAttribute("taintedAttribute", "what ever we want");
%>
normally we can get session variable like this in EL
${sessionScope.taintedAttribute }
...
2
Solved
1
Solved
I wish to write JSP which generates XML file, which has syntax, similiar to XML with EL expressions. In other words, I wish to let JSP to process only my expressions, but leave foreign expressions ...
1
Solved
I have a JS script which is called when a submit button action is fired successfully:
<h:panelGroup rendered="#{user$webreports$webfilteroverview.submitted}">
<f:verbatim>
<script...
3
Solved
I have this behaviour I do not really understand
${someVar}
${someVar.class.name}
${someVar == 'error'}
outputs
false
java.lang.Boolean
true
How can it be exlpained?
What it the correct way...
1
Solved
How does exactly the following code work:
#{aaa.id}
<h:inputText id="txt1" binding="#{aaa}"/>
I mean, usually the component binding works, by specifying a property (of type UIComponent) in...
1
Solved
Can we find the length of a String in Facelets page to check for a condition using <ui:fragment>?
1
Solved
I have a datatable with a button in each row:
<ice:dataTable ... var="item">
<ice:column>
<h:commandButton value="Download" action="#{mybean.downloadItem(item)}" />
</ice:c...
Hydrocarbon asked 10/11, 2011 at 17:8
1
Solved
I would like to make an OR condition in this menu :
<li class="#{facesContext.viewRoot.viewId == ('/company/team.xhtml' or '/company/partnerships.xhtml' ) ? 'active' : '' }"><a class="ite...
1
Solved
This is basically an extension to this answer.
I am trying to get an argument into a method/action call (for a delete button in a list/data table).
Client:
<ui:include src="...">
&...
1
Solved
<p:graphicImage value="#{resource['images:primefaces-ui/#{car.manufacturer}.jpg']}"/>
I would like to calculate the inner el first and then calculate the path using resource API.
I tried &l...
1
Solved
While deploying GAE + primefaces application, I got following error:
com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException: Error Rendering View[/CreateEmployee.xhtml]
j...
Illustrative asked 31/10, 2011 at 6:39
2
Solved
In JSF backed bean I got an IllegalStateException when the programmatically added action listener of a programmatically added Primefaces menu item is called. I tried both request and session scope ...
Hydria asked 25/3, 2011 at 13:14
2
Solved
Is it possible to cast using EL?
I've got a class Vehicle, and two other classes Car and Bus that extends Vehicle.
I'm searching for all Vehicles and there's some data that has in Bus but does not...
2
Solved
I'm using dynamically created links:
<h:link outcome="/page" value="#{name}">
<f:param name="name" value="#{name}"/>
</h:link>
I would like to attach custom converter for f:...
1
Solved
I'm using Spring MVC for my controller, and JSPs are my presentation layer.
Inside my Spring controller, I have:
model.put("issues", dataManager.getIssues());
model.put("functions", dataManager.g...
1
Solved
I have the following tree node class:
public abstract class DocumentTreeNode extends TreeNodeImpl implements javax.swing.tree.TreeNode
{
private Boolean isToC;
...
public Boolean isToC()
{
...
Eirene asked 15/9, 2011 at 21:44
1
Solved
I have two problems. The first one is that I'm using JSP and that I can't solve. The second one is that I'm getting an odd behavior.
When I put this in the doGet() method of my servlet
req.setAtt...
2
Solved
I'm having troubles with EL and javascript functions (JSF 1.2, Facelets, Richfaces 3.3.0GA). I have a page that includes another composition:
<ui:include src="/pages/panels/examinationPan...
1
Section 3.1.4 of the JSF 2.1 Specification says that all attributes of standard components are value expression enabled.
I want to assign a value expression to the action attribute of a commandBut...
1
Solved
I am trying to conditionally build a custom list using <ui:repeat>. On every occurrence of -1 as item-value in list, I need to add a line break.
I tried to use <c:if> inside <ui:rep...
1
Solved
How can I check what version of EL is server using .
I am running Websphere 7 . EL classes are in j2ee.jar and manifest is below.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 2....
Rodenhouse asked 29/8, 2011 at 23:2
1
Solved
I have the following block in my JSP, which converts from ENUM values {CREATE, CREATE_FROM_CAMPAIGN, OPEN} into nice, readable status texts.
For some reason the first test against 'CREATE' works, ...
© 2022 - 2024 — McMap. All rights reserved.