You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by kk4Nabble <ka...@gmail.com> on 2009/01/07 06:38:42 UTC

Problem with direct link

Hi all,
I am using tapestry 4.1.1



Click here 
In the above code , mymethod which is a listener method is called when u
click on that link which says "click here" and it takes to new page..
In the method mymethod i have created new object ,also this method calls
more methods.

But when u refresh this page..this mymethod is again called..

Is nt it that it should be called only onclick of that direct link..
Why is it calling the listener method each time the page refreshed?

Is it a bug or expected behaviour of directlink?

 
-- 
View this message in context: http://www.nabble.com/Problem-with-direct-link-tp21325266p21325266.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Problem with direct link

Posted by kk4Nabble <ka...@gmail.com>.
Ya .. Its working fine now..
Thanks a lot.
:-)


Andreas Andreou-4 wrote:
> 
> See http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html
> 
> You need to return an ILink from your listener to cause a change to
> the url - otherwise,
> the url describes a directr link and triggeres the method everytime you
> refresh
> 
> On Wed, Jan 7, 2009 at 7:38 AM, kk4Nabble <ka...@gmail.com> wrote:
>>
>> Hi all,
>> I am using tapestry 4.1.1
>>
>>
>>
>> Click here
>> In the above code , mymethod which is a listener method is called when u
>> click on that link which says "click here" and it takes to new page..
>> In the method mymethod i have created new object ,also this method calls
>> more methods.
>>
>> But when u refresh this page..this mymethod is again called..
>>
>> Is nt it that it should be called only onclick of that direct link..
>> Why is it calling the listener method each time the page refreshed?
>>
>> Is it a bug or expected behaviour of directlink?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-direct-link-tp21325266p21325266.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 
> 
> -- 
> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-direct-link-tp21325266p21331008.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Problem with direct link

Posted by Andreas Andreou <an...@di.uoa.gr>.
See http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html

You need to return an ILink from your listener to cause a change to
the url - otherwise,
the url describes a directr link and triggeres the method everytime you refresh

On Wed, Jan 7, 2009 at 7:38 AM, kk4Nabble <ka...@gmail.com> wrote:
>
> Hi all,
> I am using tapestry 4.1.1
>
>
>
> Click here
> In the above code , mymethod which is a listener method is called when u
> click on that link which says "click here" and it takes to new page..
> In the method mymethod i have created new object ,also this method calls
> more methods.
>
> But when u refresh this page..this mymethod is again called..
>
> Is nt it that it should be called only onclick of that direct link..
> Why is it calling the listener method each time the page refreshed?
>
> Is it a bug or expected behaviour of directlink?
>
>
> --
> View this message in context: http://www.nabble.com/Problem-with-direct-link-tp21325266p21325266.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org