/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getExternalContext().getRequestMap().remove(createKey(table)); }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }
/** * Removes the cached TableMetaInfo from the specified component. * @param context the <code>FacesContext</code> for the current request * @param table the table from which the TableMetaInfo will be removed */ protected void clearMetaInfo(FacesContext context, UIComponent table) { context.getAttributes().remove(createKey(table)); }
/** * Returns a <code>TableMetaInfo</code> object containing details such * as row and column classes, columns, and a mechanism for scrolling through * the row/column classes. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @return the <code>TableMetaInfo</code> for provided table */ protected TableRenderer.TableMetaInfo getMetaInfo(FacesContext context, UIComponent table) { String key = createKey(table); Map<Object,Object> attributes = context.getAttributes(); TableRenderer.TableMetaInfo info = (TableRenderer.TableMetaInfo) attributes.get(key); if (info == null) { info = new TableRenderer.TableMetaInfo(table); attributes.put(key, info); } return info; }
/** * Returns a <code>TableMetaInfo</code> object containing details such * as row and column classes, columns, and a mechanism for scrolling through * the row/column classes. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @return the <code>TableMetaInfo</code> for provided table */ protected TableRenderer.TableMetaInfo getMetaInfo(FacesContext context, UIComponent table) { String key = createKey(table); Map<Object,Object> attributes = context.getAttributes(); TableRenderer.TableMetaInfo info = (TableRenderer.TableMetaInfo) attributes.get(key); if (info == null) { info = new TableRenderer.TableMetaInfo(table); attributes.put(key, info); } return info; }
/** * Returns a <code>TableMetaInfo</code> object containing details such * as row and column classes, columns, and a mechanism for scrolling through * the row/column classes. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @return the <code>TableMetaInfo</code> for provided table */ protected TableRenderer.TableMetaInfo getMetaInfo(FacesContext context, UIComponent table) { String key = createKey(table); Map<Object,Object> attributes = context.getAttributes(); TableRenderer.TableMetaInfo info = (TableRenderer.TableMetaInfo) attributes.get(key); if (info == null) { info = new TableRenderer.TableMetaInfo(table); attributes.put(key, info); } return info; }
/** * Returns a <code>TableMetaInfo</code> object containing details such * as row and column classes, columns, and a mechanism for scrolling through * the row/column classes. * * Implementation Note: Store the TableMetaInfo in the request instead * of the component's attribute map as TableMetaInfo isn't serializable. * * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @return the <code>TableMetaInfo</code> for provided table */ protected TableRenderer.TableMetaInfo getMetaInfo(FacesContext context, UIComponent table) { String key = createKey(table); Map<String,Object> reqMap = context.getExternalContext().getRequestMap(); TableRenderer.TableMetaInfo info = (TableRenderer.TableMetaInfo) reqMap.get(key); if (info == null) { info = new TableRenderer.TableMetaInfo(table); reqMap.put(key, info); } return info; }
/** * Returns a <code>TableMetaInfo</code> object containing details such * as row and column classes, columns, and a mechanism for scrolling through * the row/column classes. * @param context the <code>FacesContext</code> for the current request * @param table the table that's being rendered * @return the <code>TableMetaInfo</code> for provided table */ protected TableRenderer.TableMetaInfo getMetaInfo(FacesContext context, UIComponent table) { String key = createKey(table); Map<Object,Object> attributes = context.getAttributes(); TableRenderer.TableMetaInfo info = (TableRenderer.TableMetaInfo) attributes.get(key); if (info == null) { info = new TableRenderer.TableMetaInfo(table); attributes.put(key, info); } return info; }