1. have an af:query with a search results table. (It must be an af:query because it must expose the names search criteria of the underlying View Object.
2. the query panel must be disclosed by default.
3. After the user executes the search by pressing the search button, the query panel must be collapsed so that the search results table is visible in the available real estate.

The use case is due to there being only a limited amount of real estate.

so i tried binding the af:query to a backing bean and then using setDisclose(). However, setDisclose() is having no effect on the UI. Is there something else/different i need to do.