put datatable in rich:collapsiblePanel.
Or, may be you need to make rendered attrribute to false for the datatable on some action!
thank u very much but that what i means
let us say that i have 2 componentes datatable and compobox and I want dependeng on user action to view datatable and hide the compo or view the compo and hide the datatable
datatable and compobox could be any other components
Then the second option is better.
Every component has "rendered" attribute, bind it with a boolean variable, and on each action make it true or false according to your requirements.
And on that action (button/link) you need to have a "render"(in Richfaces3x it's "reRender") attribute where you specify Ids of the components to be rendered after the action method.
I hope you got it!