You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by cleverpig <gr...@gmail.com> on 2009/09/16 11:28:22 UTC

T5:hibernate @Length validator doesn't work

hi,all!

i got a trouble in hibernate @Length validator with Tapestry 5.1.
i think it's a easy-meet problem for newbie(it's me).

@Entity
@Table(name="hello")
public class Hello implements Serializable{
...
	@NotNull(message="{hello.message.notnull}")
	@Length(min=10,max=20)
	@Column(name="message",length=20)
        private String message;
...
}

but i can update or create 'hello' record to database with beanEditForm.

somebody got this?who can give me suggestiong? thanks!
-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5:hibernate @Length validator doesn't work

Posted by cleverpig <gr...@gmail.com>.
thanks!

On Sat, Oct 3, 2009 at 2:38 AM, Valentin Yerastov <xi...@gmail.com> wrote:
>
>
> Try this project http://code.google.com/p/tapestry-validator/
>
>
> cleverpig-2 wrote:
>>
>> hi,all!
>>
>> i got a trouble in hibernate @Length validator with Tapestry 5.1.
>> i think it's a easy-meet problem for newbie(it's me).
>>
>> @Entity
>> @Table(name="hello")
>> public class Hello implements Serializable{
>> ...
>>       @NotNull(message="{hello.message.notnull}")
>>       @Length(min=10,max=20)
>>       @Column(name="message",length=20)
>>         private String message;
>> ...
>> }
>>
>> but i can update or create 'hello' record to database with beanEditForm.
>>
>> somebody got this?who can give me suggestiong? thanks!
>> --
>> cleverpig(Dan)
>> Location: Beijing
>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>> Zipcode: 100031
>> MSN: great_liudan@hotmail.com
>> QQ: 149291732
>> Skype: cleverpigatmatrix
>> Facebook ID:cleverpig
>> Blog: www.cleverpig.name
>> Tags: del.icio.us/cleverpig
>> Twitter: twitter.com/cleverpig
>> 新浪微博: t.sina.com.cn/cleverpig
>> Organization: www.beijing-open-party.org
>> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
>>
>> ---------------------------------------------------------------------
>> 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://www.nabble.com/T5%3Ahibernate-%40Length-validator-doesn%27t-work-tp25468952p25720525.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
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5:hibernate @Length validator doesn't work

Posted by Valentin Yerastov <xi...@gmail.com>.

Try this project http://code.google.com/p/tapestry-validator/


cleverpig-2 wrote:
> 
> hi,all!
> 
> i got a trouble in hibernate @Length validator with Tapestry 5.1.
> i think it's a easy-meet problem for newbie(it's me).
> 
> @Entity
> @Table(name="hello")
> public class Hello implements Serializable{
> ...
> 	@NotNull(message="{hello.message.notnull}")
> 	@Length(min=10,max=20)
> 	@Column(name="message",length=20)
>         private String message;
> ...
> }
> 
> but i can update or create 'hello' record to database with beanEditForm.
> 
> somebody got this?who can give me suggestiong? thanks!
> -- 
> cleverpig(Dan)
> Location: Beijing
> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
> Zipcode: 100031
> MSN: great_liudan@hotmail.com
> QQ: 149291732
> Skype: cleverpigatmatrix
> Facebook ID:cleverpig
> Blog: www.cleverpig.name
> Tags: del.icio.us/cleverpig
> Twitter: twitter.com/cleverpig
> 新浪微博: t.sina.com.cn/cleverpig
> Organization: www.beijing-open-party.org
> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
> 
> ---------------------------------------------------------------------
> 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://www.nabble.com/T5%3Ahibernate-%40Length-validator-doesn%27t-work-tp25468952p25720525.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: T5:hibernate @Length validator doesn't work

Posted by cleverpig <gr...@gmail.com>.
thanks you all!

i found @NotNull annotation always work on tapestry! but @Length...so
how to backend data validator in tapestry?
will make a custom function on serverside's event handler?

