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

2009-10-05 Thread cleverpig
thanks!

On Sat, Oct 3, 2009 at 2:38 AM, Valentin Yerastov  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_liu...@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
>> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liu...@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
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

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



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

2009-10-02 Thread Valentin Yerastov


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_liu...@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
> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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

2009-09-16 Thread cleverpig
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  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 :
>> hi,
>>
>> the beandeditor cannot handle Hibernate annotations.
>> you have to use the tapestry specific validators.
>>
>> g,
>> kris
>>
>>
>>
>>
>>
>> cleverpig 
>> 16.09.2009 11:28
>> Bitte antworten an
>> "Tapestry users" 
>>
>>
>> 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_liu...@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
>> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liu...@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
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

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



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

2009-09-16 Thread Juan E. Maya
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 :
> hi,
>
> the beandeditor cannot handle Hibernate annotations.
> you have to use the tapestry specific validators.
>
> g,
> kris
>
>
>
>
>
> cleverpig 
> 16.09.2009 11:28
> Bitte antworten an
> "Tapestry users" 
>
>
> 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_liu...@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
> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
>

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



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

2009-09-16 Thread Kristian Marinkovic
hi, 

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

g,
kris





cleverpig  
16.09.2009 11:28
Bitte antworten an
"Tapestry users" 


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_liu...@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
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

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




T5:hibernate @Length validator doesn't work

2009-09-16 Thread cleverpig
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_liu...@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
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

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