Tapestry generates the content of the label as follows: the first
character of the id attribute of your input component is converted to
upper case and a space is inserted before every upper case character. If
you want to name the label differently just give the label attribute of
your input component some value (see AbstractField in
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html).
Uli
Angelo Chen schrieb:
oh, sorry,
<t:label for ="userName" /> this generates a label "User Name", where is
this come from, T5 just breaks the words? if I want to put some other text
into the label, how?
also trying out that login example:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html
@Component
private Form _form;
this will generat an error during starting:
[ERROR] Login Embedded component(s) form are defined within component class
org.example.hilo.pages.Login, but are not present in the component template
but it still works, why?
Ulrich Stärk wrote:
And what exactly is the question?
Angelo Chen schrieb:
Thanks nick, it's just what I need, one more question:
<t:label for ="userName" />
<input t:type="TextField" t:id = "userName"
t:validate="required"
size="30" />
Nick Westgate wrote:
There is a login example right here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html
Cheers,
Nick.
Angelo Chen wrote:
Hi,
I have finished the tutorial in the T5 site, it uses BeanFormEdit, can
somebody show me how to do the basic form edit/submit? like a textField
for
username, a button to submit, then how the java side capture the two
fields?
thanks.
A.C.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]