Re: context-dependent validator

2013-10-04 Thread Ilya Obshadko
That makes sense, thank you! On Sat, Oct 5, 2013 at 12:53 AM, Barry Books wrote: > It has this method > > *public* *void* render(Field field, String message, MarkupWriter writer, > FormSupport formSupport) { > > > } > > > which gives you the field, the form and a writer to the element. I use i

Re: [ANN] Tapestry 5.4 alternative datepicker

2013-10-04 Thread Barry Books
After much googling I think I've added iPhone type="date" support. I had to make a few assumptions to get it to work. 1. The format for type="date" support is -mm-dd. This is what the iPhone appears to use and seems a reasonable choice. 2. The best test I could find to indicate native support

Re: context-dependent validator

2013-10-04 Thread Barry Books
It has this method *public* *void* render(Field field, String message, MarkupWriter writer, FormSupport formSupport) { } which gives you the field, the form and a writer to the element. I use it to write data- attributes into the html markup and then the javascript can access them. I think yo

Re: context-dependent validator

2013-10-04 Thread Ilya Obshadko
On Fri, Oct 4, 2013 at 9:25 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 04 Oct 2013 03:51:59 -0300, Ilya Obshadko > wrote: > > Hello, >> > > Hi! > > > I have checked http://wiki.apache.org/**tapestry/** >> Tapestry5HowToAddValidators

Re: context-dependent validator

2013-10-04 Thread Ilya Obshadko
On Fri, Oct 4, 2013 at 8:17 PM, Barry Books wrote: > You might be able to do this with a translator instead of a validator. They > are really for converting data but you can also throw validation > exceptions, access the current field and add data to the html element. > Does translator really ha

Re: 5.4 List inside form is failing Could not find a coercion from type java.lang.String

2013-10-04 Thread Lance Java
The loop / ValueEncoder are used to serialize the values that were used to render the form. This is used to re-hydrate the initial form state when the POST is received. If you are happy to re-lookup the values (or the values are static) then it is fine to use formState="none". If you don't want to

Re: [5.4.22] Overriding core css - bug?

2013-10-04 Thread Geoff Callender
Added to JIRA as TAP5-2197 - Overriding core css - bug? On 02/10/2013, at 7:00 AM, Thiago H de Paula Figueiredo wrote: > On Tue, 01 Oct 2013 05:29:12 -0300, Geoff Callender > wrote: > >> I'm having trouble overriding the core css. I want to override the css of >> the bootstrap classes... >>

Re: Disable data-error-block

2013-10-04 Thread Thiago H de Paula Figueiredo
On Thu, 03 Oct 2013 17:06:52 -0300, George Christman wrote: Hello, is there a way to disable the data-error-block messages on validation without the use of css while still allowing the field to highlight red during field errors? Why not use CSS? -- Thiago H. de Paula Figueiredo --

Re: Tapestry transforms a class in the base package !

2013-10-04 Thread Thiago H de Paula Figueiredo
Muhammed, the base package is meant to be the place where you put superclasses of pages, components and mixins, so classes there will be transformed. It's one of the Tapestry controlled packages. If you want something not to be transformed, you have to put it somewhere. On Thu, 03 Oct 2013

Re: context-dependent validator

2013-10-04 Thread Thiago H de Paula Figueiredo
On Fri, 04 Oct 2013 03:51:59 -0300, Ilya Obshadko wrote: Hello, Hi! I have checked http://wiki.apache.org/tapestry/Tapestry5HowToAddValidators, it's pretty clear how to do that, but I don't have any idea how do I inject actual component data into validator when needed. Which data? Fr

Re: 5.4 List inside form is failing Could not find a coercion from type java.lang.String

2013-10-04 Thread Thiago H de Paula Figueiredo
On Fri, 04 Oct 2013 07:01:32 -0300, Lance Java wrote: On second thought, you are better to contribute a ValueEncoder to the ValueEncoderSource. In this case, the Loop doesn't contain anything to be edited, so adding a ValueEncoder here wouldn't be the best choice, because it solves a prob

Re: context-dependent validator

2013-10-04 Thread Barry Books
You might be able to do this with a translator instead of a validator. They are really for converting data but you can also throw validation exceptions, access the current field and add data to the html element. On Fri, Oct 4, 2013 at 1:51 AM, Ilya Obshadko wrote: > Hello, > > Is that possible t

Re: Eclipse Tapestry5 Plugin update

2013-10-04 Thread Dmitry Gusev
Version 1.2.5 is available for update now. This is a bug fix release: - Support QuickSwitch for Kepler SR1 there was a breaking change in Eclipse internal API I use, but plugin should be backward compatible - Plugin caused NPE in CMD+Hover functionality in *.class file editors with at

Re: 5.4 List inside form is failing Could not find a coercion from type java.lang.String

2013-10-04 Thread Lance Java
On second thought, you are better to contribute a ValueEncoder to the ValueEncoderSource.

Re: Tapestry transforms a class in the base package !

2013-10-04 Thread Muhammad Gelbana
Thank you. Obviously I had a wrong idea about the *base* class. *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Fri, Oct 4, 2013 at 10:50 AM, Lance Java wrote: > base, components, pages and mixins are special packages and anything in > these packages is transfo

Re: Tapestry transforms a class in the base package !

2013-10-04 Thread Lance Java
base, components, pages and mixins are special packages and anything in these packages is transformed and loaded by a different classloader. These packages are not suitable for utilities etc.

Re: 5.4 List inside form is failing Could not find a coercion from type java.lang.String

2013-10-04 Thread Lance Java
Tapestry does not provide a default coercion from String to Date. You can contribute a CoercionTuple to the TypeCoercer service. Docs here http://tapestry.apache.org/typecoercer-service.html

Re: Tapestry transforms a class in the base package !

2013-10-04 Thread Muhammad Gelbana
If I'm not clear enough, please say. In a simpler way. I include extra modules in my application using * -Dtapestry.modules* JVM parameter. Within one of those modules, the main module class is under the package *my.package* so my module's class fully qualified name is *my.package.mymodule*. Now