You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tony Nelson <tn...@starpoint.com> on 2007/05/10 18:57:07 UTC

I'm missing something obvious

I have a simple form that includes this:

 <input jwcid="tradeId@TextField" value="ognl:tradeId"
              validators="validators:required,min=0,max=1000000"
              translator="translator:number,pattern=0"
              displayName="Trade ID"
              />


And no matter what legal numeric value I enter, I always get a 
validation error.

Where is my typo?  Because I certainly can't find it.

I'm using yesterdays 4.1.2 snapshot.

      <dependency>
          <groupId>tapestry</groupId>
          <artifactId>tapestry-annotations</artifactId>
          <version>4.1.2-20070509.030104-65</version>
          <properties>
            <war.bundle>true</war.bundle>
          </properties>
      </dependency>
      <dependency>
          <groupId>tapestry</groupId>
          <artifactId>tapestry-contrib</artifactId>
          <version>4.1.2-20070509.030104-68</version>
          <properties>
            <war.bundle>true</war.bundle>
          </properties>
      </dependency>
      <dependency>
          <groupId>tapestry</groupId>
          <artifactId>tapestry-framework</artifactId>
          <version>4.1.2-20070509.030104-76</version>
          <properties>
            <war.bundle>true</war.bundle>
          </properties>
      </dependency>

Thanks in advance for any help.

Tony



Re: I'm missing something obvious

Posted by Tony Nelson <tn...@starpoint.com>.
Client side.. the nifty new dojo popup.

If I disable client side validation it works fine, and I will do that 
for now.. but I'd really rather not.

Thanks again
Tony

Andreas Andreou wrote:
> well... the code is correct... i even tried it myself!
>
> So, what kind of validation error you get?
> Client side? or server side? What happens if you disable javascript?
>
>
> On 5/11/07, Tony Nelson <tn...@starpoint.com> wrote:
>>
>> Sorry, I should have supplied that in my original e-mail.
>>
>>     public abstract Integer getTradeId();
>>
>>
>> Thanks again
>> Tony
>>
>> Andreas Andreou wrote:
>> > What's the type of tradeId ?
>> >
>> > On 5/10/07, Tony Nelson <tn...@starpoint.com> wrote:
>> >>
>> >> I have a simple form that includes this:
>> >>
>> >> <input jwcid="tradeId@TextField" value="ognl:tradeId"
>> >>               validators="validators:required,min=0,max=1000000"
>> >>               translator="translator:number,pattern=0"
>> >>               displayName="Trade ID"
>> >>               />
>> >>
>> >>
>> >> And no matter what legal numeric value I enter, I always get a
>> >> validation error.
>> >>
>> >> Where is my typo?  Because I certainly can't find it.
>> >>
>> >> I'm using yesterdays 4.1.2 snapshot.
>> >>
>> >>       <dependency>
>> >>           <groupId>tapestry</groupId>
>> >>           <artifactId>tapestry-annotations</artifactId>
>> >>           <version>4.1.2-20070509.030104-65</version>
>> >>           <properties>
>> >>             <war.bundle>true</war.bundle>
>> >>           </properties>
>> >>       </dependency>
>> >>       <dependency>
>> >>           <groupId>tapestry</groupId>
>> >>           <artifactId>tapestry-contrib</artifactId>
>> >>           <version>4.1.2-20070509.030104-68</version>
>> >>           <properties>
>> >>             <war.bundle>true</war.bundle>
>> >>           </properties>
>> >>       </dependency>
>> >>       <dependency>
>> >>           <groupId>tapestry</groupId>
>> >>           <artifactId>tapestry-framework</artifactId>
>> >>           <version>4.1.2-20070509.030104-76</version>
>> >>           <properties>
>> >>             <war.bundle>true</war.bundle>
>> >>           </properties>
>> >>       </dependency>
>> >>
>> >> Thanks in advance for any help.
>> >>
>> >> Tony
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>
>> >
>> >
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
>



