Beispiel #1
0
		protected override Object getComponentStateToSave (FacesContext facesContext) {
			Trace.WriteLine ("Entering getComponentStateToSave");

			UIViewRoot viewRoot = facesContext.getViewRoot ();
			if (viewRoot.isTransient ()) {
				return null;
			}

			Object serializedComponentStates = ((UIComponent) viewRoot.getChildren ().get (0)).processSaveState (facesContext);
			//Locale is a state attribute of UIViewRoot and need not be saved explicitly
			Trace.WriteLine ("Exiting getComponentStateToSave");
			return serializedComponentStates;
		}
Beispiel #2
0
        protected override Object getComponentStateToSave(FacesContext facesContext)
        {
            Trace.WriteLine("Entering getComponentStateToSave");

            UIViewRoot viewRoot = facesContext.getViewRoot();

            if (viewRoot.isTransient())
            {
                return(null);
            }

            Object serializedComponentStates = ((UIComponent)viewRoot.getChildren().get(0)).processSaveState(facesContext);

            //Locale is a state attribute of UIViewRoot and need not be saved explicitly
            Trace.WriteLine("Exiting getComponentStateToSave");
            return(serializedComponentStates);
        }
Beispiel #3
0
        public override void processDecodes(FacesContext context)
        {
            System.Diagnostics.Trace.WriteLine("processDecodes");

            IHttpHandler jsfHandler = EnterThread();

            try {
                ProcessPostData();

                EventRaiserFacesEvent facesEvent = new EventRaiserFacesEvent(this);
                facesEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
                context.getViewRoot().queueEvent(facesEvent);

                base.processDecodes(context);
            }
            catch (Exception ex) {
                HandleException(ex);
            }
            finally {
                ExitThread(jsfHandler);
            }
        }
Beispiel #4
0
 public override javax.faces.component.UIViewRoot getViewRoot()
 {
     return(_facesContex.getViewRoot());
 }
Beispiel #5
0
		public override void processDecodes (FacesContext context) {
			System.Diagnostics.Trace.WriteLine ("processDecodes");

			IHttpHandler jsfHandler = EnterThread ();
			try {
				ProcessPostData ();

				EventRaiserFacesEvent facesEvent = new EventRaiserFacesEvent (this);
				facesEvent.setPhaseId (PhaseId.INVOKE_APPLICATION);
				context.getViewRoot ().queueEvent (facesEvent);

				base.processDecodes (context);
			}
			catch (Exception ex) {
				HandleException (ex);
			}
			finally {
				ExitThread (jsfHandler);
			}
		}