Hi Nick, Thanks. I tried :
@Component(id = "form") private Form _form; error still there, the related html part is: <t:form> ... something between here </t:form> Nick Westgate wrote: > > Or preferably see the actual TextField component docs on that page. > > The label used in the TextField is used for validation errors as well as > for the Label component, so it's only defined in one place. (= Good) > > As for the error, it's because no id is defined for the form. I can't test > the code right now, but the error might go away if you change to this: > > @Component(id = "form") > private Form _form; > > Cheers, > Nick. > > > > Ulrich Stärk wrote: >> >> 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] >> >> >> > > -- View this message in context: http://www.nabble.com/T5%3ASimple-form-submit-tf4310884.html#a12286021 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]