Re: I'm missing something obvious

Posted by Andreas Andreou <an...@di.uoa.gr>.
well... the code is correct... i even tried it myself!

So, what kind of validation error you get?
Client side? or server side? What happens if you disable javascript?


On 5/11/07, Tony Nelson <tn...@starpoint.com> wrote:
>
> Sorry, I should have supplied that in my original e-mail.
>
>     public abstract Integer getTradeId();
>
>
> Thanks again
> Tony
>
> Andreas Andreou wrote:
> > What's the type of tradeId ?
> >
> > On 5/10/07, Tony Nelson <tn...@starpoint.com> wrote:
> >>
> >> I have a simple form that includes this:
> >>
> >> <input jwcid="tradeId@TextField" value="ognl:tradeId"
> >>               validators="validators:required,min=0,max=1000000"
> >>               translator="translator:number,pattern=0"
> >>               displayName="Trade ID"
> >>               />
> >>
> >>
> >> And no matter what legal numeric value I enter, I always get a
> >> validation error.
> >>
> >> Where is my typo?  Because I certainly can't find it.
> >>
> >> I'm using yesterdays 4.1.2 snapshot.
> >>
> >>       <dependency>
> >>           <groupId>tapestry</groupId>
> >>           <artifactId>tapestry-annotations</artifactId>
> >>           <version>4.1.2-20070509.030104-65</version>
> >>           <properties>
> >>             <war.bundle>true</war.bundle>
> >>           </properties>
> >>       </dependency>
> >>       <dependency>
> >>           <groupId>tapestry</groupId>
> >>           <artifactId>tapestry-contrib</artifactId>
> >>           <version>4.1.2-20070509.030104-68</version>
> >>           <properties>
> >>             <war.bundle>true</war.bundle>
> >>           </properties>
> >>       </dependency>
> >>       <dependency>
> >>           <groupId>tapestry</groupId>
> >>           <artifactId>tapestry-framework</artifactId>
> >>           <version>4.1.2-20070509.030104-76</version>
> >>           <properties>
> >>             <war.bundle>true</war.bundle>
> >>           </properties>
> >>       </dependency>
> >>
> >> Thanks in advance for any help.
> >>
> >> Tony
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

Re: I'm missing something obvious

Posted by Tony Nelson <tn...@starpoint.com>.
Sorry, I should have supplied that in my original e-mail.

    public abstract Integer getTradeId();


Thanks again
Tony

Andreas Andreou wrote:
> What's the type of tradeId ?
>
> On 5/10/07, Tony Nelson <tn...@starpoint.com> wrote:
>>
>> I have a simple form that includes this:
>>
>> <input jwcid="tradeId@TextField" value="ognl:tradeId"
>>               validators="validators:required,min=0,max=1000000"
>>               translator="translator:number,pattern=0"
>>               displayName="Trade ID"
>>               />
>>
>>
>> And no matter what legal numeric value I enter, I always get a
>> validation error.
>>
>> Where is my typo?  Because I certainly can't find it.
>>
>> I'm using yesterdays 4.1.2 snapshot.
>>
>>       <dependency>
>>           <groupId>tapestry</groupId>
>>           <artifactId>tapestry-annotations</artifactId>
>>           <version>4.1.2-20070509.030104-65</version>
>>           <properties>
>>             <war.bundle>true</war.bundle>
>>           </properties>
>>       </dependency>
>>       <dependency>
>>           <groupId>tapestry</groupId>
>>           <artifactId>tapestry-contrib</artifactId>
>>           <version>4.1.2-20070509.030104-68</version>
>>           <properties>
>>             <war.bundle>true</war.bundle>
>>           </properties>
>>       </dependency>
>>       <dependency>
>>           <groupId>tapestry</groupId>
>>           <artifactId>tapestry-framework</artifactId>
>>           <version>4.1.2-20070509.030104-76</version>
>>           <properties>
>>             <war.bundle>true</war.bundle>
>>           </properties>
>>       </dependency>
>>
>> Thanks in advance for any help.
>>
>> Tony
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
>



