You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rafa88 <ge...@hotmail.com> on 2010/01/27 17:14:22 UTC
kaptcha + tapestry5
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: kaptcha + tapestry5
Posted by Geoff Callender <ge...@gmail.com>.
Alternatively, use Chenillekit's Kaptcha component. It works for me.
myPage.tml:
<t:chenillekit.Kaptcha t:id="kaptcha" t:value="kaptchaCorrect"/>
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:
<get dest="${lib.compile.dir}/chenillekit-core-1.2.0.jar" usetimestamp="true" src="${maven.repo.root}/org/chenillekit/chenillekit-core/1.2.0/chenillekit-core-1.2.0.jar" />
<get dest="${lib.compile.dir}/chenillekit-image-1.2.0.jar" usetimestamp="true" src="${maven.repo.root}/org/chenillekit/chenillekit-image/1.2.0/chenillekit-image-1.2.0.jar" />
<get dest="${lib.compile.dir}/chenillekit-tapestry-1.2.0.jar" usetimestamp="true" src="${maven.repo.root}/org/chenillekit/chenillekit-tapestry/1.2.0/chenillekit-tapestry-1.2.0.jar" />
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 <ge...@hotmail.com> 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
>>
>> <t:kaptchaimage t:id="kaptcha"/>
>> <br/>
>> <t:kaptchafield image="kaptcha"/>
>>
>> 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-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
Re: kaptcha + tapestry5
Posted by Rafa88 <ge...@hotmail.com>.
Thiago H. de Paula Figueiredo wrote:
>
> On Wed, 27 Jan 2010 14:14:22 -0200, Rafa88 <ge...@hotmail.com> 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
>
> <t:kaptchaimage t:id="kaptcha"/>
> <br/>
> <t:kaptchafield image="kaptcha"/>
>
> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: kaptcha + tapestry5
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, 27 Jan 2010 14:14:22 -0200, Rafa88 <ge...@hotmail.com> 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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org