Override the isVisible method of your component for which you do not want to
render.

@Override
boolean isVisible() {
       return dp.size()!=0;
}

On Fri, May 16, 2008 at 12:44 PM, nitinkc <[EMAIL PROTECTED]> wrote:

>
> Currently the DataGrid outputs a datatable with column headers and a
> message
> 'No Records Found' if the datalist is empty. Does anyone know if it is
> possible to render the datatable only if the list is not empty? Setting the
> visibility to 'false' is not an option as the markup is not rendered in
> this
> case and I need to be able to rerender the datatable if records are found
> after an Ajax submit...
> --
> View this message in context:
> http://www.nabble.com/Not-rendering-DataGrid-if-empty-tp17279244p17279244.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://twitter.com/ryangravener

Reply via email to