lazy datatable div by zero

UI Components for JSF
Post Reply
patbuck
Posts: 15
Joined: 20 Aug 2010, 21:46

24 Oct 2010, 12:39

Hi

I forgot to set the "rows" attribute on a lazy datatable and got a div by zero exception. I thought it would have been nice if instead the value was set to a valid reasonable default and the setter had an exception throwing guard against zero.

I think it might be a good idea in general to provide "sensible defaults" where possible. Are there any good reasons (apart from taking valuable developer time that could perhaps be spent on more important things) for not doing this.

Cheers,
Patrik

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 67 guests