public static List<String> resolveRow(final String tableVar,final List<HtmlColumn> columns,final Object rowObject){
  try {
    final List<String> row=new ArrayList<>(columns.size());
    final StringListResponseWriter writer=new StringListResponseWriter(row);
    final FacesContext facesContext=createWrappedFacesContext();
    facesContext.setResponseWriter(writer);
    TableExportELResolver.activate(tableVar,rowObject);
    int columnCount=0;
    for (    HtmlColumn column : columns) {
      columnCount++;
      for (      UIComponent child : column.getChildren()) {
        try {
          writeContent(row,writer,facesContext,columnCount,child);
        }
 catch (        Exception e) {
          LOG.warning(String.format("Could not encode child %s with clientId %s",child.getClass(),child.getId()));
          try {
            writer.writeText(EXPORT_ERROR_TEXT,"");
          }
 catch (          IOException e1) {
            LOG.warning(String.format("Could not encode child %s with clientId %s",child.getClass(),child.getId()));
          }
        }
      }
      if (columnCount > row.size()) {
        row.add("");
      }
    }
    return row;
  }
  finally {
    deactivate();
  }
}

public static List < String > resolveRow ( final String tableVar , final List < HtmlColumn > columns , final Object rowObject ) { try { final List < String > row = new ArrayList < > ( columns . size ( ) ) ; final StringListResponseWriter writer = new StringListResponseWriter ( row ) ; final FacesContext facesContext = createWrappedFacesContext ( ) ; facesContext . setResponseWriter ( writer ) ; TableExportELResolver . activate ( tableVar , rowObject ) ; int columnCount = 0 ; for ( HtmlColumn column : columns ) { columnCount ++ ; for ( UIComponent child : column . getChildren ( ) ) { try { writeContent ( row , writer , facesContext , columnCount , child ) ; } catch ( Exception e ) { LOG . warning ( String . format ( "Could not encode child %s with clientId %s" , child . getClass ( ) , child . getId ( ) ) ) ; try { writer . writeText ( EXPORT_ERROR_TEXT , "" ) ; } catch ( IOException e1 ) { LOG . warning ( String . format ( "Could not encode child %s with clientId %s" , child . getClass ( ) , child . getId ( ) ) ) ; } } } if ( columnCount > row . size ( ) ) { row . add ( "" ) ; } } return row ; } finally { deactivate ( ) ; } }
resolves given row by using a wrapped faces context with a string list response writer . el will be solved .