Re: I'm missing something obvious

Posted by Andreas Andreou <an...@di.uoa.gr>.
What's the type of tradeId ?

On 5/10/07, Tony Nelson <tn...@starpoint.com> wrote:
>
> I have a simple form that includes this:
>
> <input jwcid="tradeId@TextField" value="ognl:tradeId"
>               validators="validators:required,min=0,max=1000000"
>               translator="translator:number,pattern=0"
>               displayName="Trade ID"
>               />
>
>
> And no matter what legal numeric value I enter, I always get a
> validation error.
>
> Where is my typo?  Because I certainly can't find it.
>
> I'm using yesterdays 4.1.2 snapshot.
>
>       <dependency>
>           <groupId>tapestry</groupId>
>           <artifactId>tapestry-annotations</artifactId>
>           <version>4.1.2-20070509.030104-65</version>
>           <properties>
>             <war.bundle>true</war.bundle>
>           </properties>
>       </dependency>
>       <dependency>
>           <groupId>tapestry</groupId>
>           <artifactId>tapestry-contrib</artifactId>
>           <version>4.1.2-20070509.030104-68</version>
>           <properties>
>             <war.bundle>true</war.bundle>
>           </properties>
>       </dependency>
>       <dependency>
>           <groupId>tapestry</groupId>
>           <artifactId>tapestry-framework</artifactId>
>           <version>4.1.2-20070509.030104-76</version>
>           <properties>
>             <war.bundle>true</war.bundle>
>           </properties>
>       </dependency>
>
> Thanks in advance for any help.
>
> Tony
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

Re: I'm missing something obvious

Posted by Jesse Kuhnert <jk...@gmail.com>.
I hadn't noticed this before.  Yes a fix will go out tonight.

On 5/11/07, Tony Nelson <tn...@starpoint.com> wrote:
>
> Does that mean there is a fix floating around somewhere?
>
> Thanks
> Tony
>
> Marcus.Schulte@bmw.ch wrote:
> > This is a regression, the JIRA issue is
> >
> > https://issues.apache.org/jira/browse/TAPESTRY-1071
> >
> >
> >> -----Original Message-----
> >> From: Tony Nelson [mailto:tnelson@starpoint.com]
> >> Sent: Thursday, May 10, 2007 6:57 PM
> >> To: Tapestry users
> >> Subject: I'm missing something obvious
> >>
> >> I have a simple form that includes this:
> >>
> >>  <input jwcid="tradeId@TextField" value="ognl:tradeId"
> >>               validators="validators:required,min=0,max=1000000"
> >>               translator="translator:number,pattern=0"
> >>               displayName="Trade ID"
> >>               />
> >>
> >>
> >> And no matter what legal numeric value I enter, I always get
> >> a validation error.
> >>
> >> Where is my typo?  Because I certainly can't find it.
> >>
> >> I'm using yesterdays 4.1.2 snapshot.
> >>
> >>       <dependency>
> >>           <groupId>tapestry</groupId>
> >>           <artifactId>tapestry-annotations</artifactId>
> >>           <version>4.1.2-20070509.030104-65</version>
> >>           <properties>
> >>             <war.bundle>true</war.bundle>
> >>           </properties>
> >>       </dependency>
> >>       <dependency>
> >>           <groupId>tapestry</groupId>
> >>           <artifactId>tapestry-contrib</artifactId>
> >>           <version>4.1.2-20070509.030104-68</version>
> >>           <properties>
> >>             <war.bundle>true</war.bundle>
> >>           </properties>
> >>       </dependency>
> >>       <dependency>
> >>           <groupId>tapestry</groupId>
> >>           <artifactId>tapestry-framework</artifactId>
> >>           <version>4.1.2-20070509.030104-76</version>
> >>           <properties>
> >>             <war.bundle>true</war.bundle>
> >>           </properties>
> >>       </dependency>
> >>
> >> Thanks in advance for any help.
> >>
> >> Tony
> >>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

