tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Scholze <tobias.scho...@gmail.com>
Subject Re: Looking for open source projects that uses the current version of Tapestry
Date Mon, 08 Jul 2019 18:16:46 GMT
And again, thank you Mailing List!
This solved my issue!

Great to meet such nice people! :)

Am Mo., 8. Juli 2019 um 20:09 Uhr schrieb Cezary Biernacki <
cezary.bi@gmail.com>:

> Try:
> <t:form>
>     <t:textfield value="channelName"/>
>     <t:submit/>
> </t:form>
>
> "t:id" specified the name of component. You could use it to inject the
> component in Java like this:
>
> tml:
> <t:textfield t:id="channelNameField" value="channelName"/>
>
> java:
> @InjectComponent
> private TextField channelNameField;
>
> but usually you don't need to inject individual fields, unless you want to
> add some custom validation errors.
>
> Best regards,
> Cezary Biernacki
>
>
>
> On Mon, Jul 8, 2019 at 8:00 PM Tobias Scholze <tobias.scholze@gmail.com>
> wrote:
>
>> Thanks for all your help!
>>
>> It seems that my issue is another one. I've to look.
>>
>> My template:
>> """
>>
>> <t:form>
>>     <t:textfield t:id="channelName"/>
>>     <t:submit/>
>> </t:form>
>>
>> """
>>
>> My class:
>>
>> """
>>
>> public class Index
>> {
>>   @Property
>>   private String channelName;
>> }
>>
>> """
>>
>> And all this results in an error:
>>
>> """
>> *Parameter(s) 'value' are required for
>> org.apache.tapestry5.corelib.components.TextField, but have not been
>> bound.*
>>
>> """
>>
>>
>> Am Mo., 8. Juli 2019 um 18:35 Uhr schrieb Chris Poulsen <
>> mailinglist@nesluop.dk>:
>>
>> > Hi,
>> >
>> > Using nnn="{<something>}" is probably not correct in any case, I think
>> > that what you think is an expression ends up as just a literal string.
>> >  One can expand properties (and other stuff) in templates using
>> > ${<something>}, but that expansion ends up being a string. For component
>> > bindings like the one in your example you should simply reference the
>> > property without {} or ${}.
>> >
>> > These things are described here:
>> > http://tapestry.apache.org/component-parameters.html (there is even a
>> > section called: "Don't use the ${...} syntax!" on that page ;) ).
>> >
>> > HTH!
>> >
>> > --
>> > Chris
>> >
>> > On Mon, Jul 8, 2019 at 4:22 PM Tobias Scholze <tobias.scholze@gmail.com
>> >
>> > wrote:
>> >
>> >> Hi folks,
>> >> thanks again for helping me out with my last issue yesterday.
>> >>
>> >> Now I recognized that Tapestry 5.4.4 has no Jumpstart Tutorial section
>> and
>> >> some parts has been changed like the "<t:textfield />" required now
a
>> >> value
>> >> property but "t:value={myProperty}" will not find that property in the
>> >> Java
>> >> class etc, pp.
>> >>
>> >> That's why I'm looking for some open source projects (which has public
>> >> accessable code) that uses Tapestry 5.4.4 use them as a "tutorial".
>> >>
>> >> I'm thankful for every tipp :)
>> >>
>> >> Have a great day,
>> >>
>> >> - Tobi
>> >>
>> >
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message