Package org.richfaces.component

Examples of org.richfaces.component.UISuggestionBox$SubmittedValue


    }
   
    public void insertNothingLabel(final FacesContext context,
                                    final UIComponent component) throws IOException {
      ResponseWriter writer = context.getResponseWriter();
      UISuggestionBox suggestionBox = (UISuggestionBox)component;
      final String startHtml =
        "<tr id=\"" + suggestionBox.getClientId(context) + "NothingLabel\" class=\"dr-sb-int rich-sb-int " + suggestionBox.getRowClasses() +
        "\" style=\"display: none;\">" +
        "<td nowrap=\"nowrap\" class=\"dr-sb-cell-padding rich-sb-cell-padding\" style=\"" + this.cellPadding(context, component) + "\">";
      final String endHtml = "</td></tr>";
     
      UIComponent nothingLabelFacet = component.getFacet("nothingLabel");
      if(null != nothingLabelFacet && nothingLabelFacet.isRendered()) {
        writer.write(startHtml);
        renderChild(context, nothingLabelFacet);
        writer.write(endHtml);
      }
      else if (null != suggestionBox.getNothingLabel() &&
          !"".equals(suggestionBox.getNothingLabel())) {
        writer.write(startHtml);
        writer.write(suggestionBox.getNothingLabel());
        writer.write(endHtml);
      }
     
    }
View Full Code Here


                        this.putParameter("hasColumnFooter", Boolean.TRUE);
                    }
                }
            }
            // fill rows counters
            UISuggestionBox box = (UISuggestionBox) component;
            this.first = box.getFirst();
            this.rows = box.getRows();
            this.rowCount = box.getRowCount();
            // return all records; CH-1330
            if (rows <= 0 || true) {
                rows = rowCount - first;
            }
            last = first + rows;
            if (last > rowCount) {
                last = rowCount;
            }
            current = first;
            // rows classes
            entryClass = box.getEntryClass();
            String rowClasses = box.getRowClasses();
            if (null != rowClasses && rowClasses.length() > 0) {
                this.rowClasses = rowClasses.split("\\s+");
            }

        }
View Full Code Here

TOP

Related Classes of org.richfaces.component.UISuggestionBox$SubmittedValue

Copyright © 2018 www.massapicom. 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.