Overriding input type = password for T5 Kaptcha component

2012-01-23 Thread Julien Martin
Hello, I noticed that the input type of the kaptcha field is *of type password*. Is there a way to make it of type input* type="text" instead*? Regards, Julien.

Re: Customizing T5 Kaptcha...

2012-01-23 Thread Julien Martin
After looking at the source code for the T5 Kaptcha implementation, I found a T5-friendlier way of configuring the Kaptcha. Just add the following lines to the services.AppModule class and play with the values and constants: * @Contribute(KaptchaProducer.class)* * public static void configureKaptc

Re: t:container vs t:content?

2012-01-23 Thread Julien Martin
Josh, Thanks. I'll take a look at it then. Regards, Julien. 2012/1/23 Josh Canfield > I believe the quickstart app has a layout that does exactly this with > the sidebar content. > > > On Mon, Jan 23, 2012 at 2:02 AM, Julien Martin wrote: > > Thanks Josh, > > > > What I am not sure about is whe

Re: "message:" binding with dynamic param in template

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 13:54:41 -0200, sub wrote: Hi! Hi! I'm trying to use a parameter with the message binding expression to get the translation from my properties file: messages.properties: color.red=rot color.blue=blau template: ${message:color.${color}} instead of "rot" I get

Re: t:container vs t:content?

2012-01-23 Thread Josh Canfield
I believe the quickstart app has a layout that does exactly this with the sidebar content. On Mon, Jan 23, 2012 at 2:02 AM, Julien Martin wrote: > Thanks Josh, > > What I am not sure about is whether I can have a template/layout specifying > several portions of code that will be replaced as foll

"message:" binding with dynamic param in template

2012-01-23 Thread sub
Hi! I'm trying to use a parameter with the message binding expression to get the translation from my properties file: messages.properties: color.red=rot color.blue=blau template: ${message:color.${color}} instead of "rot" I get "${message:color.red}" as the output. What's the correct s

Re: Use Translator

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 11:06:48 -0200, resign wrote: thanks, i get an Exception org.apache.tapestry5.ioc.util.UnknownValueException: Could not find a coercion from type java.lang.String to type ...Email Do i need an own TypeCoercer ? You'll need the translate parameter. -- Thiago H. de Paula F

Re: Customizing T5 Kaptcha...

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 15:40:40 -0200, Julien Martin wrote: Thiago, I meant are the web.xml init params the only way of specifying the config params for the Kaptcha? From reading the documentation, that seems to be correct. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 an

Re: Customizing T5 Kaptcha...

2012-01-23 Thread Julien Martin
Thiago, I meant are the web.xml init params the only way of specifying the config params for the Kaptcha? J. 2012/1/23 Julien Martin > I see. The config param you are pointing to are interesting. How then > would I specify them with T5 Kaptcha? Is it what > @SupportsInformalParameters

Re: Customizing T5 Kaptcha...

2012-01-23 Thread Julien Martin
I see. The config param you are pointing to are interesting. How then would I specify them with T5 Kaptcha? Is it what @SupportsInformalParameters are for? Regards, J. 2012/1/23 Thiago H. d

Re: Customizing T5 Kaptcha...

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 11:25:47 -0200, Julien Martin wrote: Thiago, Isn't the image a gif or a jpeg? Oops, I mesread your question. I'm sorry. Tapestry-Kaptcha is just a Tapestry wrapper around this package: http://code.google.com/p/kaptcha/, so you should check its documentation: http://co

Re: org.apache.tapestry5.ioc.internal.OperationException

2012-01-23 Thread Howard Lewis Ship
On Mon, Jan 23, 2012 at 4:32 AM, Thiago H. de Paula Figueiredo wrote: > On Sun, 22 Jan 2012 17:46:27 -0200, Bob Harner wrote: > >> The root exception appears to be: >> >> Caused by: java.lang.NullPointerException >>       at >> >> ae.sukar.client.http.pages.checkout.CheckoutOrderSummary.onActivat

Re: What is your tapestry project setup like (build tool/ide)

2012-01-23 Thread Nicolas Barrera
Hi, our setup is, Eclipse + m2e + jetty:run maven plugin configured as an ecilpse external tool with the resolve artifacts in workspace option enabled. we don't use any other plugins for tapestry,... tapestry projects are created through our own tapestry maven archetypes through maven command l

