I've just opened a ticket on Trac to add a sfWidgetFormInputText class  
to the 1.3 branch. The addition of this class will set text fields on  
the same level as password and file upload fields and allow developers  
to identify text fields using instanceof sfWidgetFormInputText. The  
current sfWidgetFormInput class would ideally become an abstract class  
that does not specify a type attribute, but I've left it intact for  
purposes of backward compatibility.

http://trac.symfony-project.org/ticket/6288

My use case involves sfViewableFormPlugin, which allows devs to  
globally modify view-related aspects of form objects from config/ 
forms.yml. This can be done based on widget class. The addition of  
sfWidgetFormInputText would make the following common practice very  
easy:

widgets:
   sfWidgetFormInputText:
     attributes:
       class: text

Please post your thoughts here or on the ticket.

Thanks,
Kris

--

Kris Wallsmith | Community Manager
kris.wallsm...@symfony-project.com
Portland, Oregon USA

http://twitter.com/kriswallsmith


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to 
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to