Package org.richfaces.component

Examples of org.richfaces.component.UISortableControl


  }
 
  @Override
  protected void doDecode(FacesContext context, UIComponent component) {
   
    UISortableControl control = (UISortableControl) component;
    String clientId = control.getClientId(context);
    ExternalContext externalContext = context.getExternalContext();
    Map<String, String> parameterMap = externalContext.getRequestParameterMap();
    String string = parameterMap.get(clientId);
    if (string != null) {
      UIDataTable table = control.getTable();
     
      new SortEvent2(table, control.getSortExpression());
     
      AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
     
      //TODO: AjaxEvent?
      if (ajaxContext.isAjaxRequest()) {
View Full Code Here


 
  @Override
  protected void doEncodeEnd(ResponseWriter writer, FacesContext context,
      UIComponent component) throws IOException {
   
    UISortableControl control = (UISortableControl) component;
    Mode mode = control.getMode();
    if (mode == null) {
      mode = SERVER;
    }
    RendererCommand rendererCommand = commands[mode.ordinal()];
    if (rendererCommand != null) {
View Full Code Here

TOP

Related Classes of org.richfaces.component.UISortableControl

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.