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 7976891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:02:11+00:00 2026-06-04T09:02:11+00:00

I have a simple Facelet tag: <ui:composition> <ui:insert /> </ui:composition> which is used in

  • 0

I have a simple Facelet tag:

<ui:composition>
  <ui:insert />
</ui:composition>

which is used in order to avoid declaring multiple c:set tags.
Let’s say I registered it in the facelets taglib library with the name view, and use it like this:

<my:view bean="#{myController}">
  <p:inputText value="#{bean.value}>
    <p:ajax event="blur" process="@this" listener="#{bean.handleValueChanged}" />
  </p:inputText>
</my:view>

The attribute value is perfectly resolved by p:inputText, but p:ajax throws this:

Target Unreachable, identifier 'bean' resolved to null
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bean' resolved to null
    at com.sun.el.parser.AstValue.getTarget(AstValue.java:153)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:237)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
    at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:39)
    at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
    at org.primefaces.component.behavior.ajax.AjaxBehaviorListenerImpl.processAjaxBehavior(AjaxBehaviorListenerImpl.java:47)

Is it a bug or expected behavior?

Update:
I just tried the same with f:ajax and it worked!

Btw, the environment is as follows:
Glassfish 3.1.2
PF 3.0, 3.2, 3.3

Update2:
This issue with RichFaces is absolutely identical. Seems to be like a PrimeFaces bug (I’ll post an issue on PF bug tracker today).

  • 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-04T09:02:12+00:00Added an answer on June 4, 2026 at 9:02 am

    My colleague has just provided a patch to resolve this issue.

    The current implementation of AjaxBehaviorListenerImpl#processAjaxBehaviour is as follows:

    public void processAjaxBehavior(AjaxBehaviorEvent event) throws AbortProcessingException {
            FacesContext context = FacesContext.getCurrentInstance();
            final ELContext elContext = context.getELContext();
    
            try{
                listener.invoke(elContext, new Object[]{});
            } catch (MethodNotFoundException mnfe) {
                MethodExpression argListener = context.getApplication().getExpressionFactory().
                            createMethodExpression(elContext, listener.getExpressionString(), null, new Class[]{event.getClass()});
    
                argListener.invoke(elContext, new Object[]{event});
            }
        }
    

    He proposes to tweak it like this:

    import javax.faces.view.facelets.FaceletContext;
    

    public void processAjaxBehavior(AjaxBehaviorEvent event) throws AbortProcessingException {
            FacesContext context = FacesContext.getCurrentInstance();
            final ELContext elContext = context.getELContext();
    
            try{
                listener.invoke(elContext, new Object[]{});
            } catch (MethodNotFoundException mnfe) {
                FaceletContext fc = (FaceletContext) context.getAttributes().get(FaceletContext.FACELET_CONTEXT_KEY);
                MethodExpression argListener = context.getApplication().getExpressionFactory().
                            createMethodExpression(fc, listener.getExpressionString(), null, new Class[]{ event.getClass() });
    
                argListener.invoke(elContext, new Object[]{ event });
            }
        }
    

    Hopefully this will be approved by PF team.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple SSIS package which reads data from flat file and insert into
I have simple Perl/CGI scripts based web server which is mainly used to display
I have simple insert into.. query which is taking around 40 seconds to execute.
I have a very simple managed bean LOB which is used for reading existing
I have simple SSIS package in which On Error event handler I have created
I have simple user registration form. In which i am puting city as a
I have simple front controller plugin which contains this code: http://pastebin.com/m155c59b0 When session expire
I have simple application with single AppDomain which is periodicaly launched on a server.
Have simple C# console app which imports text data into SQL. It takes around
I have a JSF page which is outputting XHTML (from a facelet). One of

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.