Questions tagged [methodexpression]
34 questions
1
vote
0 answers
IllegalArgumentException when passing navigation outcome string to method expression
I am calling this xhtml file

user6008337
- 221
- 3
- 15
1
vote
1 answer
Create MethodExpression in Java (and use in JSF)
I've been trying to get a "generic" dialog, with autocomplete functionality, to work for a few days now. Turns out, I was just creating the MethodExpression the "wrong way". So I thought I'd document this here.
To reiterate: You want to dynamically…

Benjamin Maurer
- 3,602
- 5
- 28
- 49
1
vote
0 answers
"javax.el.ELException: Property not found on type" on a method expression
I am using Primefaces 5.2, jsf 2.2 and Tomcat 8 on a Linux server.
This is the line in my xhtml:
The method in the class UploadController:
public void…

jahuer1
- 377
- 4
- 15
1
vote
1 answer
How to bind a bean's method with package in actionListener?
I am pretty much newbie to Java/JSF technology and I've been trying to do simple UIs to understand how things are going on in Java/JSF world.
Now I want to bind a ManagedBean's method with its package name to a CommandButton's…

kizanlik
- 165
- 3
- 9
1
vote
0 answers
Pass method expression as tagfile attribute
I've the below tagfile:

wish79
- 101
- 1
- 3
1
vote
1 answer
Custom taglib results in MethodNotFoundException
What I want to do is declare a common datatable header as a composite component. But this answer set me straight since it was not rendered:
How to create a composite component for a datatable column?
Basically it instructed me to try my own taglib…

Karl Kildén
- 2,415
- 22
- 34
0
votes
0 answers
c# linq Joins - A Join is Missing?
I'm trying to write a (simple) join query, using linq Method-Expressions. While it seems quite right to me, the generated query is missing 1 Join...
Tables and their relations:
WorkingOrderTask n:1 WorkingOrder
WorkingOrder n:1…

dognose
- 20,360
- 9
- 61
- 107
0
votes
1 answer
Create MethodExpression containing a method with parameter of type Object generates parse exception
I am building a MethodExpression directly via java code.
It will represents a call to a bean method with parameter like follow .
#{bean.method(TheObjectInstance)}
The object is a simple custom pojo object
public class TheObject
{
public…

fra
- 83
- 1
- 11
0
votes
1 answer
How do i pass a parameter from xhtml to a backing bean method?
the command button causes this exception: HTTP Status 500 - /encryption.xhtml @17,110 action="#{encryptBean.encrypt(#{encryptBean.path})}" Failed to parse the expression [#{encryptBean.encrypt(#{encryptBean.path})}]

Spittoon
- 1
- 4
0
votes
1 answer
How to parameterize h:commandLink action attribute via ui:param
I am trying to parametrize the action attribute of in an include file:

Daniel Gray
- 1,697
- 1
- 21
- 41
0
votes
0 answers
Should I include parentheses in method expressions in of navigation cases?
I will perform the 1Z0-896 exam (Java EE 6 JavaServer Faces Developer Certified Expert), and I'm reading the book Core JavaServer Faces and official documentation. As much as I have tried not yet found the answer to a question, what is the…
0
votes
0 answers
JSF Restrict Page Access / Permissions - Error Parsing Issue
I am trying to restrict certain pages in my web application to certain users, such as an administrator. However, I keep getting the following error:
Error Parsing: #{userSession.hasRole('ADMIN')}
I have tried several things but keep hitting a brick…

James
- 1,471
- 3
- 23
- 52
0
votes
0 answers
javax.el.PropertyNotFoundException on method with javax.faces.event.AjaxBehaviorEvent for composite component
I am trying implement a simple composite component with ajax event based on information I found on Internet, but I am always getting
the error javax.el.PropertyNotFoundException
I've searched for solution and I cannot figure out what I am doing…

Anna G
- 1
- 2
0
votes
0 answers
pass bean action as attribute in custom tag inside ui:repeat
Is there a way to pass an bean action as attribute of a custom tag which is inside ui:repeat of my JSF 2.2 page?
and then inside of…

Ced
- 15,847
- 14
- 87
- 146
0
votes
1 answer
does not specify parameter in EL expression, how does it work?
In a demo I am seeing this code. In this JSF, autoCompleteView.completeQuery is called without parameter, but this method is defined with a String Parameter in the bean. Is this allowed in JSF?

user697911
- 10,043
- 25
- 95
- 169