-
1. Re: I am newbi to richfaces
sarocks Jun 30, 2011 3:16 AM (in response to belal_othman)put datatable in rich:collapsiblePanel.
See the demo page: http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=collapsiblePanel&skin=blueSky
Or, may be you need to make rendered attrribute to false for the datatable on some action!
-
2. Re: I am newbi to richfaces
belal_othman Jun 30, 2011 3:42 AM (in response to sarocks)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
-
3. Re: I am newbi to richfaces
sarocks Jun 30, 2011 4:45 AM (in response to belal_othman)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!