This content has been marked as final.
Show 2 replies
-
1. Re: Hide rich:dataTable
nbelaevski May 30, 2010 5:27 PM (in response to yanivah)"RichFaces Development" subspace is not for general usage questions: http://community.jboss.org/en/richfaces/dev, moving the thread to correct space.
-
2. Re: Hide rich:dataTable
ufonaut May 31, 2010 8:15 PM (in response to yanivah)Have something like:
{code:xml}
<a4j:outputPanel id="resultsPanel">
<rich:extendedDataTable id="resultsTable" rendered="#{not empty myBean.resultsList}"
....
</rich:extendedDataTable>
</a4j:outputPanel>
<a4j:commandButton action="#{myBean.doSearch}" reRender="resultsPanel"/>
{code}There's a golden rule in RichFaces - If a component is conditionally rendered (ie. has a rendered= tag), then you should NEVER have it as a target in a reRendered= tag. That's why the table is wrapped in the outputPanel above.