Re: kaptcha + tapestry5

2010-01-28 Thread Geoff Callender
Alternatively, use Chenillekit's Kaptcha component.  It works for me.

myPage.tml:



myPage.java:

import org.chenillekit.tapestry.core.components.Kaptcha;
...

@Property
private boolean _kaptchaCorrect;
...
@Component(id = "kaptcha")
private Kaptcha _kaptchaField;
...
void onValidateForm() {
...
if (!_kaptchaCorrect) {
_form.recordError(_kaptchaField, 
getMessages().format("Kaptcha_incorrect"));
return;
}
...
}

app.properties:

Kaptcha_incorrect=The code has not been entered correctly. Please try 
again.

See 
http://chenillekit.codehaus.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/Kaptcha.html
 .

If you're using Ant, then here's how to get the jars, where ${maven.repo.root} 
is typically http://repo1.maven.org/maven2:





Cheers,

Geoff
http://jumpstart.doublenegative.com.au:8080/jumpstart/


On 28/01/2010, at 3:39 AM, Rafa88 wrote:

> 
> 
> 
> Thiago H. de Paula Figueiredo wrote:
>> 
>> On Wed, 27 Jan 2010 14:14:22 -0200, Rafa88  wrote:
>> 
>>> HEllo,
>> 
>> Hi!
>> 
>>> I´m trying to insert kaptcha with tapestry with rcaptcha.net but I don´t
>>> know how to do... Some help?
>> 
>> Take a look at  
>> http://tapestryjava.blogspot.com/2009/12/tapestry-and-kaptcha.html.
>> 
>> 
>> Ok, thanks, I´m trying this example but I don´t understand because it
>> doesn´t work.
>> I have include the jar file, I have created the two classes but it doesn´t
>> work when I call to
>> 
>> 
>>  
>>  
>> 
>> in my file.tml, how the file.java would be??
>> 
>> Thanks
>> 
>> 
>> 
>> -- 
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
>> and instructor
>> Owner, software architect and developer, 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
>> 
>> 
>> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/kaptcha-%2B-tapestry5-tp27342207p27342668.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 



Re: kaptcha + tapestry5

2010-01-27 Thread Rafa88



Thiago H. de Paula Figueiredo wrote:
> 
> On Wed, 27 Jan 2010 14:14:22 -0200, Rafa88  wrote:
> 
>> HEllo,
> 
> Hi!
> 
>> I´m trying to insert kaptcha with tapestry with rcaptcha.net but I don´t
>> know how to do... Some help?
> 
> Take a look at  
> http://tapestryjava.blogspot.com/2009/12/tapestry-and-kaptcha.html.
> 
> 
> Ok, thanks, I´m trying this example but I don´t understand because it
> doesn´t work.
> I have include the jar file, I have created the two classes but it doesn´t
> work when I call to
> 
>  
>   
>   
> 
> in my file.tml, how the file.java would be??
> 
> Thanks
> 
> 
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
> and instructor
> Owner, software architect and developer, 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
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/kaptcha-%2B-tapestry5-tp27342207p27342668.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: kaptcha + tapestry5

2010-01-27 Thread Thiago H. de Paula Figueiredo

On Wed, 27 Jan 2010 14:14:22 -0200, Rafa88  wrote:


HEllo,


Hi!


I´m trying to insert kaptcha with tapestry with rcaptcha.net but I don´t
know how to do... Some help?


Take a look at  
http://tapestryjava.blogspot.com/2009/12/tapestry-and-kaptcha.html.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, 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



kaptcha + tapestry5

2010-01-27 Thread Rafa88

HEllo,
I´m trying to insert kaptcha with tapestry with rcaptcha.net but I don´t
know how to do...
Some help?

Thanks
-- 
View this message in context: 
http://old.nabble.com/kaptcha-%2B-tapestry5-tp27342207p27342207.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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