Comments on: Having the end-user hide and display columns in a JSF Table Component https://technology.amis.nl/2006/09/20/having-the-end-user-hide-and-display-columns-in-a-jsf-table-component/ Friends of Oracle and Java Fri, 27 Feb 2015 08:30:27 +0000 hourly 1 http://wordpress.org/?v=4.1.1 By: gilson https://technology.amis.nl/2006/09/20/having-the-end-user-hide-and-display-columns-in-a-jsf-table-component/#comment-3814 Mon, 03 Jan 2011 14:37:23 +0000 http://technology.amis.nl/blog/?p=1331#comment-3814 hello friend, I’m wanting to get selected values from my table, which is selectManyTabletype in my bean I have this method bancking

public void imprimirFacturas(ActionEvent event){
DCIteratorBinding iteratorFactura = (DCIteratorBinding) ADFUtils.findIterator(“FacturasView1Iterator”);
CoreTable tabla = (CoreTable)fctx.getViewRoot().findComponent(“form1:tableFact”);
Set selection = tabla.getSelectionState().getKeySet();
Iterator rowSetIter = selection.iterator();
while (rowSetIter.hasNext()) {
Key key = (Key)((List)rowSetIter.next()).get(0);
iteratorFactura.setCurrentRowWithKey(key.toStringFormat(true));
RowImpl prRow = (RowImpl) iteratorFactura.getCurrentRow();
FacturasView_rRowImpl f = (FacturasView_rRowImpl) prRow.getDataProvider();
System.out.println(“Seleccionamos: ” + f.getAttribute(FacturasView_rRowImpl.NUMFACT));
}
 
}
 
but in the first line inside the loop gives me java.lang.ClassCastException:java.lang.Integer, because I could give this exception, thanks for your help, Greetingsfrom Asuncion Paraguay

]]>
By: Makrand Pare https://technology.amis.nl/2006/09/20/having-the-end-user-hide-and-display-columns-in-a-jsf-table-component/#comment-3813 Fri, 10 Nov 2006 04:24:24 +0000 http://technology.amis.nl/blog/?p=1331#comment-3813 Hi,

Is this feature available for ADF/JClient also?

We also have a similar requirement for our ADF Swing based application.

Thanks and regards,
Makrand

]]>