Package org.ajax4jsf.context

Examples of org.ajax4jsf.context.AjaxContext.addRenderedArea()


    writer.endElement(HTML.INPUT_ELEM);
   
    AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
   
    if (ajaxContext.isAjaxRequest()) {
      ajaxContext.addRenderedArea(id);
    }
   
  }

View Full Code Here


      AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
      ajaxContext.addRegionsFromComponent(component);
      ajaxContext.addComponentToAjaxRender(component);
      ajaxContext.addRegionsFromComponent(component);
     
      ajaxContext.addRenderedArea(clientId + ":tb");
     
      // FIXME: check for correct client id.
      // Now path & client id mixed here, it is possible that
      // they will be different un case of dataTable in dataTable.
     
View Full Code Here

          // process only child components, all other should be added to render
          // automatically by ajax
          if (area.startsWith(NamingContainer.SEPARATOR_CHAR + clientId)) {
        area = area.substring(1); // remove unnecessary start separator symbol
        if (!area.equals(clientId) && !ajaxRenderedAreas.contains(area)) {
            ajaxContext.addRenderedArea(area);
        }
          }
      }
    }
  }
View Full Code Here

        for (Iterator<UIColumn> colums = table.getSortedColumns(); colums
                .hasNext();) {
            UIColumn col = colums.next();
            if (col.isRendered()) {
        String menuId = menuRenderer.renderMenu(context, table, col);
        ajaxContext.addRenderedArea(menuId);
      }
        }// for
        table.setRowKey(key);
    }
View Full Code Here

            body.encode(getTemplateContext(context, suggestionBox));
            // Replace rendered area ID from component to suggestion table
            suggestionBox.setRowIndex(-1);
            AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
            ajaxContext.removeRenderedArea(component.getClientId(context));
            ajaxContext.addRenderedArea(getContentId(context, component));
        }
    }

    /**
     * Gets component.
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.