On Wed, Sep 16, 2009 at 7:44 PM, Juan E. Maya <ma...@gmail.com> wrote:
> Thiago has a project in Ars Machina that allows to use the hibernate
> validators with Tapestry. U may find it useful
>
> http://www.arsmachina.com.br/project/tapestrycrudhibernatevalidator
>
> 2009/9/16 Kristian Marinkovic <kr...@porsche.co.at>:
>> hi,
>>
>> the beandeditor cannot handle Hibernate annotations.
>> you have to use the tapestry specific validators.
>>
>> g,
>> kris
>>
>>
>>
>>
>>
>> cleverpig <gr...@gmail.com>
>> 16.09.2009 11:28
>> Bitte antworten an
>> "Tapestry users" <us...@tapestry.apache.org>
>>
>>
>> An
>> users@tapestry.apache.org
>> Kopie
>>
>> Thema
>> T5:hibernate @Length validator doesn't work
>>
>>
>>
>>
>>
>>
>>
>> hi,all!
>>
>> i got a trouble in hibernate @Length validator with Tapestry 5.1.
>> i think it's a easy-meet problem for newbie(it's me).
>>
>> @Entity
>> @Table(name="hello")
>> public class Hello implements Serializable{
>> ...
>>                 @NotNull(message="{hello.message.notnull}")
>>                 @Length(min=10,max=20)
>>                 @Column(name="message",length=20)
>>        private String message;
>> ...
>> }
>>
>> but i can update or create 'hello' record to database with beanEditForm.
>>
>> somebody got this?who can give me suggestiong? thanks!
>> --
>> cleverpig(Dan)
>> Location: Beijing
>> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
>> Zipcode: 100031
>> MSN: great_liudan@hotmail.com
>> QQ: 149291732
>> Skype: cleverpigatmatrix
>> Facebook ID:cleverpig
>> Blog: www.cleverpig.name
>> Tags: del.icio.us/cleverpig
>> Twitter: twitter.com/cleverpig
>> 新浪微博: t.sina.com.cn/cleverpig
>> Organization: www.beijing-open-party.org
>> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
>>
>> ---------------------------------------------------------------------
>> 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
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5:hibernate @Length validator doesn't work

Posted by "Juan E. Maya" <ma...@gmail.com>.
Thiago has a project in Ars Machina that allows to use the hibernate
validators with Tapestry. U may find it useful

http://www.arsmachina.com.br/project/tapestrycrudhibernatevalidator

2009/9/16 Kristian Marinkovic <kr...@porsche.co.at>:
> hi,
>
> the beandeditor cannot handle Hibernate annotations.
> you have to use the tapestry specific validators.
>
> g,
> kris
>
>
>
>
>
> cleverpig <gr...@gmail.com>
> 16.09.2009 11:28
> Bitte antworten an
> "Tapestry users" <us...@tapestry.apache.org>
>
>
> An
> users@tapestry.apache.org
> Kopie
>
> Thema
> T5:hibernate @Length validator doesn't work
>
>
>
>
>
>
>
> hi,all!
>
> i got a trouble in hibernate @Length validator with Tapestry 5.1.
> i think it's a easy-meet problem for newbie(it's me).
>
> @Entity
> @Table(name="hello")
> public class Hello implements Serializable{
> ...
>                 @NotNull(message="{hello.message.notnull}")
>                 @Length(min=10,max=20)
>                 @Column(name="message",length=20)
>        private String message;
> ...
> }
>
> but i can update or create 'hello' record to database with beanEditForm.
>
> somebody got this?who can give me suggestiong? thanks!
> --
> cleverpig(Dan)
> Location: Beijing
> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
> Zipcode: 100031
> MSN: great_liudan@hotmail.com
> QQ: 149291732
> Skype: cleverpigatmatrix
> Facebook ID:cleverpig
> Blog: www.cleverpig.name
> Tags: del.icio.us/cleverpig
> Twitter: twitter.com/cleverpig
> 新浪微博: t.sina.com.cn/cleverpig
> Organization: www.beijing-open-party.org
> Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294
>
> ---------------------------------------------------------------------
> 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: T5:hibernate @Length validator doesn't work

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
hi, 

the beandeditor cannot handle Hibernate annotations.
you have to use the tapestry specific validators.

g,
kris





cleverpig <gr...@gmail.com> 
16.09.2009 11:28
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
T5:hibernate @Length validator doesn't work







hi,all!

i got a trouble in hibernate @Length validator with Tapestry 5.1.
i think it's a easy-meet problem for newbie(it's me).

@Entity
@Table(name="hello")
public class Hello implements Serializable{
...
                 @NotNull(message="{hello.message.notnull}")
                 @Length(min=10,max=20)
                 @Column(name="message",length=20)
        private String message;
...
}

but i can update or create 'hello' record to database with beanEditForm.

somebody got this?who can give me suggestiong? thanks!
-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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