Package javax.faces.context

Examples of javax.faces.context.Flash.keep()


                facesContext.setViewRoot(uiViewRoot);
                exceptionQueuedEventIterator.remove();

                Flash flash =  facesContext.getExternalContext().getFlash();
                flash.put(throwable.getClass().getName(), throwable);
                flash.keep(throwable.getClass().getName());

                this.viewNavigationHandler.navigateTo(DefaultErrorView.class);

                break;
            }
View Full Code Here


      final Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash();
      if (value != null)
      {
         flash.put(name, value);
         flash.putNow(name, value);
         flash.keep(name);
      }
      else
      {
         flash.remove(name);
      }
View Full Code Here

                //Resolve property calling get or keep
                elContext.setPropertyResolved(true);
                //Obtain the value on requestMap if any
                Object value = externalContext.getRequestMap().get(strProperty);
                //promote it to flash scope
                flash.keep(strProperty);
                return value;
            }
            else
            {
                //Just get the value
View Full Code Here

            else if (isDoKeepPromotion(facesContext))
            {
                //Resolve property calling get or keep
                elContext.setPropertyResolved(true);
                //promote it to flash scope
                flash.keep(strProperty);
                //Obtain the value on requestMap if any
                Object value = externalContext.getRequestMap().get(strProperty);
                return value;
            }
            else
View Full Code Here

            else if (isDoKeepPromotion(facesContext))
            {
                //Resolve property calling get or keep
                elContext.setPropertyResolved(true);
                //promote it to flash scope
                flash.keep(strProperty);
                //Obtain the value on requestMap if any
                Object value = externalContext.getRequestMap().get(strProperty);
                return value;
            }
            else
View Full Code Here

                //Resolve property calling get or keep
                elContext.setPropertyResolved(true);
                //Obtain the value on requestMap if any
                Object value = externalContext(elContext).getRequestMap().get(strProperty);
                //promote it to flash scope
                flash.keep(strProperty);
                return value;
            }
            else
            {
                //Just get the value
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.