RE: I'm missing something obvious

Posted by Ma...@bmw.ch.
In our setup, the problem will only occur with numbers with more than 3
digits. As far
as I can see, dojo guesses the grouping from the locale when no
grouping-character is given.
To me, it seems as if the flag groupSize in the call to
"dojo.i18n.number.isReal" should be
explicitly set to zero.

> -----Original Message-----
> From: Jesse Kuhnert [mailto:jkuhnert@gmail.com] 
> Sent: Monday, May 14, 2007 10:11 PM
> To: Tapestry users
> Subject: Re: I'm missing something obvious
> 
> Aha.
> 
> So the only real difference between the demo page and your 
> configuration is that you specified a pattern of "0".  The 
> demo pages use the more generic # (as well as the default for 
> the number translator).
> 
> If I remember correctly specifying something like "0" for the 
> pattern forces your input to be exactly one digit, so 
> anything like 11 would fail.
> http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html
> 
> 
> 
> On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
> >
> > I'm assuming that any value between 1 and 999999 should 
> work.  I just 
> > tried 1234 and it failed as does every other number I type in.
> >
> > Playing w/ the page at opencomponentry that you linked below, the 
> > validators seem to work fine which is why I can't figure 
> out what's up.
> > I really think I must have a typo, a missing comma or 
> something just 
> > crazy but I can't find it.
> >
> > Thanks again for all of your efforts
> > Tony
> >
> >
> > Jesse Kuhnert wrote:
> > > Hmm doesn't seem to be conjuring up any eurekas for me 
> currently. .
> > >
> > > I wonder what the difference is between your field and 
> the fields on 
> > > the Workbench form?
> > >
> > >
> > 
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirec
> > t?sp=SFields
> > >
> > >
> > > It has a similar setup but I can't see where the error is 
> happening.
> > >
> > > What exact value should pass but is failing for you? Just 
> to be sure.
> > >
> > > On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
> > >>
> > >> Sorry Jesse, I didn't realize this message didn't have 
> the whole trail.
> > >>
> > >> I have a simple input:
> > >>
> > >>         <input jwcid="tradeId@TextField" value="ognl:tradeId"
> > >>               validators="validators:required,min=0,max=1000000"
> > >>               translator="translator:number,pattern=0"
> > >>               displayName="Trade ID"
> > >>               />
> > >>
> > >>
> > >> the tradeId property is nothing more than:
> > >>
> > >>     public abstract Integer getTradeId();
> > >>
> > >>
> > >> No matter what value I enter, valid or not, I alway get a dojo 
> > >> popup with 3 errors, the input must be a number, it must 
> be greater 
> > >> than 0
> > and
> > >> less than 100000.
> > >>
> > >> I can get past this issue by disabling client validation, but I 
> > >> really don't want to do that.
> > >>
> > >> I believe the dojo warning I'm seeing is from a 
> datePicker that is 
> > >> on the form, but I will have to do some more research.
> > >>
> > >> Thanks again for all of your help.
> > >>
> > >> Tony Nelson
> > >>
> > >> Jesse Kuhnert wrote:
> > >> > What issue exactly is it that you see?
> > >> >
> > >> > If you could provide the exact text that is presented as the 
> > >> > reason for the error as well as what input you gave it 
> to produce 
> > >> > the error I can be more helpful.
> > >> >
> > >> > On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
> > >> >>
> > >> >> Grabbing today's latest build, I'm still seeing the same dojo
> > >> validation
> > >> >> issue.   As a bonus, there is a new debug message:
> > >> >>
> > >> >> DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet 
> ready for use. 
> > >> >> APIs subject to change without notice.
> > >> >>
> > >> >> Happy Monday!
> > >> >>
> > >> >> Thanks in advance,
> > >> >> Tony Nelson
> > >> >>
> > >> >> <snipped>
> > >> >>
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >> 
> -------------------------------------------------------------------
> > >> -- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>
> > >
> > >
> > >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> 
> 
> 
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around 
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 

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


