SpEL « Core « Spring Q&A





1. How do I escape values in SpEL?    stackoverflow.com

I am writing some SpEL statements in XML, and I can't get the parser to determine when I need to escape a character. I've attempted the following:

<... property="someProperty" value="#{ someBean.aMethodOnTheBean('st\'ring') }" />
However ...

2. Spring SpEL logical operators    stackoverflow.com

In Spring expression language (SpEL) each textual relational operator has a symbolic equivalent. For example, eq can be written as ==, and lt can be written as < (source

3. Spring SpEL - inconsistency with greater than ">" operator    forum.springsource.org

Spring SpEL - inconsistency with greater than ">" operator While evaulating a Selection expression like --> "#root.?[someproperty_Of_Type_X > someobject_Of_Type_X]", where #root is a List, If the property on left hand side ...

4. Spring SpEL - Missing IN Operator    forum.springsource.org

Does Spring SPEL support IN operator ? I was trying Selection using this expression <#root.?[docType.name IN #listOfString]> where root represents list of DomainObject which has a field by the name of ...

5. How to use SPEL & ReloadableResourceBundleExpressionSource in this particular case?    forum.springsource.org

How to use SPEL & ReloadableResourceBundleExpressionSource in this particular case? Hello, I hope somebody could help me to solve this problem in optimal way. I need to do the following in ...

6. SPEL Assignment    forum.springsource.org

SPEL Assignment Hello, I am playing with SPEL inside SI. Recently I faced a problem that took me couple of hours, most probably caused by my misreading of reference guide... Anyway, ...

7. SPEL Editor?    forum.springsource.org

SPEL Editor? Hello, we are using SPEL a lot in our system based on Spring Integration and Spring Batch. Basically, we externalise business rules and express them with SPEL and everything ...

8. Using SpEL in Depends-On Attribute    forum.springsource.org

Using SpEL in Depends-On Attribute I'm trying to set up some conditional configuration in my context. Essentially, I want my H2 database server to only be intialized when specifically told to ...

9. Problem using SpEL    forum.springsource.org

Problem using SpEL Hi all, I want to evaluate an expression like e.g. Expression exp = parser.parseExpression("{one({1,2,3}),two({4,5,6}) }"); Afterwards I want to be able to do something like: Map map = ...





10. SPeL doesn't appear to handle inline lists    forum.springsource.org

In the Spring 3.0.5 doc, in the "Inline lists" section, there is an example like this: Code: // evaluates to a Java list containing the four numbers List numbers = (List) ...

11. SpEL lists from arrays, apparent problem    forum.springsource.org

Hi, all. I was trying to inject a List of String objects into a class, but the List was to be constructed dynamically from an Array and, apparently, there's a problem ...

12. SpEL Question    forum.springsource.org

Is it possible using SpEL to write an expression where-in it would allow you to iterate over a collection of the root object and for each object in this said collection, ...

13. SpEL does not recognize functions    forum.springsource.org

Hi Forum! Environment: Spring 3.0.5 RELEASE, Tomcat, Web MVC, Tiles I've a Test-Line in my jspx: Code: which produces an Exception: Code: java.lang.NoSuchMethodException : java.lang.String.substring(java.lang.Long, java.lang.Long) Why does ...

14. instanceof and SpEL    forum.springsource.org

@PostFilter("filterObject instanseof Project ? filterObject.manager == principal : filterObject instanceof Phase ? filterObject.project.manager == principal : filterObject instanceof Invoice ? filterObject.phase.project == principal : filterObject instanceof Payment ? filterObject.invoice.phase.project.manager == principal ...

15. Spring 3.0M2 - SPEL - invoking static method like Math.sqrt()    forum.springsource.org

Spring 3.0M2 - SPEL - invoking static method like Math.sqrt() I am looking for any example how to invoke a static method using Spring Expression Language. For example, I found that ...

16. SpEL and custom functions    forum.springsource.org

SpEL and custom functions I think I know the answer to this, but I need to ask anyway... It seems that in order to register a custom function in SpEL that ...





17. SpEL Projection fails on Sets    forum.springsource.org

Hi, Few months ago I wrote about SpEL in my blog and I asked myself the same question, in my opinion the reason is that sets do not allow duplications; let's ...

18. SpEL does not appear to work in references    forum.springsource.org

Mar 10th, 2010, 01:18 PM #1 flyeagle5683 View Profile View Forum Posts Private Message Member Join Date Jul 2006 Posts 45 SpEL does not appear to work in references I tried ...

19. Spel doesn't handle accents ?    forum.springsource.org

Spel doesn't handle accents ? Hi, I have some method name with accent, but Spel doesn't understand that. Here is a test : Code: package com.hum; import org.springframework.expression.spel.standard.SpelExpressionParser; /** * * ...