Questions tagged [juel]

JUEL is an implementation of the Unified Expression Language (EL), specified as part of the JSP 2.1 standard (JSR-245), which has been introduced in JEE5. Additionally, JUEL 2.2 implements the JSP 2.2 maintenance release specification for full JEE6 compliance.

18 questions
5
votes
1 answer

Expression language change with primefaces 5.2

With primefaces 5.1 it was no problem to refer only a getter in a managed bean like Changed to primefaces 5.2.2 I have to do
opfau
  • 731
  • 9
  • 37
3
votes
1 answer

How to write juel expression

Recently I try out JUEL, and now I get confused how to write several methods which i can't find the example in the documentation. It's only give me this http://juel.sourceforge.net/guide/start.html and here what I wanna know how to write it out if I…
2
votes
0 answers

java.lang.ClassNotFoundException: de.odysseus.el.ExpressionFactoryImpl

My application is using apache camel along with spring. I am getting exception in EL expression shown below in camel-context.xml in.body is request object and it has method getParam(). ${(in.body.getParam != null) and…
2
votes
2 answers

Java, how to using expression language in pure java

I have a JavaEE web application, as it will be deployed to some kind of application servers such as weblogic websphere tomcat etc. so the EL api will be avaiable for me, but I don't need to care about what EL implementation is used. I want to use EL…
CaiNiaoCoder
  • 3,269
  • 9
  • 52
  • 82
1
vote
1 answer

check if a variable is null or not, on sequence flows in camunda modeler

On a sequenceFlow, I want to check a condition which may include a variable that may not be defined yet in process instance. so if it's not defined, I dont want to get ActivitiException of "the variable is not defined", but want the flow to…
giri
  • 13
  • 4
1
vote
2 answers

Replace & with & using Jackson ObjectMapper

In the application that I'm working we have a requirement to transform a huge json into an even bigger XML. The structure of both elements is very different, therefore we have decided to create an XML file matching the XSD and populate the fields…
Rumal
  • 1,452
  • 1
  • 17
  • 31
1
vote
2 answers

Whats the right way to implement a custom expression evaluator in Java?

I have a map that contains a number of properties e.g. "a", "b", "c" ... I want to define a template where i can evaluate an expression such as, "a" && "b" && !"c" to mean the following, true if "a" is in the map, "b" is in the map but "c" is not…
user393144
  • 1,575
  • 3
  • 14
  • 21
1
vote
1 answer

Is it possible to use a JSON Object as a Variable in Activiti and use specific Nodes as Variable

I want to use a JSON Object in the activity variable so i have a declared JSON Object: [ "test.jpeg", "test.xml", "test_de2.mp4", "test_season.jpeg", "test_series.jpeg", "test_v05.mp4" ] I put this as a process variable…
Marcel Wolf
  • 326
  • 3
  • 20
1
vote
1 answer

non-servlet JSP

I realise there are EL and near EL frameworks like StringTemplate, JUEL, Velocity, etc. However, I am not asking for list of alternatives to JSTL/EL. I came across a package more than a year ago, someone who wrote a util that emulates the…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
1
vote
2 answers

juel expression validation (vs Janino)

Calling all javax.el juel experts :-) We want to use JUEL to evaluate expressions in a pure Java context. These expressions are typically mathematical ones and are provided by users via a ui. An added aspect is that these expressions are part of…
1
vote
3 answers

List free variables in an EL expression

I have an application which contains some EL evaluation used for programmatic configuration. Given an EL expression I want to get what free variables it contains without actually evaluating it. The intention is to provide a UI where end users can…
Saintali
  • 4,482
  • 2
  • 29
  • 49
0
votes
1 answer

How to traverse a nested key value pair object in JUEL(Java Unified Expression Language) & return a certain index to evaluate against?

I have an object with duplicate key value pairs. I need to traverse it & evaluate index [0] only against a condition: var cells = {"cells": [{"key": "-18", "key1": "-9", "key2": "-51", "key3": "23"}, {"key": "-18", "key1": "-9", "key2": "-51",…
Alex Mo
  • 131
  • 1
  • 2
  • 11
0
votes
1 answer

Add a variable inside Additional data source expressions in Alfresco process services

I am trying to add a variable inside Additional data source expressions for document generator in Alfresco I have this taskid variable and when i put it it doesnt work. here is what works: ${transdataService.getData("DocName","55280"})} It works and…
0
votes
1 answer

Implementing a little more complex conditions for a flow in Camunda

How can I implement more complex expression in a flow's condition? Simple conditions like: ${i > 0} are handy and great but there are other times I need to do something a little more complex like: ${deadLine.after(now)} Assuming deadLine is an…
Mehran
  • 15,593
  • 27
  • 122
  • 221
0
votes
1 answer

Working with different contexts with JUEL

I was working the expressions and trying to play with the contexts (the one we use at creation time and the one we use at evaluation time). Here is some code below that is trying to reproduce my needs and highlight the problem. …
lvaills
  • 177
  • 7
1
2