Re: I'm missing something obvious

Posted by Jesse Kuhnert <jk...@gmail.com>.
Aha.

So the only real difference between the demo page and your configuration is
that you specified a pattern of "0".  The demo pages use the more generic #
(as well as the default for the number translator).

If I remember correctly specifying something like "0" for the pattern forces
your input to be exactly one digit, so anything like 11 would fail.
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html



On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
>
> I'm assuming that any value between 1 and 999999 should work.  I just
> tried 1234 and it failed as does every other number I type in.
>
> Playing w/ the page at opencomponentry that you linked below, the
> validators seem to work fine which is why I can't figure out what's up.
> I really think I must have a typo, a missing comma or something just
> crazy but I can't find it.
>
> Thanks again for all of your efforts
> Tony
>
>
> Jesse Kuhnert wrote:
> > Hmm doesn't seem to be conjuring up any eurekas for me currently. .
> >
> > I wonder what the difference is between your field and the fields on the
> > Workbench form?
> >
> >
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SFields
> >
> >
> > It has a similar setup but I can't see where the error is happening.
> >
> > What exact value should pass but is failing for you? Just to be sure.
> >
> > On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
> >>
> >> Sorry Jesse, I didn't realize this message didn't have the whole trail.
> >>
> >> I have a simple input:
> >>
> >>         <input jwcid="tradeId@TextField" value="ognl:tradeId"
> >>               validators="validators:required,min=0,max=1000000"
> >>               translator="translator:number,pattern=0"
> >>               displayName="Trade ID"
> >>               />
> >>
> >>
> >> the tradeId property is nothing more than:
> >>
> >>     public abstract Integer getTradeId();
> >>
> >>
> >> No matter what value I enter, valid or not, I alway get a dojo popup
> >> with 3 errors, the input must be a number, it must be greater than 0
> and
> >> less than 100000.
> >>
> >> I can get past this issue by disabling client validation, but I really
> >> don't want to do that.
> >>
> >> I believe the dojo warning I'm seeing is from a datePicker that is on
> >> the form, but I will have to do some more research.
> >>
> >> Thanks again for all of your help.
> >>
> >> Tony Nelson
> >>
> >> Jesse Kuhnert wrote:
> >> > What issue exactly is it that you see?
> >> >
> >> > If you could provide the exact text that is presented as the reason
> >> > for the
> >> > error as well as what input you gave it to produce the error I can be
> >> > more
> >> > helpful.
> >> >
> >> > On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
> >> >>
> >> >> Grabbing today's latest build, I'm still seeing the same dojo
> >> validation
> >> >> issue.   As a bonus, there is a new debug message:
> >> >>
> >> >> DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet ready for use. APIs
> >> >> subject to change without notice.
> >> >>
> >> >> Happy Monday!
> >> >>
> >> >> Thanks in advance,
> >> >> Tony Nelson
> >> >>
> >> >> <snipped>
> >> >>
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: I'm missing something obvious

Posted by Tony Nelson <tn...@starpoint.com>.
I'm assuming that any value between 1 and 999999 should work.  I just 
tried 1234 and it failed as does every other number I type in.

Playing w/ the page at opencomponentry that you linked below, the 
validators seem to work fine which is why I can't figure out what's up.  
I really think I must have a typo, a missing comma or something just 
crazy but I can't find it.

Thanks again for all of your efforts
Tony


