/** * @see javax.faces.component.UIComponentBase#getId() */ public String getId() { return original.getId(); }
private UIViewRoot getViewRootForAlreadySetView(RequestContext context, FacesContext facesContext) { if (logger.isDebugEnabled()) { logger.debug("Existing view root found with id '" + facesContext.getViewRoot().getId() + "'"); } UIViewRoot viewRoot = facesContext.getViewRoot(); viewRoot.setLocale(context.getExternalContext().getLocale()); processTree(facesContext, viewRoot); return viewRoot; }
private UIViewRoot getViewRootForAlreadySetView(RequestContext context, FacesContext facesContext) { if (logger.isDebugEnabled()) { logger.debug("Existing view root found with id '" + facesContext.getViewRoot().getId() + "'"); } UIViewRoot viewRoot = facesContext.getViewRoot(); viewRoot.setLocale(context.getExternalContext().getLocale()); processTree(facesContext, viewRoot); return viewRoot; }
public AjaxViewRoot(UIViewRoot original) { super(original); renderIdsExpr = FacesContext.getCurrentInstance().getApplication().createValueBinding(RENDER_IDS_EXPRESSION); original.setId(createUniqueId()); swapChildren(original, this); setId(original.getId() + "_ajax"); }
private void writeClientWindow() throws IOException { FacesContext context = FacesContext.getCurrentInstance(); if (EnvUtils.isMyFaces() && context.isPostback()) { Integer index = (Integer) context.getExternalContext().getRequestMap().get("form-index"); index = index == null ? 1 : (index + 1); context.getExternalContext().getRequestMap().put("form-index", index); String clientWindow = context.getExternalContext().getClientWindow().getId(); startElement("input", null); writeAttribute("id", context.getViewRoot().getId() + ":javax.faces.ClientWindow:" + index, null); writeAttribute("name", "javax.faces.ClientWindow", null); writeAttribute("type", "hidden", null); writeAttribute("value", clientWindow, null); endElement("input"); } }
StateManagementStrategy sms = vdl.getStateManagementStrategy(facesContext, root.getId()); if (sms != null)
if (view.getId() == null) { // MyFaces. view.setId(view.createUniqueId(context, null)); view.markInitialState();
if (view.getId() == null) { // MyFaces. view.setId(view.createUniqueId(context, null)); view.markInitialState();
if (view.getId() == null)
if (viewAlreadySet(facesContext)) { if (logger.isDebugEnabled()) { logger.debug("Existing view root found with id '" + facesContext.getViewRoot().getId() + "'");
if (view.getId() == null)
if (view.getId() == null)
if (view.getId() == null)
context, view.getId()); if (sms != null)