Re: Preselect radio option

2012-01-23 Thread Markus Grell
Ahhh, understood. *Wow*, that was easy and works like a charm! Thanks guys for your quick help, more questions to come ;) Markus > Set your "capacity" value before rendering. You have: > > > > > > This gets/sets the value of the radio group. > > > mrg > > > On Mon, Jan 23, 2012 at 8:06 AM, M

Re: Group of related t:checkboxes bound to a single variable?

2012-01-23 Thread Julien Martin
Thanks for the reply Thiago. I think I'll try and implement my own component. It is going to be a good and interesting exercise. [?] Regards, J. 2012/1/23 Thiago H. de Paula Figueiredo > On Mon, 23 Jan 2012 09:35:42 -0200, Julien Martin > wrote: > > What if I want to display the checkboxes in

Re: Customizing T5 Kaptcha...

2012-01-23 Thread Julien Martin
Thiago, Isn't the image a gif or a jpeg? J. 2012/1/23 Thiago H. de Paula Figueiredo > On Mon, 23 Jan 2012 09:49:07 -0200, Julien Martin > wrote: > > Hello, >> I would like to add a T5 Kaptcha to my website but I also need to >> customize >> it (background color, font color, size, readability).

Re: Preselect radio option

2012-01-23 Thread Michael Gentry
Hi Markus, Set your "capacity" value before rendering. You have: This gets/sets the value of the radio group. mrg On Mon, Jan 23, 2012 at 8:06 AM, Markus Grell wrote: >> On Mon, 23 Jan 2012 10:29:20 -0200, Markus Grell >> wrote: >> >> >>> Greetings! >>> >>> >>> It looks like as if I'm bli

Re: Use Translator

2012-01-23 Thread resign
thanks, i get an Exception org.apache.tapestry5.ioc.util.UnknownValueException: Could not find a coercion from type java.lang.String to type ...Email Do i need an own TypeCoercer ? greetings, resign -- View this message in context: http://tapestry.1045711.n5.nabble.com/Use-Translator-tp51656

Re: Preselect radio option

2012-01-23 Thread Markus Grell
> On Mon, 23 Jan 2012 10:29:20 -0200, Markus Grell > wrote: > > >> Greetings! >> >> >> It looks like as if I'm blind, but i just can't find it: >> >> >> How can I preselect a radio option in a radio group? >> > > Set the desired value to the edited property before rendering. This works > for eve

Re: Group of related t:checkboxes bound to a single variable?

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 09:35:42 -0200, Julien Martin wrote: What if I want to display the checkboxes in a html table? Do I need to implement my own t5 component? Short answer: You don't need HTML tables to show stuff in grids. Long answer: yes and no. Yes because you can use Tapestry DOM rewrit

Re: Customizing T5 Kaptcha...

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 09:49:07 -0200, Julien Martin wrote: Hello, I would like to add a T5 Kaptcha to my website but I also need to customize it (background color, font color, size, readability). Is this possible with t:kaptcha? If so how? Have you tried CSS? -- Thiago H. de Paula Figueired

Re: Preselect radio option

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 10:29:20 -0200, Markus Grell wrote: Greetings! It looks like as if I'm blind, but i just can't find it: How can I preselect a radio option in a radio group? Set the desired value to the edited property before rendering. This works for every form field component. -

