On Wed, 24 Oct 2012 10:23:54 -0200, o1550762 <o1550...@rtrtr.com> wrote:

Hi Thiago! Could you please give me some directions or part of the code so that I can start it. I was thinking to implement javascript code something like if (element.find("div" === null)) return; but then I am not sure if it will render only non null values. So, if I choose to omit some field on purpose in creating an object Number, it should not be render when showing that object to the client.

After answering you, I noticed that one want to not render the corresponding <t:label>, right? If yes, just surround your <t:label> and <t:textfield> with a <t:if test="notNullNorZero(nameOfTheProperty)">

public boolean notNullNorZero(Number value) {
        return value == null || value.intValue() == 0;
}

--
Thiago H. de Paula Figueiredo

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

Reply via email to