Jesse Kuhnert wrote:
> Hmm doesn't seem to be conjuring up any eurekas for me currently. .
>
> I wonder what the difference is between your field and the fields on the
> Workbench form?
>
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SFields 
>
>
> It has a similar setup but I can't see where the error is happening.
>
> What exact value should pass but is failing for you? Just to be sure.
>
> On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
>>
>> Sorry Jesse, I didn't realize this message didn't have the whole trail.
>>
>> I have a simple input:
>>
>>         <input jwcid="tradeId@TextField" value="ognl:tradeId"
>>               validators="validators:required,min=0,max=1000000"
>>               translator="translator:number,pattern=0"
>>               displayName="Trade ID"
>>               />
>>
>>
>> the tradeId property is nothing more than:
>>
>>     public abstract Integer getTradeId();
>>
>>
>> No matter what value I enter, valid or not, I alway get a dojo popup
>> with 3 errors, the input must be a number, it must be greater than 0 and
>> less than 100000.
>>
>> I can get past this issue by disabling client validation, but I really
>> don't want to do that.
>>
>> I believe the dojo warning I'm seeing is from a datePicker that is on
>> the form, but I will have to do some more research.
>>
>> Thanks again for all of your help.
>>
>> Tony Nelson
>>
>> Jesse Kuhnert wrote:
>> > What issue exactly is it that you see?
>> >
>> > If you could provide the exact text that is presented as the reason
>> > for the
>> > error as well as what input you gave it to produce the error I can be
>> > more
>> > helpful.
>> >
>> > On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
>> >>
>> >> Grabbing today's latest build, I'm still seeing the same dojo
>> validation
>> >> issue.   As a bonus, there is a new debug message:
>> >>
>> >> DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet ready for use. APIs
>> >> subject to change without notice.
>> >>
>> >> Happy Monday!
>> >>
>> >> Thanks in advance,
>> >> Tony Nelson
>> >>
>> >> <snipped>
>> >>
>> >
>> >
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
>



Re: I'm missing something obvious

Posted by Jesse Kuhnert <jk...@gmail.com>.
Hmm doesn't seem to be conjuring up any eurekas for me currently. .

I wonder what the difference is between your field and the fields on the
Workbench form?

http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SFields

It has a similar setup but I can't see where the error is happening.

What exact value should pass but is failing for you? Just to be sure.

On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
>
> Sorry Jesse, I didn't realize this message didn't have the whole trail.
>
> I have a simple input:
>
>         <input jwcid="tradeId@TextField" value="ognl:tradeId"
>               validators="validators:required,min=0,max=1000000"
>               translator="translator:number,pattern=0"
>               displayName="Trade ID"
>               />
>
>
> the tradeId property is nothing more than:
>
>     public abstract Integer getTradeId();
>
>
> No matter what value I enter, valid or not, I alway get a dojo popup
> with 3 errors, the input must be a number, it must be greater than 0 and
> less than 100000.
>
> I can get past this issue by disabling client validation, but I really
> don't want to do that.
>
> I believe the dojo warning I'm seeing is from a datePicker that is on
> the form, but I will have to do some more research.
>
> Thanks again for all of your help.
>
> Tony Nelson
>
> Jesse Kuhnert wrote:
> > What issue exactly is it that you see?
> >
> > If you could provide the exact text that is presented as the reason
> > for the
> > error as well as what input you gave it to produce the error I can be
> > more
> > helpful.
> >
> > On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
> >>
> >> Grabbing today's latest build, I'm still seeing the same dojo
> validation
> >> issue.   As a bonus, there is a new debug message:
> >>
> >> DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet ready for use. APIs
> >> subject to change without notice.
> >>
> >> Happy Monday!
> >>
> >> Thanks in advance,
> >> Tony Nelson
> >>
> >> <snipped>
> >>
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: I'm missing something obvious

Posted by Tony Nelson <tn...@starpoint.com>.
Sorry Jesse, I didn't realize this message didn't have the whole trail.

I have a simple input:

        <input jwcid="tradeId@TextField" value="ognl:tradeId"
              validators="validators:required,min=0,max=1000000"
              translator="translator:number,pattern=0"
              displayName="Trade ID"
              />


the tradeId property is nothing more than:

    public abstract Integer getTradeId();


No matter what value I enter, valid or not, I alway get a dojo popup 
with 3 errors, the input must be a number, it must be greater than 0 and 
less than 100000. 

