Write a wrapper component around BeanDisplay and name it something like
BeanOptionalDisplay. That way, you only write the 'if (obj != null)' bit
one time.

- P

On Wed, Oct 31, 2012 at 10:39 AM, arterzatij <arterza...@gmail.com> wrote:

> And how to avoid NPE on beandisplay if the obj is null?
>
> I dont want to test the null value every time that I need to verify the
> obj,
> on my app there are data that is not required so I want to display
> something
> like "Data no available" like grid does when there is no rows...
>
> Suggestions?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/beandisplay-hide-label-if-value-is-null-tp5714585p5717465.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to