This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Nov 17, 2011, 3:33 AM
24 Posts

Failed to use RequestMap in a bean in more than one calls of a method

  • Category: Managed Beans in NSF
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: Managed Beans
  • Replies: 0
I called a method in a session scoped bean successfully for the first time, but nothing happened in the following calls. Here are some relative codes.
         Date dt=(Date) ((UIOutput) JSFUtil.findComponent("date1")).getValue();
        if (dt==null){
            requestScope.put("message", "Please select a date for the arrangement.");
            return;
        }
 
requestScope is a local variable in the bean and is initialized in the constructor using
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
 
But if I get the requestMap each time just before I use it, everything is OK. That would be inconvenient. 
Any suggestion is appreciated.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal