I was a little confused about that when I started with Tap5 too. The early docs sometimes suggested that the t: prefix was needed on all component parameters. Experience said (the current docs do too) that it's required only on the t:id. (And the t:type if you're using that syntax.) Perhaps it would've been clearer if Tapestry used a different name. Tap4 used 'jwcid'. (Never did know how to pronounce that.)
On Sun, Mar 4, 2012 at 8:04 AM, Gunnar Eketrapp <[email protected]>wrote: > Thanks! That was the problem! > > I am a little bit confused of when the t: prefix is needed. > > /Gunnar > > 2012/3/4 Bryan Lewis <[email protected]> > > > A quick guess at the easy typo... missing 't:' before 'id'. > > > > > > On Sun, Mar 4, 2012 at 7:51 AM, Gunnar Eketrapp > > <[email protected]>wrote: > > > > > I fail to inject a textarea .. > > > > > > Tml extract > > > <t:textarea id="messageField" name="message" size="60" > > > value="message" style="height: 50px;"/> > > > > > > > > > Java extract > > > > > > > > > Neither .. > > > @InjectComponent > > > private TextArea messageField; > > > > > > .. or .. > > > > > > @Component(id = "messageField") > > > private TextArea messageField; > > > > > > ... works. Gives: > > > > > > Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: > > Component > > > fee/Edit does not contain embedded component 'messageField'. > > > > > > > > > Must be some easy typo ... but beats me! > > > > > > TIA, Gunnar Eketrapp > > > > > > > > > -- > [Hem: 08-715 59 57, Mobil: 0708-52 62 90] > Allévägen 2A, 132 42 Saltsjö-Boo >