I can get past this issue by disabling client validation, but I really 
don't want to do that.

I believe the dojo warning I'm seeing is from a datePicker that is on 
the form, but I will have to do some more research.

Thanks again for all of your help.

Tony Nelson

Jesse Kuhnert wrote:
> What issue exactly is it that you see?
>
> If you could provide the exact text that is presented as the reason 
> for the
> error as well as what input you gave it to produce the error I can be 
> more
> helpful.
>
> On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
>>
>> Grabbing today's latest build, I'm still seeing the same dojo validation
>> issue.   As a bonus, there is a new debug message:
>>
>> DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet ready for use. APIs
>> subject to change without notice.
>>
>> Happy Monday!
>>
>> Thanks in advance,
>> Tony Nelson
>>
>> <snipped>
>>
>
>
>



Re: I'm missing something obvious

Posted by Jesse Kuhnert <jk...@gmail.com>.
What issue exactly is it that you see?

If you could provide the exact text that is presented as the reason for the
error as well as what input you gave it to produce the error I can be more
helpful.

On 5/14/07, Tony Nelson <tn...@starpoint.com> wrote:
>
> Grabbing today's latest build, I'm still seeing the same dojo validation
> issue.   As a bonus, there is a new debug message:
>
> DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet ready for use. APIs
> subject to change without notice.
>
> Happy Monday!
>
> Thanks in advance,
> Tony Nelson
>
> <snipped>
>



-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: I'm missing something obvious

Posted by Tony Nelson <tn...@starpoint.com>.
Grabbing today's latest build, I'm still seeing the same dojo validation 
issue.   As a bonus, there is a new debug message:

DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet ready for use. APIs 
subject to change without notice.

Happy Monday!

Thanks in advance,
Tony Nelson

Tony Nelson wrote:
> Does that mean there is a fix floating around somewhere?
>
> Thanks
> Tony
>
> Marcus.Schulte@bmw.ch wrote:
>> This is a regression, the JIRA issue is
>>
>> https://issues.apache.org/jira/browse/TAPESTRY-1071
>>  
>>> -----Original Message-----
>>> From: Tony Nelson [mailto:tnelson@starpoint.com] Sent: Thursday, May 
>>> 10, 2007 6:57 PM
>>> To: Tapestry users
>>> Subject: I'm missing something obvious
>>>
>>> I have a simple form that includes this:
>>>
>>>  <input jwcid="tradeId@TextField" value="ognl:tradeId"
>>>               validators="validators:required,min=0,max=1000000"
>>>               translator="translator:number,pattern=0"
>>>               displayName="Trade ID"
>>>               />
>>>
>>>
>>> And no matter what legal numeric value I enter, I always get a 
>>> validation error.
>>>
>>> Where is my typo?  Because I certainly can't find it.
>>>
>>> I'm using yesterdays 4.1.2 snapshot.
>>>
>>>       <dependency>
>>>           <groupId>tapestry</groupId>
>>>           <artifactId>tapestry-annotations</artifactId>
>>>           <version>4.1.2-20070509.030104-65</version>
>>>           <properties>
>>>             <war.bundle>true</war.bundle>
>>>           </properties>
>>>       </dependency>
>>>       <dependency>
>>>           <groupId>tapestry</groupId>
>>>           <artifactId>tapestry-contrib</artifactId>
>>>           <version>4.1.2-20070509.030104-68</version>
>>>           <properties>
>>>             <war.bundle>true</war.bundle>
>>>           </properties>
>>>       </dependency>
>>>       <dependency>
>>>           <groupId>tapestry</groupId>
>>>           <artifactId>tapestry-framework</artifactId>
>>>           <version>4.1.2-20070509.030104-76</version>
>>>           <properties>
>>>             <war.bundle>true</war.bundle>
>>>           </properties>
>>>       </dependency>
>>>
>>> Thanks in advance for any help.
>>>
>>> Tony
>>>
>>>
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>   
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org



