Hi!
I have a Table component (actually I have TableRows, TableView, and all
those other components that form a Table) and one of the columns in
TableView is declared like this: columnName:object1.object2.property.

As you can see this can throw NullPointerException if either object1 or
object2 are null.

To solve this problem, I have to alternatives:
a) Use a Block component called columnNameColumnValue an inside the block an
Insert component with a value asociated with the page's class that handles
nulls
b) Declare the column like: columnName:object1.propertyObject2. (that it a
getPropertyObject2 method in object1 class that handles nulls).

Is there a better way to solve this?? I would love something like a prefix
that allows me to specify that whenever a NPE is found, a blank space is
rendered. Is something like that possible?

I'm ussing Tapestry 4.1.1.

Btw, great work with Tap4.1.2, congratulations!

Thanks!

Reply via email to