Hi,
Thanks for the help.
the code is working with a bit of change
I am using tapestry 3.0.and am actually trying out something which i have
described below.but using this out there doesnt seems to help me much.
I want to read a .properties file. There are some key-value pairs in it I
want to display the key as a link. I want that when the link is clicked the
value read with it should be passed on to the a listener so that it can pass
it on to the next page where it can be used for processing.
The no. of key-value pairs keeps on changing.
Is it possible in tapestry. if so then how to go abt it.
Thanks & Regards
Binu
Andreas Andreou <[EMAIL PROTECTED]> wrote: Assuming tapestry 4,
WeirdComponent.html:
hi
Click here...
and WeirdComponent.jwc:
No need for a .java file here
Andreas Andreou wrote:
>In the renderComponent method you only output html - not tapesty
>template code.
>Even if you try it (be running the code you showed us), you'll see that
>the template
>you're outputting is NOT processed by tapestry.
>
>You can try defining a listener parameter for your component and
>creating an html template that uses it.
>
>binu pankajakshan wrote:
>
>
>
>>Hi all.
>>
>> Am trying to display some links which are generated in the
>> renderComponent(IMarkupWriter , IRequestCycle) method of a component. I
>> want to know if I want a listener to be associated with it in where should
>> i write the code for it
>>
>> say for eg. the below is a sample component defined
>> public class ListLink extends AbstractComponent
>> {
>> public void renderComponent( IMarkupWriter writer, IRequestCycle cycle )
>> {
>> writer.printRaw("hi");
>> writer.printRaw("click here ....");
>> }
>> }
>>
>> The component is being displayed as part of another page .
>> Can any one help me out where do i write the linkClicked () method.
>>
>> In general if we write such block to dynamically generate the component body
>> where do we write the listener methods.
>>
>> I Am new to tapestry so please tell me if i am doing it the right way and if
>> not how can i do it.
>>
>> Thanks & Regards
>> Binu
>>
>>
>>
>>---------------------------------
>>Yahoo! for Good - Make a difference this year.
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>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]
---------------------------------
Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays,
whatever.