You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mohammad Shamsi <m....@gmail.com> on 2008/01/01 09:14:38 UTC
[T5] - using textfield compoents without validate attribute cause exception.
Hi All,
i have a simple text field in my page like this :
<t:textfield t:id="itemFirstName" t:value="item.firstName"
t:validate="required" class="required"/>
when i remove the t:validate="required" from this components i got
exception.
i use 5.0.7 version. in 5.0.6 i had no problem in this case , i guess so.
exception log is :
java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate
> Stack trace
>
> -
> org.apache.tapestry.internal.beaneditor.ValidateAnnotationConstraintGenerator.buildConstraints
> (ValidateAnnotationConstraintGenerator.java:32)
> -
> org.apache.tapestry.internal.services.ValidationConstraintGeneratorImpl.buildConstraints
> (ValidationConstraintGeneratorImpl.java:42)
> -
> org.apache.tapestry.internal.services.FieldValidatorDefaultSourceImpl.createDefaultValidator
> (FieldValidatorDefaultSourceImpl.java:49)
> - org.apache.tapestry.corelib.base.AbstractTextField.defaultValidate
> (AbstractTextField.java:120)
> -
> org.apache.tapestry.corelib.base.AbstractTextField.containingPageDidLoad
> (AbstractTextField.java)
> -
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run
> (ComponentPageElementImpl.java:78)
> -
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke
> (ComponentPageElementImpl.java:897)
> -
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad
> (ComponentPageElementImpl.java:745)
> - org.apache.tapestry.internal.structure.PageImpl.loaded(
> PageImpl.java:138)
> - org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage
> (PageLoaderProcessor.java:347)
> - org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(
> PageLoaderImpl.java:60)
> - org.apache.tapestry.internal.services.PagePoolImpl.checkout(
> PagePoolImpl.java:69)
>
> ....
>
--
sincerely yours
M. H. Shamsi
Re: [T5] - using textfield compoents without validate attribute cause exception.
Posted by Mohammad Shamsi <m....@gmail.com>.
Sorry,
It was my mistake.
tapestry-annotation.jar was forgotten to add to lib directory in war file :(
sorry again and thanks
On Jan 2, 2008 1:51 PM, dwi ardi irawan <pe...@gmail.com> wrote:
> well, i really have no idea bout that
> maybe i missed some points....
> could anyone help us clear this problem ?
>
> On Jan 2, 2008 5:13 PM, Mohammad Shamsi <m....@gmail.com> wrote:
>
> > Hi DWI
> >
> > i did it, but i still have this problem.
> >
> > this is a server side exception, are you sure this is related to Java
> > Script
> > and Client Browser ?
> >
> >
> > On Jan 2, 2008 6:49 AM, dwi ardi irawan <pe...@gmail.com> wrote:
> >
> > > i got this err too when i changed to tapestry 5.0.7
> > > but as howard said :
> > > "Try clearing your browser cache, you may have the old tapestry.js
> > > stuck in there."
> > >
> > > it works...
> > > it fixed everything...
> > >
> > > On Jan 1, 2008 3:14 PM, Mohammad Shamsi <m....@gmail.com> wrote:
> > >
> > > > Hi All,
> > > >
> > > > i have a simple text field in my page like this :
> > > >
> > > > <t:textfield t:id="itemFirstName" t:value="item.firstName"
> > > > t:validate="required" class="required"/>
> > > >
> > > > when i remove the t:validate="required" from this components i
> got
> > > > exception.
> > > >
> > > > i use 5.0.7 version. in 5.0.6 i had no problem in this case , i
> > guess
> > > > so.
> > > >
> > > > exception log is :
> > > >
> > > > java.lang.NoClassDefFoundErrororg/apache/tapestry/beaneditor/Validate
> > > >
> > > > > Stack trace
> > > > >
> > > > > -
> > > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.beaneditor.ValidateAnnotationConstraintGenerator.buildConstraints
> > > > > (ValidateAnnotationConstraintGenerator.java:32)
> > > > > -
> > > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.ValidationConstraintGeneratorImpl.buildConstraints
> > > > > (ValidationConstraintGeneratorImpl.java:42)
> > > > > -
> > > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.FieldValidatorDefaultSourceImpl.createDefaultValidator
> > > > > (FieldValidatorDefaultSourceImpl.java:49)
> > > > > -
> > > org.apache.tapestry.corelib.base.AbstractTextField.defaultValidate
> > > > > (AbstractTextField.java:120)
> > > > > -
> > > > >
> > > >
> > org.apache.tapestry.corelib.base.AbstractTextField.containingPageDidLoad
> > > > > (AbstractTextField.java)
> > > > > -
> > > > >
> > > org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run
> > > > > (ComponentPageElementImpl.java:78)
> > > > > -
> > > > >
> > > >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke
> > > > > (ComponentPageElementImpl.java:897)
> > > > > -
> > > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad
> > > > > (ComponentPageElementImpl.java:745)
> > > > > - org.apache.tapestry.internal.structure.PageImpl.loaded(
> > > > > PageImpl.java:138)
> > > > > -
> > > org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage
> > > > > (PageLoaderProcessor.java:347)
> > > > > - org.apache.tapestry.internal.services.PageLoaderImpl.loadPage
> (
> > > > > PageLoaderImpl.java:60)
> > > > > - org.apache.tapestry.internal.services.PagePoolImpl.checkout(
> > > > > PagePoolImpl.java:69)
> > > > >
> > > > > ....
> > > > >
> > > > --
> > > > sincerely yours
> > > > M. H. Shamsi
> > > >
> > >
> > >
> > >
> > > --
> > > http://dwiardiirawan.blogspot.com
> > > "cos everyone could be extraordinary...lighten up !"
> > >
> >
> >
> >
> > --
> > sincerely yours
> > M. H. Shamsi
> >
>
>
>
> --
> http://dwiardiirawan.blogspot.com
> "cos everyone could be extraordinary...lighten up !"
>
--
sincerely yours
M. H. Shamsi
Re: [T5] - using textfield compoents without validate attribute cause exception.
Posted by dwi ardi irawan <pe...@gmail.com>.
well, i really have no idea bout that
maybe i missed some points....
could anyone help us clear this problem ?
On Jan 2, 2008 5:13 PM, Mohammad Shamsi <m....@gmail.com> wrote:
> Hi DWI
>
> i did it, but i still have this problem.
>
> this is a server side exception, are you sure this is related to Java
> Script
> and Client Browser ?
>
>
> On Jan 2, 2008 6:49 AM, dwi ardi irawan <pe...@gmail.com> wrote:
>
> > i got this err too when i changed to tapestry 5.0.7
> > but as howard said :
> > "Try clearing your browser cache, you may have the old tapestry.js
> > stuck in there."
> >
> > it works...
> > it fixed everything...
> >
> > On Jan 1, 2008 3:14 PM, Mohammad Shamsi <m....@gmail.com> wrote:
> >
> > > Hi All,
> > >
> > > i have a simple text field in my page like this :
> > >
> > > <t:textfield t:id="itemFirstName" t:value="item.firstName"
> > > t:validate="required" class="required"/>
> > >
> > > when i remove the t:validate="required" from this components i got
> > > exception.
> > >
> > > i use 5.0.7 version. in 5.0.6 i had no problem in this case , i
> guess
> > > so.
> > >
> > > exception log is :
> > >
> > > java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate
> > >
> > > > Stack trace
> > > >
> > > > -
> > > >
> > >
> >
> org.apache.tapestry.internal.beaneditor.ValidateAnnotationConstraintGenerator.buildConstraints
> > > > (ValidateAnnotationConstraintGenerator.java:32)
> > > > -
> > > >
> > >
> >
> org.apache.tapestry.internal.services.ValidationConstraintGeneratorImpl.buildConstraints
> > > > (ValidationConstraintGeneratorImpl.java:42)
> > > > -
> > > >
> > >
> >
> org.apache.tapestry.internal.services.FieldValidatorDefaultSourceImpl.createDefaultValidator
> > > > (FieldValidatorDefaultSourceImpl.java:49)
> > > > -
> > org.apache.tapestry.corelib.base.AbstractTextField.defaultValidate
> > > > (AbstractTextField.java:120)
> > > > -
> > > >
> > >
> org.apache.tapestry.corelib.base.AbstractTextField.containingPageDidLoad
> > > > (AbstractTextField.java)
> > > > -
> > > >
> > org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run
> > > > (ComponentPageElementImpl.java:78)
> > > > -
> > > >
> > > org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke
> > > > (ComponentPageElementImpl.java:897)
> > > > -
> > > >
> > >
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad
> > > > (ComponentPageElementImpl.java:745)
> > > > - org.apache.tapestry.internal.structure.PageImpl.loaded(
> > > > PageImpl.java:138)
> > > > -
> > org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage
> > > > (PageLoaderProcessor.java:347)
> > > > - org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(
> > > > PageLoaderImpl.java:60)
> > > > - org.apache.tapestry.internal.services.PagePoolImpl.checkout(
> > > > PagePoolImpl.java:69)
> > > >
> > > > ....
> > > >
> > > --
> > > sincerely yours
> > > M. H. Shamsi
> > >
> >
> >
> >
> > --
> > http://dwiardiirawan.blogspot.com
> > "cos everyone could be extraordinary...lighten up !"
> >
>
>
>
> --
> sincerely yours
> M. H. Shamsi
>
--
http://dwiardiirawan.blogspot.com
"cos everyone could be extraordinary...lighten up !"
Re: [T5] - using textfield compoents without validate attribute cause exception.
Posted by Mohammad Shamsi <m....@gmail.com>.
Hi DWI
i did it, but i still have this problem.
this is a server side exception, are you sure this is related to Java Script
and Client Browser ?
On Jan 2, 2008 6:49 AM, dwi ardi irawan <pe...@gmail.com> wrote:
> i got this err too when i changed to tapestry 5.0.7
> but as howard said :
> "Try clearing your browser cache, you may have the old tapestry.js
> stuck in there."
>
> it works...
> it fixed everything...
>
> On Jan 1, 2008 3:14 PM, Mohammad Shamsi <m....@gmail.com> wrote:
>
> > Hi All,
> >
> > i have a simple text field in my page like this :
> >
> > <t:textfield t:id="itemFirstName" t:value="item.firstName"
> > t:validate="required" class="required"/>
> >
> > when i remove the t:validate="required" from this components i got
> > exception.
> >
> > i use 5.0.7 version. in 5.0.6 i had no problem in this case , i guess
> > so.
> >
> > exception log is :
> >
> > java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate
> >
> > > Stack trace
> > >
> > > -
> > >
> >
> org.apache.tapestry.internal.beaneditor.ValidateAnnotationConstraintGenerator.buildConstraints
> > > (ValidateAnnotationConstraintGenerator.java:32)
> > > -
> > >
> >
> org.apache.tapestry.internal.services.ValidationConstraintGeneratorImpl.buildConstraints
> > > (ValidationConstraintGeneratorImpl.java:42)
> > > -
> > >
> >
> org.apache.tapestry.internal.services.FieldValidatorDefaultSourceImpl.createDefaultValidator
> > > (FieldValidatorDefaultSourceImpl.java:49)
> > > -
> org.apache.tapestry.corelib.base.AbstractTextField.defaultValidate
> > > (AbstractTextField.java:120)
> > > -
> > >
> > org.apache.tapestry.corelib.base.AbstractTextField.containingPageDidLoad
> > > (AbstractTextField.java)
> > > -
> > >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run
> > > (ComponentPageElementImpl.java:78)
> > > -
> > >
> > org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke
> > > (ComponentPageElementImpl.java:897)
> > > -
> > >
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad
> > > (ComponentPageElementImpl.java:745)
> > > - org.apache.tapestry.internal.structure.PageImpl.loaded(
> > > PageImpl.java:138)
> > > -
> org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage
> > > (PageLoaderProcessor.java:347)
> > > - org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(
> > > PageLoaderImpl.java:60)
> > > - org.apache.tapestry.internal.services.PagePoolImpl.checkout(
> > > PagePoolImpl.java:69)
> > >
> > > ....
> > >
> > --
> > sincerely yours
> > M. H. Shamsi
> >
>
>
>
> --
> http://dwiardiirawan.blogspot.com
> "cos everyone could be extraordinary...lighten up !"
>
--
sincerely yours
M. H. Shamsi
Re: [T5] - using textfield compoents without validate attribute cause exception.
Posted by dwi ardi irawan <pe...@gmail.com>.
i got this err too when i changed to tapestry 5.0.7
but as howard said :
"Try clearing your browser cache, you may have the old tapestry.js
stuck in there."
it works...
it fixed everything...
On Jan 1, 2008 3:14 PM, Mohammad Shamsi <m....@gmail.com> wrote:
> Hi All,
>
> i have a simple text field in my page like this :
>
> <t:textfield t:id="itemFirstName" t:value="item.firstName"
> t:validate="required" class="required"/>
>
> when i remove the t:validate="required" from this components i got
> exception.
>
> i use 5.0.7 version. in 5.0.6 i had no problem in this case , i guess
> so.
>
> exception log is :
>
> java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate
>
> > Stack trace
> >
> > -
> >
> org.apache.tapestry.internal.beaneditor.ValidateAnnotationConstraintGenerator.buildConstraints
> > (ValidateAnnotationConstraintGenerator.java:32)
> > -
> >
> org.apache.tapestry.internal.services.ValidationConstraintGeneratorImpl.buildConstraints
> > (ValidationConstraintGeneratorImpl.java:42)
> > -
> >
> org.apache.tapestry.internal.services.FieldValidatorDefaultSourceImpl.createDefaultValidator
> > (FieldValidatorDefaultSourceImpl.java:49)
> > - org.apache.tapestry.corelib.base.AbstractTextField.defaultValidate
> > (AbstractTextField.java:120)
> > -
> >
> org.apache.tapestry.corelib.base.AbstractTextField.containingPageDidLoad
> > (AbstractTextField.java)
> > -
> > org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run
> > (ComponentPageElementImpl.java:78)
> > -
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke
> > (ComponentPageElementImpl.java:897)
> > -
> >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad
> > (ComponentPageElementImpl.java:745)
> > - org.apache.tapestry.internal.structure.PageImpl.loaded(
> > PageImpl.java:138)
> > - org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage
> > (PageLoaderProcessor.java:347)
> > - org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(
> > PageLoaderImpl.java:60)
> > - org.apache.tapestry.internal.services.PagePoolImpl.checkout(
> > PagePoolImpl.java:69)
> >
> > ....
> >
> --
> sincerely yours
> M. H. Shamsi
>
--
http://dwiardiirawan.blogspot.com
"cos everyone could be extraordinary...lighten up !"