You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Valentin Yerastov <xi...@gmail.com> on 2009/10/02 20:38:13 UTC

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


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!

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