tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
Subject Re: Beaneditor bug null property error
Date Tue, 03 Jan 2012 20:25:03 GMT
On Tue, 03 Jan 2012 16:33:59 -0200, felipexz <felipe.bit@gmail.com> wrote:

> Yes of course I agree. But when you have Annotated fields, it can be
> instatiated in other classes, can't be ?

Remember: instantiate a class = using the Java "new" operator.

> How I would know that it's not already been instatiated ? That's an
> annotated field.

Check if it's null:

if (municipio == null) {
	...
}

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Mime
View raw message