Re: I'm missing something obvious

Posted by Tony Nelson <tn...@starpoint.com>.
Does that mean there is a fix floating around somewhere?

Thanks
Tony

Marcus.Schulte@bmw.ch wrote:
> This is a regression, the JIRA issue is
>
> https://issues.apache.org/jira/browse/TAPESTRY-1071 
>
>   
>> -----Original Message-----
>> From: Tony Nelson [mailto:tnelson@starpoint.com] 
>> Sent: Thursday, May 10, 2007 6:57 PM
>> To: Tapestry users
>> Subject: I'm missing something obvious
>>
>> I have a simple form that includes this:
>>
>>  <input jwcid="tradeId@TextField" value="ognl:tradeId"
>>               validators="validators:required,min=0,max=1000000"
>>               translator="translator:number,pattern=0"
>>               displayName="Trade ID"
>>               />
>>
>>
>> And no matter what legal numeric value I enter, I always get 
>> a validation error.
>>
>> Where is my typo?  Because I certainly can't find it.
>>
>> I'm using yesterdays 4.1.2 snapshot.
>>
>>       <dependency>
>>           <groupId>tapestry</groupId>
>>           <artifactId>tapestry-annotations</artifactId>
>>           <version>4.1.2-20070509.030104-65</version>
>>           <properties>
>>             <war.bundle>true</war.bundle>
>>           </properties>
>>       </dependency>
>>       <dependency>
>>           <groupId>tapestry</groupId>
>>           <artifactId>tapestry-contrib</artifactId>
>>           <version>4.1.2-20070509.030104-68</version>
>>           <properties>
>>             <war.bundle>true</war.bundle>
>>           </properties>
>>       </dependency>
>>       <dependency>
>>           <groupId>tapestry</groupId>
>>           <artifactId>tapestry-framework</artifactId>
>>           <version>4.1.2-20070509.030104-76</version>
>>           <properties>
>>             <war.bundle>true</war.bundle>
>>           </properties>
>>       </dependency>
>>
>> Thanks in advance for any help.
>>
>> Tony
>>
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>   



RE: I'm missing something obvious

Posted by Ma...@bmw.ch.
This is a regression, the JIRA issue is

https://issues.apache.org/jira/browse/TAPESTRY-1071 

> -----Original Message-----
> From: Tony Nelson [mailto:tnelson@starpoint.com] 
> Sent: Thursday, May 10, 2007 6:57 PM
> To: Tapestry users
> Subject: I'm missing something obvious
> 
> I have a simple form that includes this:
> 
>  <input jwcid="tradeId@TextField" value="ognl:tradeId"
>               validators="validators:required,min=0,max=1000000"
>               translator="translator:number,pattern=0"
>               displayName="Trade ID"
>               />
> 
> 
> And no matter what legal numeric value I enter, I always get 
> a validation error.
> 
> Where is my typo?  Because I certainly can't find it.
> 
> I'm using yesterdays 4.1.2 snapshot.
> 
>       <dependency>
>           <groupId>tapestry</groupId>
>           <artifactId>tapestry-annotations</artifactId>
>           <version>4.1.2-20070509.030104-65</version>
>           <properties>
>             <war.bundle>true</war.bundle>
>           </properties>
>       </dependency>
>       <dependency>
>           <groupId>tapestry</groupId>
>           <artifactId>tapestry-contrib</artifactId>
>           <version>4.1.2-20070509.030104-68</version>
>           <properties>
>             <war.bundle>true</war.bundle>
>           </properties>
>       </dependency>
>       <dependency>
>           <groupId>tapestry</groupId>
>           <artifactId>tapestry-framework</artifactId>
>           <version>4.1.2-20070509.030104-76</version>
>           <properties>
>             <war.bundle>true</war.bundle>
>           </properties>
>       </dependency>
> 
> Thanks in advance for any help.
> 
> Tony
> 
> 
> 

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