Package javax.faces.component

Examples of javax.faces.component.UIComponent.restoreState()


                        throw new IllegalStateException("Cannot restore row correctly.");
                    }
                }
               
                component.clearInitialState();
                component.restoreState(facesContext, childState);
                component.markInitialState();
               
                Iterator<UIComponent> childsIterator;
                if (restoreChildFacets)
                {
View Full Code Here


                }
               
                component.clearInitialState();
                if (childInitialState != null)
                {
                    component.restoreState(facesContext, childInitialState);
                    component.markInitialState();
                    component.restoreState(facesContext, childState);
                }
                else
                {
View Full Code Here

                component.clearInitialState();
                if (childInitialState != null)
                {
                    component.restoreState(facesContext, childInitialState);
                    component.markInitialState();
                    component.restoreState(facesContext, childState);
                }
                else
                {
                    component.restoreState(facesContext, childState);
                    component.markInitialState();
View Full Code Here

                    component.markInitialState();
                    component.restoreState(facesContext, childState);
                }
                else
                {
                    component.restoreState(facesContext, childState);
                    component.markInitialState();
                }
               
                Iterator<UIComponent> childsIterator;
                if (restoreChildFacets)
View Full Code Here

    }

    try
    {
      uic = clazz.newInstance();
      uic.restoreState(FacesContext.getCurrentInstance(), _state);
    }
    catch (InstantiationException ie)
    {
      _LOG.warning("ERR_CREATE_NEW_COMPONENT_INSTANCE", clazz.getName());
      _LOG.warning(ie);
View Full Code Here

      newComponent = component.getClass().newInstance();
    } catch (Throwable t) {
      throw new FacesException("Could not instantiate "+component.getClass(), t);
    }
    FacesContext faces = FacesContext.getCurrentInstance();
    newComponent.restoreState(faces, component.saveState(faces));
    return newComponent;
  }
 
  private void updateValueExpressions(UIComponent childClone) {
    ExpressionFactory factory = FacesAPI.getExpressionFactory();
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.