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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:48:49+00:00 2026-06-15T15:48:49+00:00

The following facelet code, which renders a message when the employeeId inputText component loses

  • 0

The following facelet code, which renders a message when the employeeId inputText component loses focus, is executing successfully…

<h:inputText id="employeeId" value="#{questionAnswerAction.questionAnswerActionForm.employeeId}" 
 required="true" requiredMessage="#{app:requiredFieldMessage(bundle, 'label.peoplesoftId')}"
 binding="#{questionAnswerAction.questionAnswerActionForm.employeeIdInputText}">
    <f:ajax event="blur" render="employeeIdMessage" />
</h:inputText>
<h:message id="employeeIdMessage" errorClass="deg-msg-error" infoClass="deg-msg-info" for="employeeId"></h:message>

For some reason though, when I attempt to apply just about the same code on another facelet (the difference being that it is for a managerId instead of employeeId), when the setter occurs that gets triggered in the ajax call (setEmployeeId in the above call), my SessionScoped ManagedProperty is being flagged as null in the method. The ManagedProperty is actually a SessionScoped ManagedBean itself.

Can’t figure out why this code is working fine in one page but then in another facelet when the ‘set’ occurs the ManagedProperty is showing up as null…

  • 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-15T15:48:50+00:00Added an answer on June 15, 2026 at 3:48 pm

    The binding attribute causes problems when bound to a property of a bean in a scope broader than the request scope, such as the session scope, because you’re then basically sharing physically the same JSF component state across multiple page includes, page views and browser tabs/windows throughout the entire session. Get rid of it or rebind it to a request scoped bean.

    The UIInput field is then passed to a method that adds a FacesContext message to the specified UIComponent (in this case it’s the UIInput field

    Just use a normal Validator or Converter depending on the functional requirement and register it on the component. If you throw a ValidatorException or ConverterException, then the wrapped FacesMessage will automagically end up in the right place. This way you don’t need the component binding any more.

    setting the manager bean to be RequestScoped fixed it…this is strange because when I set my employee managed bean to be SessionScoped, the ajax functionality started working

    This is answered by points 4 and 5 in commandButton/commandLink/ajax action/listener method not invoked or input value not updated.

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

Sidebar

Related Questions

I have the follwing code inside a facelet page: <h:inputNumber value=bean.property> <f:convertNumber type=currency />
I have jsf application in which I have to use a facelet custom component
I have following piece of code in my jsp file which getSession information: <jsp:useBean
In my .xhtml file, I have the following SelectOneMenu component: <ui:define name=formContent> <h:selectOneMenu value=#{mrBean.itemCategoryID}>
I am getting the following error on my Facelet page, which simply consists of
Following code produces a nested array as a result for keys containing three items:
Following code takes like 2500 milliseconds on an i7-*3.4 GHz windows-7 64-bit computer to
Following code worked fine abstract class FunctionRunnable<V> implements Runnable { protected abstract V calculate();
Following chunk html code works as expected: <iframe src=http://www.amazon.com/></iframe> But when trying embed inner
Following leads in this thread and others, I've set up a code block where

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.