user defined field

2010-04-08 Thread faye alaska

I have a requirement to be able to allow user/admin to define a field to be
numeric, alpha-numeric, or a select type. I have been using the
beaneditform, but I defined the fields  -- is there an example to show how
this can be done in the beaneditform? or just any field in general?
Thanks a bunch!

-- 
View this message in context: 
http://old.nabble.com/user-defined-field-tp28180730p28180730.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: user defined field

2010-04-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Apr 2010 13:09:19 -0300, faye alaska haifeizh...@gmail.com  
wrote:


I have a requirement to be able to allow user/admin to define a field to  
be numeric, alpha-numeric, or a select type. I have been using the
beaneditform, but I defined the fields  -- is there an example to show  
how this can be done in the beaneditform? or just any field in general?


I would build define a custom Tapestry data time and define an edition  
block that uses TextField and passes a dynamic value to the validate  
parameter. For this last part, you'll need to use the FieldValidatorSource  
service.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

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