Examples of findComponent()


Examples of org.openfaces.component.filter.CompositeFilter.findComponent()

                applyButton.setValue("Apply");
            applyButton.getAttributes().put("onclick", new ScriptBuilder().O$(compositeFilter).dot().functionCall("apply").append(";return false;").toString());
            applyButton.encodeAll(context);

            String ajaxForApplyId = Components.generateIdWithSuffix(compositeFilter, "ajaxForApply");
            Ajax ajaxForApply = (Ajax) compositeFilter.findComponent(ajaxForApplyId);
            if (ajaxForApply == null) {
                ajaxForApply = new Ajax();
                ajaxForApply.setId(ajaxForApplyId);
                ajaxForApply.setExecute(new ArrayList<String>(Collections.singletonList(":" + compositeFilter.getClientId(context))));
                ajaxForApply.setRender(new ArrayList<String>(Collections.singletonList(_for)));
View Full Code Here

Examples of org.primefaces.touch.component.navbarcontrol.NavBarControl.findComponent()

      writer.writeAttribute("class", styleClass, null);
      if(viewId != null) {
        if(viewId.equals("home"))
          href = href + "home";
        else {
          UIComponent viewComponent = rightControl.findComponent(rightControl.getView());
          if(viewComponent == null)
            throw new FacesException("Cannot find component \"" + rightControl.getView() + "\" in view.");
         
          href = href + viewComponent.getClientId(facesContext)
        }
View Full Code Here

Examples of org.richfaces.component.AbstractExtendedDataTable.findComponent()

        FacesRequest facesRequest = startFacesRequest();
        FacesContext facesContext = FacesContext.getCurrentInstance();
        AbstractExtendedDataTable component = (AbstractExtendedDataTable) facesContext.getViewRoot().findComponent("table");
        ExtendedDataTableRenderer renderer = (ExtendedDataTableRenderer) FacesContext.getCurrentInstance().getRenderKit()
            .getRenderer(component.getFamily(), component.getRendererType());
        Map<String, Object> column1Attributes = component.findComponent("column1").getAttributes();
        Map<String, Object> column2Attributes = component.findComponent("column2").getAttributes();
        String clientId = component.getClientId(facesContext);
        assertNull(column1Attributes.get("filterValue"));
        assertEquals("filterValue2", column2Attributes.get("filterValue"));
        facesRequest.withParameter(clientId, clientId);
View Full Code Here

Examples of org.richfaces.component.UIScrollableDataTable.findComponent()

            so = Boolean.FALSE;
          }
        }
       
       
        UIComponent column = grid.findComponent(sortColumn);
       
        if(ColumnUtil.isSortable(column)){
     
          sorted = true;
          SortEvent sortEvent = new SortEvent(grid,sortColumn, grid.getRows(), sortDataIndex);
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.