Em Wed, 18 Feb 2009 13:58:46 -0300, Luther Baker <lutherba...@gmail.com> escreveu:

Ah ... so follow me here:

A) For an Entity with simple String properties, etc, both the t:BeanEditForm and the t:BeanDisplay render:

* LABEL: {component-specific-value}
LABEL: {component-specific-value}

Take a look at the generated HTML. BeanEditor and BeanEditForm generate label tags through the Label component.

B) If I add a t:Parameter called *whazoo* to either BeanDisplay or
BeanEditForm I have explicitly given the LABEL and VALUE. Right?

BeanEditForm and BeanEditor, not BeanDispay.

And it does just this with the BeanDisplay (although it uses the dd family of tags).

That's the difference.

I'm not sure why you think it would be hard to generate the label.

The Label component has a required parameter, for, that receives a component.

Are you referring here to a different label than the one we explicitly
provide in the t:Parameter name?

When I mean label, I'm talking about the HTML tag.

What I'm suggesting is that it *could* display a label as well as it is
explicitly provided.

The label tag must be used paired with a form field. It shouldn't be used as the label of a piece of text.

Technically, BeanDisplay uses the <dd>
family of tags whereas BeanEditForm uses <div>s and <label>s so it seems to me that they were NOT written at the same time or with each other in mind .... and I guess you *could* say the components are completely unrelated and have no cause or bearing to look like one another.
But they *do* look like each other ... and they *are* related.

They can look the same, but their completely different, having different parameters and semantics. That's the whole point.

Hope you don't think I'm being argumentative. It is sometimes difficult to succinctly make a point via emails.

It's quite hard, actually.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to