Questions tagged [methodexpression]
34 questions
45
votes
4 answers
How to call parameterized method from JSP using JSTL/EL
How to call a Java method with arguments which is defined in Java class, from JSP using JSTL/EL. The method is returning arrays. Any return value can be used.

sachin gk
- 585
- 3
- 6
- 11
11
votes
1 answer
How can I log method expressions of JSF ajax requests
I have figured out how to log when a request is an ajax request and which page it is from, in a filter.
What I would really like to do is log what the ajax request is actually for. Such as the name of the method being called by the ajax (eg…

Mark W
- 5,824
- 15
- 59
- 97
6
votes
1 answer
Evaluating if MethodExpression attribute is set (getting PropertyNotFoundException)
I have a UI component with a MethodExpression attribute changeListener:
…

Samuel
- 879
- 10
- 21
5
votes
1 answer
Why am I able to bind to an arbitrary method if it's not supported by JSF?
I'm using Glassfish 3.1.2.2 and JSF Mojarra 2.1.6.
I have the following Facelets page:
And the following…

DavidS
- 5,022
- 2
- 28
- 55
4
votes
1 answer
How to evaluate MethodExpressions in JSF composite components
I am not sure about the "correct" way to deal with method expressions in composite components.
My composite uses a backing class with action methods. Theses perform some default actions or delegate to an action method passed by the composite user as…

Darkspirit
- 199
- 3
- 12
4
votes
2 answers
EL conditional Method Expression
I would like to declare a conditional method expression in EL like below:

guerilla
- 43
- 1
- 3
4
votes
1 answer
Dynamically call method in EL, which is evaluated from a String
i have a submit button. This submit button has an "action" attribute. But this action attribute should always call another function (some kind of generic). So i want to call a function dynamically. This is because i need to reuse this component. I…

sofarsoghood
- 243
- 2
- 16
4
votes
1 answer
org.apache.el.parser.ParseException: Encountered "(" at line X, column Y. Was expecting one of [...]
The below JSF snippet:
Throws this exception:
Encountered "(" at line 1, column 18. Was expecting one of: "}" ... "." ... "[" ... ">" ... "gt" ... "<" ... "lt" ... ">=" ... "ge" ... "<=" ...…

Shankar
- 175
- 2
- 7
- 17
3
votes
1 answer
p:commandButton action throws javax.el.PropertyNotFoundException
The error is in:
javax.el.PropertyNotFoundException: /index.xhtml: Property 'validar' not found on type fya.beanpages.IndexBean
Its looks like it doesnt find the validar method. And it thinks it is an attribute.
This is the xhtml:

Isxida
- 55
- 2
- 8
2
votes
1 answer
a href / h:link outcome / h:button outcome methods automatically called during page load without any clicks
I have 3 pages with 3 links that I tried implementing with h:link or simply an tag. But in both cases the methods connected to these links are getting called whenever I navigate to the page.
Here's the tag implementation:

Eddy
- 3,533
- 13
- 59
- 89
2
votes
2 answers
Calling a void method from a composite component
I'm trying to build a composite JSF component and I'm having some trouble calling a method. My component has a few inputs inside a and a add button responsible for adding more objects do the list that feeds the repeat. I want that button to call a…

Denis Klein
- 101
- 1
- 11
2
votes
0 answers
Passing a method to composite component executes the method directly
I am trying to create a standardized button panel, that will show on most of our screens. Since the buttons will always be the same, except for some actions the signature of the composite component is…

Thelonius
- 71
- 2
- 8
2
votes
1 answer
How to pass method expression to the Facelets tagfile
I created a tagfile for a confirm dialog with a command button:

EmreAltun
- 393
- 6
- 9
- 19
2
votes
1 answer
Passing EL method expression as attribute of custom Facelets tagfile
I created a custom JSF tag:

Federico
- 561
- 2
- 11
- 32
1
vote
0 answers
javax.el.MethodNotFoundException, even though method is there
I am trying to invoke a managed bean method called getNebulizerModelName in the action attribute of a in my facelet page, so that i can tell the implicit NavigationHandler where to go next according to the faces-config.xml navigation…

Xaris
- 23
- 6