CruxFramework / crux-widgets

6 stars 4 forks source link

Make "id" attribute optional in View components #597

Open admtriggo opened 9 years ago

admtriggo commented 9 years ago

From claudio....@cruxframework.org on February 19, 2015 11:11:36

When creating a webapp, there are lots of elements created just to construct the base of the layout, these which don't (and generally never will) have any kind of action on Controller.

When creating Views, the process of being obligated to add IDs to every component can turn into an obstacle on the rapid development and the productivity of those Views.

But of course we definitely need IDs to everything else that have an action, so my guess would be to make it optional for components that do not require an directly action. This way, one can create views rapidly focusing on creating IDs just for components that will really need it.

Also, keep in mind that this should not affect automatic tests, as the components that are tied to actions (such as buttons, inputs, and related) will still have IDs normally.

Original issue: http://code.google.com/p/crux-framework/issues/detail?id=597