Re: Use Translator

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 09:08:59 -0200, resign wrote: Wow very quick answer :-) This mailing list is known for quick answers. :) Snip of my AppModule public static void contributeTranslatorSource(MappedConfiguration configuration){ configuration.add(Email.cla

Re: org.apache.tapestry5.ioc.internal.OperationException

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Sun, 22 Jan 2012 17:46:27 -0200, Bob Harner wrote: The root exception appears to be: Caused by: java.lang.NullPointerException at ae.sukar.client.http.pages.checkout.CheckoutOrderSummary.onActivate(CheckoutOrderSummary.java:179) So, are you accessing a method on a sometimes-null obj

Preselect radio option

2012-01-23 Thread Markus Grell
Greetings! It looks like as if I'm blind, but i just can't find it: How can I preselect a radio option in a radio group? Markus - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Customizing T5 Kaptcha...

2012-01-23 Thread Julien Martin
Hello, I would like to add a T5 Kaptcha to my website but I also need to customize it (background color, font color, size, readability). Is this possible with t:kaptcha? If so how? Regards, J.

Re: Group of related t:checkboxes bound to a single variable?

2012-01-23 Thread Julien Martin
What if I want to display the checkboxes in a html table? Do I need to implement my own t5 component? Regards, Julien. 2012/1/23 Thiago H. de Paula Figueiredo > On Mon, 23 Jan 2012 08:59:02 -0200, Julien Martin > wrote: > > Hi Igor! >> > > Hi! > > > Yes I did try using the checklist component

Re: Use Translator

2012-01-23 Thread resign
Wow very quick answer :-) Snip of my AppModule public static void contributeTranslatorSource(MappedConfiguration configuration){ configuration.add(Email.class, new EmailOfContactTranslator()); } Snip of Translator -- public

Re: Group of related t:checkboxes bound to a single variable?

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 08:59:02 -0200, Julien Martin wrote: Hi Igor! Hi! Yes I did try using the checklist component but it does not offer fine enough control over how to render the checkboxes. I actually need to render the checkboxes as a n * n matrix. You probably can solve this just by

Re: Use Translator

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 08:32:05 -0200, resign wrote: hello, Hi! i try to use Translator to translate some values: Following was made: 1. class EmailOfContactTranslator was created and added to configuration in AppModule When i debug my app i see that toClient method is called and works

Re: Group of related t:checkboxes bound to a single variable?

2012-01-23 Thread Julien Martin
Hi Igor! Yes I did try using the checklist component but it does not offer fine enough control over how to render the checkboxes. I actually need to render the checkboxes as a n * n matrix. J. 2012/1/23 Igor Drobiazko > Did you try Checklist component? > > On Sun, Jan 22, 2012 at 11:26 PM, Julie

Re: adding an Open EntityManager In View filter to my T5 app

2012-01-23 Thread Julien Martin
thanks Giulio 2012/1/23 Giulio Micali > I use the hibernate version, but it should be the same. > Here my config(works with tapestry 5.1.0.5 and 5.2.6, i never tried the > newest version): > > > Hibernate Session In View Filter > > > org.springframework.orm.hibernate3.support.OpenS

Use Translator

2012-01-23 Thread resign
hello, i try to use Translator to translate some values: Following was made: 1. class EmailOfContactTranslator was created and added to configuration in AppModule When i debug my app i see that toClient method is called and works fine. But parseClient(Field field, String value, String messag

Re: t:container vs t:content?

2012-01-23 Thread Thiago H. de Paula Figueiredo
On Mon, 23 Jan 2012 08:02:54 -0200, Julien Martin wrote: What I am not sure about is whether I can have a template/layout specifying several portions of code that will be replaced as follows (similarly to what you get with facelets templates). You can, but you'll need block parameters for t

Re: Group of related t:checkboxes bound to a single variable?

2012-01-23 Thread Igor Drobiazko
Did you try Checklist component? On Sun, Jan 22, 2012 at 11:26 PM, Julien Martin wrote: > Hello, > > I need to have a number of t:checkbox bound to an List of one of my domain > classes as follows: > > @Property > @Persist > List theList; > > I would then implement a T5 valueEncoder for MyDomain

Re: adding an Open EntityManager In View filter to my T5 app

2012-01-23 Thread Giulio Micali
I use the hibernate version, but it should be the same. Here my config(works with tapestry 5.1.0.5 and 5.2.6, i never tried the newest version): Hibernate Session In View Filter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter

Re: t:container vs t:content?

2012-01-23 Thread Julien Martin
Thanks Josh, What I am not sure about is whether I can have a template/layout specifying several portions of code that will be replaced as follows (similarly to what you get with facelets templates). from layout.tml: *http://tapestry.apache.org/schema/tapestry_5_3.xsd";>* ** ** *Welcome to my web

adding an Open EntityManager In View filter to my T5 app

2012-01-23 Thread Julien Martin
Hello, I would like to add a Spring open EntityManager in view filter to my T5 application. I am not sure about the mapping url pattern. Is the code below correct or will it conflict with TapestrySpringFilter? ** *oemInViewFilter org.springframework.orm.jpa.support.OpenEntityMa