how to show specific column in tabel?

hello guys i am using bean item container to populate my table but dont want to show cloumn. like an example want to show item1 item2 and item3, for that i have tried the code given below but its not working

table.setVisibleColumns(new Object()[]{"item1","item2","item3"});


seems to me your code should work. Are you sure that the column names match the properties in your beans? Also, are you calling something that resets the visible columns after this line (like setContainerDatasource)?

Do you get any errors in the server log?