Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8708929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:14:54+00:00 2026-06-13T04:14:54+00:00

I’d like to know whether it is possible to adapt the ExtendedBeanELResolver from the

  • 0

I’d like to know whether it is possible to adapt the ExtendedBeanELResolver from the question nesting-jsf-expression-strings as well to handle this nested EL expression:

#{controllerBean.getBean('userProfileBean', component).street}*

whereby controllerBean.getBean returns the bean userProfileBean. I’ll get with the ExtenedBeanELResolver following exception:

SCHWERWIEGEND: javax.el.PropertyNotFoundException: /WEB-INF/templates/modification/userProfile.xhtml @35,196 value="#{controllerBean.getBean('userProfileBean', component).street}": Property 'getBean' not found on type com.something.ControllerBean

If I insert additional brackets it works, but looks even more ugly than now:

#{(controllerBean.getBean('userProfileBean', component)).street}*

Is it possible to do without the additional brackets?

UPDATE 1 after CycDemo’s answer:

Strange problem.
If i put the

<h:inputText value="#{beanOne.getBean('data').title}" />

inside a form the page renders, but only until i submit the form. After that the same error will be shown.

WARNUNG: /WEB-INF/templates/home.xhtml @61,66 value="#{beanOne.getBean('data').title}": Property 'getBean' not found on type com.something.BeanOne

If i change it to

<p:inputText value="#{beanOne.getBean('data').title}" />

the page won’t even render in the beginning.
I think the problem is that the JSF is trying to call the setter when the form is submitted but can’t evaluate it correctly.

Any ideas?

UPDATE 2

Appearently JSF is trying to call getGetBean() because it is looking for a property on BeanOne (I had a breakpoint there in eclipse) which is wrong:

@ManagedBean
@ViewScoped
public class BeanOne {

  private Object bean = new String("something");

  public Object getBean(String name) {
    FacesContext context = FacesContext.getCurrentInstance();
    return context.getApplication().evaluateExpressionGet(context,
        "#{" + name + "}",
        Object.class);
  }

  public Object getGetBean() {
    return bean; // <-- will be called by JSF
  }

  public void setGetBean(Object bean) {
    this.bean = bean;
  }

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:14:55+00:00Added an answer on June 13, 2026 at 4:14 am

    Make sure

        #{(controllerBean.getBean('userProfileBean', component)).street}
        change to
        #{controllerBean.getBean('userProfileBean', component).street}
    

    It is work in JSF 2.0 when I test.

    Use jboss-el. Download jar file here

    BeanOne.java
    import javax.faces.bean.ManagedBean;
    import javax.faces.bean.RequestScoped;

    @ManagedBean(name="BeanOne")
    @RequestScoped
    public class BeanOne {
        private Data data;
    
        public Data getBean(String title) {
            data = new Data(title);
            return data;
        }
        public void show() {
            System.out.println("User Input ==>" + data.getInput());
        }
    }
    

    Date.java

    public class Data {
        private String title;
        private String input;
    
        public Data(String title) {
            this.title = title;
        }
    
        public String getInput() {
            return input;
        }
    
        public void setInput(String input) {
            this.input = input;
        }
    
        public String getTitle() {
            return title;
        }
    
        public void setTitle(String title) {
            this.title = title;
        }
    }
    

    pageOne.xtml

    <h:form>
        <h:inputText value="#{BeanOne.getBean('Test').input}"/><br/>
        <h:commandButton value="Show" action="#{BeanOne.show}"/>
    </h:form>
    

    add the following configuration in web.xml

    <context-param>     
        <param-name>com.sun.faces.expressionFactory</param-name>
        <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>   
    </context-param>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
This could be a duplicate question, but I have no idea what search terms
I would like to count the length of a string with PHP. The string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.