A link can be used for updates. As a developer it is our responsibility to 
ensure that such a link is only available to properly authenticated users.

Regards
Taha

Sent from my iPhone

On Jun 15, 2011, at 5:24 PM, "Thiago H. de Paula Figueiredo" 
<thiag...@gmail.com> wrote:

> On Wed, 15 Jun 2011 07:35:14 -0300, PXZ <pragprog...@gmail.com> wrote:
> 
>> hi, I'm new to Tapestry.
> 
> Welcome!
> 
>> I was trying out the Vote Youtube tutorial/video,
>> and looks like that ActionLink doesn't seem to be safe for search engines?
> 
>> The problem with this code is that the link changes server sided database
>> state via a simple link click (so it's a non-idempotent request). This means 
>> that search engines and bots will change the database when they crawl/index 
>> the website. The positive side of this code is that it is a safety fallback 
>> for non-javascript clients.
> 
> Your concern is correct, but IMHO this is something that should be handled by 
> the developer, not by the framework itself. You are responsible for checking 
> if the action requested can be done or not. You can check some logic in your 
> page or component class before doing the action itself.
> 
>> Is there a way to override the href attribute to "#" so that it is safe for 
>> search engines?
> 
> You can write a mixin or a MarkupRendererFilter for that.
> 
>> Or is their another Tapestry component that is better suited for this 
>> problem?
> 
> No. But I think EventLink should be used instead of ActionLink anyway. An 
> ActionLink is basically an EventLink which always trigger the 'action' event.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

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

Reply via email to